|
|
@@ -202,6 +202,8 @@ Authorization: Bearer {{key}}
|
|
|
| deviceId | string | acbccdee1122 | 设备ID或MAC地址,必须字段,后台添加限制时保持一致即可,智能家居应用目前定为大写MAC去冒号 |
|
|
|
| type | string | device | 获取哪些配置 all和不传为所有,device为设备配置列表,scene为场景配置列表,area为区域配置列表,all为所有组合配置 |
|
|
|
| areaId | string | 1234 | 区域id,可选参数,当包含区域id时,只返回这个区域树中的设备列表和场景列表。 |
|
|
|
+| groupId | string | 1234 | 面板组id,可选参数,当包含面板组id时,返回这个面板组中的所有面板包含的设备和场景关联的设备配置数据。 当包含面板组id时,忽略区域id参数|
|
|
|
+| key | string | 用户授权token,服务器为设备分配的长期有有效的授权token,内置在设备中,无需用户手动获取。 |
|
|
|
|
|
|
### 返回结果
|
|
|
|
|
|
@@ -624,6 +626,7 @@ Authorization: Bearer {{key}}
|
|
|
"port": "1", //端口,只用一个端口的设备取数组第一个值
|
|
|
"temp": 24,//默认温度24
|
|
|
"humidity": 50,//默认湿度
|
|
|
+ "control_type": "protocol", //控制类型 protocol协议类型,relay为继电器
|
|
|
"associated_scene": //-设备关联的场景,一般是输入类型设备,如干节点输入,按键,传感器等,场景数组中每次只触发一个场景
|
|
|
[
|
|
|
{"name":"scene1",//场景名称
|