Last Updated on : 2023-06-15 06:09:32
Get the details of a specified custom group, including the group type, number of devices, data points, and device groups.
GET: /v1.0/iot-02/lighting/groups/package
Description of body
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
spaceId | String | body | true | The ID of a specified space. |
groupPackageId | String | body | true | The ID of a specified custom group. |
Parameter name | Type | Description |
---|---|---|
type | int | The type of a device group. Valid values:
|
deviceNum | int | The number of devices in the group. |
dps | Object | The list of data points. |
joinedGroups | Object[] | The device group that corresponding to a custom group. |
GET: /v1.0/iot-02/lighting/groups/package
{
"spaceId": "146886924268113****",
"groupPackageId": "147566148209509****"
}
{
"result": {
"dps": {
"scene_data": "",
"colour_data": "",
"countdown": "0",
"temp_value": "0",
"work_mode": "white",
"control_data": "",
"switch_led": "false",
"bright_value": "10"
},
"type": 2,
"deviceNum": 2,
"topCategory": "",
"name": "Custom Group 123467",
"joinedGroups": [
{
"groupType": 0,
"productId": "wobsckg5p6os****",
"pv": "2.2",
"masterDevId": "vdevo16393775054****",
"type": 0,
"deviceNum": 1,
"masterNodeId": "",
"name": "Custom Group 123467",
"iconUrl": "https://****.com/smart/solution/228006/****.png",
"id": 12089570,
"category": "",
"localKey": "91a880b8d582****"
},
{
"groupType": 0,
"productId": "sxa3tjzapeal****",
"pv": "2.2",
"masterDevId": "vdevo16393774893****",
"type": 0,
"deviceNum": 1,
"masterNodeId": "",
"name": "Custom Group 123467",
"iconUrl": "https://****com/smart/solution/228006/****.png",
"id": 12089569,
"category": "",
"localKey": "e0baec104397****"
}
],
"groupPackageId": "147566148209509****"
},
"t": 1640660096688,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback