单个自定义群组详情

更新时间:2023-06-21 07:13:00下载pdf

本文介绍单个自定义群组详情的 API。

接口描述

单个自定义群组详情,包括群组类型、设备数、可控制功能点以及包含的设备群组。

接口地址

GET: /v1.0/iot-02/lighting/groups/package

请求参数

body 说明

参数名类型参数位置是否必填说明
spaceIdStringbodytrue空间 ID
groupPackageIdStringbodytrue自定义群组 ID

返回参数

参数名类型说明
typeint设备群组类型。
  • 1:表示空群组
  • 2:表示标准群组
  • 3:表示组合群组
deviceNumint群组设备数量
dpsObject功能点列表
joinedGroupsObject[]大群组对应的设备群组

请求示例

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
}

错误码

参考 错误码