Przeglądaj źródła

Add support for QS-WIFI-C02 Dual channel curtain module

Aliaksandr Kliutchenia 10 miesięcy temu
rodzic
commit
fd89e1f16a

+ 123 - 0
custom_components/tuya_local/devices/qs_c02_curtain.yaml

@@ -0,0 +1,123 @@
+name: Dual curtain module
+products:
+  - id: eum2nnfrmfdd7ori
+    model: QS-WIFI-C02
+  - id: ol1uhvza
+    model: QS-ZIGBEE-C02
+entities:
+  - entity: cover
+    class: curtain
+    name: Cover 1
+    translation_key: cover_x
+    translation_placeholders:
+      x: "1"
+    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:
+          - step: 10
+  - entity: cover
+    class: curtain
+    name: Cover 2
+    translation_key: cover_x
+    translation_placeholders:
+      x: "2"
+    dps:
+      - id: 4
+        name: control
+        type: string
+        mapping:
+          - dps_val: open
+            value: open
+          - dps_val: close
+            value: close
+          - dps_val: stop
+            value: stop
+      - id: 5
+        name: position
+        type: integer
+        unit: "%"
+        range:
+          min: 0
+          max: 100
+        mapping:
+          - step: 10
+  - entity: select
+    translation_key: mode_x
+    translation_placeholders:
+      x: "1"
+    name: Motor reverse mode 1
+    category: config
+    icon: "mdi:sign-direction"
+    dps:
+      - id: 8
+        name: option
+        type: string
+        mapping:
+          - dps_val: forward
+            value: Forward
+          - dps_val: back
+            value: Back
+  - entity: select
+    translation_key: mode_x
+    translation_placeholders:
+      x: "2"
+    name: Motor reverse mode 2
+    category: config
+    icon: "mdi:sign-direction"
+    dps:
+      - id: 9
+        name: option
+        type: string
+        mapping:
+          - dps_val: forward
+            value: Forward
+          - dps_val: back
+            value: Back
+  - entity: number
+    translation_key: time_x
+    translation_placeholders:
+      x: "1"
+    name: Travel time 1
+    category: config
+    class: duration
+    icon: "mdi:timer"
+    dps:
+      - id: 10
+        name: value
+        type: integer
+        unit: s
+        range:
+          min: 1
+          max: 60
+  - entity: number
+    translation_key: time_x
+    translation_placeholders:
+      x: "2"
+    name: Travel time 2
+    category: config
+    class: duration
+    icon: "mdi:timer"
+    dps:
+      - id: 11
+        name: value
+        type: integer
+        unit: s
+        range:
+          min: 1
+          max: 60