Browse Source

添加遥控器,晾衣架,风扇灯设备配置

miricy 4 months ago
parent
commit
1c18766e50
1 changed files with 54 additions and 9 deletions
  1. 54 9
      product/deviceconfig.md

+ 54 - 9
product/deviceconfig.md

@@ -864,21 +864,20 @@ Authorization: Bearer {{key}}
 
 ```json
 [
-  {//协议窗帘
-    "id": "1", "pid": "1","area_id": "区域ID", "area": "区域名称", "name": "0001", "display_name": "晾衣架",
+  {//协议遥控器
+    "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进制字符串格式,内置遥控码的预留字段,预留为空
-        //遥控器按键映射表
+        "bus":"canbus",  //设备接入总线或协议类型,canbus/network/serial/RS485/gpio/zigbee/bluetooth/dali/knx/plc-iot/rf433,默认canbus
+        "control_type":    "protocol",  //控制类型 0协议类型
+        "address": "A5", //设备地址或协议转换器地址,网络或蓝牙协议无协议转换器时为mac地址,地址范围不需要限制 
+        "port": "1",  //对应为协议转换器端口,取值范围0-255
+        "control_addr":"33", //转发设备地址,0-255,
+        //遥控器按键映射表 
         "keys":["up","down","left","right","ok","back","menu","volume_up","volume_down","channel_up","channel_down","power","mode"] 
     
     }
@@ -886,6 +885,52 @@ Authorization: Bearer {{key}}
 ]
 ```
 
+### 晾衣架设备配置数据示例
+
+```json
+[
+  {
+    "id": "1", "pid": "1","area_id": "区域ID", "area": "区域名称", "name": "0001", "display_name": "晾衣架",
+    "type":    "airer",
+
+    //airer_common 通用/ airer_remote 遥控类型,遥控类型无状态
+    "subtype":    "airer_remote", 
+    "config":  
+    {
+        "bus":"canbus",  //设备接入总线或协议类型,canbus/network/serial/RS485/gpio/zigbee/bluetooth/dali/knx/plc-iot/rf433,默认canbus
+        "control_type":    "protocol",  //控制类型 protocol 协议类型,protocol_1 ,
+        "address": "A5", //设备地址,蓝牙协议无协议转换器时为蓝牙mac地址 
+        "port": "1",  //对应为协议转换器端口,取值范围1-4
+        "control_addr":"33", //转发设备地址,0-255,
+        "remote_id":"FF11A0", //433协议遥控器为遥控器id,433设备对应的遥控码,3字节16进制字符串格式,内置遥控码的预留字段,预留默认为000000
+    }
+  },
+]
+```
+
+### 风扇灯 设备配置数据示例
+
+```json
+[
+  {
+    "id": "1", "pid": "1","area_id": "区域ID", "area": "区域名称", "name": "0001", "display_name": "晾衣架",
+    "type":    "airer",
+
+    //airer_common 通用/ airer_remote 遥控类型,遥控类型无状态
+    "subtype":    "fan_light", 
+    "config":  
+    {
+        "bus":"canbus",  //设备接入总线或协议类型,canbus/network/serial/RS485/gpio/zigbee/bluetooth/dali/knx/plc-iot/rf433,默认canbus
+        "control_type":    "protocol",  //控制类型 0协议类型
+        "address": "A5", //地址继电器地址或协议转换器地址,蓝牙协议无协议转换器时为蓝牙mac地址 
+        "port": "1",  //对应为协议转换器端口,取值范围1-4
+        "control_addr":"33", //转发设备地址,0-255,
+        "remote_id":"FF11A0", //433协议遥控器为遥控器id,433设备对应的遥控码,3字节16进制字符串格式,内置遥控码的预留字段,预留为空
+    }
+  },
+]
+```
+
 ### 门锁设备配置数据示例
 
 ```json