Last Updated on : 2023-06-15 06:09:35
Get a list of devices that can be added to a group in a specified space. You can filter them by level-1 categories.
GET: /v1.0/iot-02/lighting/groups/package/devices
Description of body
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
spaceId | String | body | true | The ID of a specified space. |
topCategoryCode | String | body | false | The level-1 category. Valid values:
|
Parameter name | Type | Description |
---|---|---|
deviceId | String | The device ID. |
deviceName | String | The name of a specified device. |
topCategoryCode | String | The level-1 category of this product. |
secondCategory | String | The level-2 category of this product. |
thirdCategory | String | The level-3 category of this product. |
capability | long | The device capability. |
devicePower | double | The device power. |
installTime | long | The time when a specified device is installed. |
activeTime | long | The time when a specified device is active. |
productId | String | The product ID. |
spaceId | String | The ID of a specified space to which the device belongs. |
spaceName | String | The name of a specified space. |
pointId | String | The location ID of a specified device. |
ownerId | String | The ID of a specified home group to which the device belongs. |
icon | String | The device icon. |
uuid | String | The universally unique identifier (UUID) of a specified device. |
uid | String | The user ID. |
model | String | The product model. |
mac | String | The MAC address. |
dps | Object[] | The list of data points. |
deviceExt | Object | The extension information. |
GET: /v1.0/iot-02/lighting/groups/package/devices
{
"spaceId": "1468869242681139***",
"topCategoryCode": "zm"
}
{
"result": [
{
"thirdCategory": "wf_ble_xdd",
"productId": "sxa3tjzapeal****",
"secondCategory": "xdd",
"dps": [
],
"installTime": 1639377489574,
"ownerId": "4536****",
"deviceId": "vdevo16393774893****",
"deviceName": "Bedside Light",
"spaceId": "146886924268113****",
"pointId": "147028651497700****",
"topCategoryCode": "zm",
"devicePower": 0
},
{
"thirdCategory": "wf_ble_xdd",
"productId": "wobsckg5p6os****",
"secondCategory": "xdd",
"dps": [
],
"installTime": 1639377505821,
"ownerId": "4536****",
"deviceId": "vdevo16393775054****",
"deviceName": "Light 1-vdevo",
"spaceId": "146886924268113****",
"pointId": "147028651497700****",
"topCategoryCode": "zm",
"devicePower": 0
},
{
"thirdCategory": "wf_ble_xdd",
"productId": "1uqqknvmyljd****",
"secondCategory": "xdd",
"dps": [
],
"installTime": 1639378351108,
"ownerId": "4536****",
"deviceId": "vdevo16393783507****",
"deviceName": "Light 3-vdevo",
"spaceId": "14688692426811****",
"pointId": "14702865149770****",
"topCategoryCode": "zm",
"devicePower": 0
}
],
"t": 1640662390741,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback