Просмотр исходного кода

Add support for LoraTap Zigbee Curtain SC500ZB-V2

Nicolas 2 лет назад
Родитель
Сommit
027c0861a2
1 измененных файлов с 59 добавлено и 0 удалено
  1. 59 0
      custom_components/tuya_local/devices/loratap_zigbee_curtain.yaml

+ 59 - 0
custom_components/tuya_local/devices/loratap_zigbee_curtain.yaml

@@ -0,0 +1,59 @@
+name: ZigBee Curtain
+product:
+  - id: 8kzqqzu4
+    name: SC500ZB-V2
+primary_entity:
+  entity: cover
+  class: shutter
+  dps:
+    - id: 1
+      name: control
+      type: string
+      mapping:
+        - dps_val: "open"
+          value: open
+        - dps_val: "close"
+          value: close
+        - dps_val: "stop"
+          value: stop
+    - id: 2
+      name: position
+      type: integer
+      unit: "%"
+      range:
+        min: 0
+        max: 100
+      mapping:
+        - scale: 0
+        - step: 10
+    - id: 14
+      name: light_mode
+      type: string
+      hidden: true
+secondary_entities:
+  - entity: switch
+    category: config
+    name: Reverse Motor Direction
+    icon: "mdi:arrow-u-down-left"
+    dps:
+      - id: 8
+        type: string
+        name: switch
+        mapping:
+          - dps_val: "forward"
+            value: false
+          - dps_val: "back"
+            value: true
+  - entity: select
+    name: Calibration
+    category: config
+    icon: "mdi:toggle-switch"
+    dps:
+      - id: 3
+        name: option
+        type: string
+        mapping:
+          - dps_val: "start"
+            value: "On"
+          - dps_val: "end"
+            value: "Off"