|
|
@@ -860,6 +860,32 @@ Authorization: Bearer {{key}}
|
|
|
]
|
|
|
```
|
|
|
|
|
|
+### 遥控器设备配置数据示例
|
|
|
+
|
|
|
+```json
|
|
|
+[
|
|
|
+ {//协议窗帘
|
|
|
+ "id": "1", "pid": "1","area_id": "区域ID", "area": "区域名称", "name": "0001", "display_name": "晾衣架",
|
|
|
+ "type": "remotecontrol",
|
|
|
+
|
|
|
+ //remotecontrol_common 通用/remotecontrol_tv 电视遥控/remotecontrol_aircon 空调遥控 /remotecontrol_fan_light 风扇灯/ remotecontrol_fan 风扇/ remotecontrol_curtain 窗帘/remotecontrol_airer 晾衣架/
|
|
|
+ "subtype": "remotecontrol_common",
|
|
|
+ "config":
|
|
|
+ {
|
|
|
+ "bus":"canbus",
|
|
|
+ "control_type": "protocol", //控制类型 0协议类型,1为继电器
|
|
|
+ "address": "A5", //地址继电器地址或协议转换器地址,
|
|
|
+ "port": "1", //对应为协议转换器端口,取值范围1-4
|
|
|
+ "control_addr":"33", //433遥控器设备地址,0-255,
|
|
|
+ "remote_id":"FF11A0", //433协议遥控器为遥控器id,433设备对应的遥控码,3字节16进制字符串格式,内置遥控码的预留字段,预留为空
|
|
|
+ //遥控器按键映射表
|
|
|
+ "keys":["up","down","left","right","ok","back","menu","volume_up","volume_down","channel_up","channel_down","power","mode"]
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
+]
|
|
|
+```
|
|
|
+
|
|
|
### 门锁设备配置数据示例
|
|
|
|
|
|
```json
|