ソースを参照

添加电动门窗设备

miricy 5 ヶ月 前
コミット
10f2c21ab8
1 ファイル変更21 行追加0 行削除
  1. 21 0
      product/deviceconfig.md

+ 21 - 0
product/deviceconfig.md

@@ -881,6 +881,27 @@ Authorization: Bearer {{key}}
 ]
 ```
 
+### 电动门窗设备配置数据示例
+
+```json
+[
+  {//协议电动门窗
+    "id": "1", "pid": "1","area_id": "区域ID", "area": "区域名称", "name": "0001", "display_name": "窗帘",
+    "type":    "power_window", //电动门窗
+    "subtype":    "common_window", //common_window为普通电动窗,common_door为普通电动门
+    "opr": "操作模式", // addOrUpd 添加或者更新 |del 删除
+    "config":  
+    {
+        "bus":"canbus",
+        "control_type":"horizontally_opening",  //控制类型 "horizontally_opening", "平开式"/"inward_tilting",内倒式 both_directions 双重方式
+        "address": "A5", //地址继电器地址或协议转换器地址
+        "port": "1",  //对应为协议转换器端口,取值范围1-4
+        "control_addr":"33", //485窗帘为电机地址,0-255,
+    }
+  },
+]
+```
+
 ### 刷卡器设备配置数据示例
 
 ```json