Last Updated on : 2023-12-07 03:33:59download
You can get the list of Zigbee devices under the gateway through this API.
GET: /v1.0/devices/{deviceId}/sub-devices
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
device_id | String | uri | true | Device ID |
Parameter name | Type | Description |
---|---|---|
result | List | The list of returned data. |
success | Boolean | Indicates whether the operation is successful. Valid values:
|
t | Long | The timestamp. |
tid | String | The link ID. |
Description of result
Parameter name | Type | Description |
---|---|---|
active_time | Long | The time when the specified device is activated, which is accurate to seconds. |
category | String | The product category of the specified device. |
icon | String | The icon of the specified device. |
id | String | The device ID. |
name | String | The name of the specified device. |
node_id | String | The node ID |
online | Boolean | Indicates whether the specified device is online. |
owner_id | String | The ID of a specified home. |
product_id | String | The product ID of the specified device. |
update_time | Long | The time when the specified device is updated, which is accurate to seconds. |
GET: /v1.0/devices/bf1c0dc3105a8bdac6****/sub-devices
{
"tid": "e485a70a7dda1****3b2361f03176748",
"result": [
{
"owner_id": "15909****",
"icon": "smart/icon/ay1577096816804oP4lN/e6087b0d5e0dab90afc2749a785a****.png",
"active_time": 1687503425,
"update_time": 1698129548,
"product_id": "03wv****",
"name": "1OG-Büro-1 T1",
"online": true,
"id": "bf1c0dc3105a8bdac6****",
"category": "wk",
"node_id": "dc8e95fffe21****"
}
],
"t": 1699408958573,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback