更新时间:2023-06-15 06:09:31
本文介绍单个自定义群组详情的 API。
单个自定义群组详情,包括群组类型、设备数、可控制功能点以及包含的设备群组。
GET: /v1.0/iot-02/lighting/groups/package
body
说明
参数名 | 类型 | 参数位置 | 是否必填 | 说明 |
---|---|---|---|---|
spaceId | String | body | true | 空间 ID |
groupPackageId | String | body | true | 自定义群组 ID |
参数名 | 类型 | 说明 |
---|---|---|
type | int | 设备群组类型。
|
deviceNum | int | 群组设备数量 |
dps | Object | 功能点列表 |
joinedGroups | Object[] | 大群组对应的设备群组 |
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": "自定义群组123467",
"joinedGroups": [
{
"groupType": 0,
"productId": "wobsckg5p6os****",
"pv": "2.2",
"masterDevId": "vdevo16393775054****",
"type": 0,
"deviceNum": 1,
"masterNodeId": "",
"name": "自定义群组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": "自定义群组123467",
"iconUrl": "https://****com/smart/solution/228006/****.png",
"id": 12089569,
"category": "",
"localKey": "e0baec104397****"
}
],
"groupPackageId": "147566148209509****"
},
"t": 1640660096688,
"success": true
}
参考 错误码。
该内容对您有帮助吗?
是意见反馈该内容对您有帮助吗?
是意见反馈