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

feat(devices): add Novo Q1-3E-1.2 vertical blinds

Issue #6415
Jason Rumney 5 часов назад
Родитель
Сommit
86178066d1
2 измененных файлов с 80 добавлено и 0 удалено
  1. 1 0
      DEVICES.md
  2. 79 0
      custom_components/tuya_local/devices/novo_q13e_verticalblinds.yaml

+ 1 - 0
DEVICES.md

@@ -1093,6 +1093,7 @@ of device.
 - Moes SCS80 Touch curtain switch with backlight and timing control
 - Moes SCS80 Touch curtain switch with backlight and timing control
 - Moes WS-USR-2C double curtain switch with backlight
 - Moes WS-USR-2C double curtain switch with backlight
 - Moes WS-Y-EUC curtain switch with backlight and timing control
 - Moes WS-Y-EUC curtain switch with backlight and timing control
+- Novo Q1-3E-1.2 vertical blinds
 - Outdoor Inc zip blind
 - Outdoor Inc zip blind
 - QS-WIFI-C01(BK) curtain module
 - QS-WIFI-C01(BK) curtain module
 - QS-WIFI-C02 dual curtain module
 - QS-WIFI-C02 dual curtain module

+ 79 - 0
custom_components/tuya_local/devices/novo_q13e_verticalblinds.yaml

@@ -0,0 +1,79 @@
+name: Vertical blinds
+products:
+  - id: f4jrc6yn2pfqhnco
+    manufacturer: Nova
+    model: Q1-3E-1.2
+entities:
+  - entity: cover
+    class: blind
+    dps:
+      - id: 1
+        name: control
+        type: string
+        optional: true
+        mapping:
+          - dps_val: open
+            value: open
+          - dps_val: close
+            value: close
+          - dps_val: stop
+            value: stop
+      - id: 2
+        name: tilt_position
+        type: integer
+        optional: true
+        range:
+          min: 0
+          max: 100
+        mapping:
+          - value_mirror: tilt_current_position
+      - id: 3
+        name: tilt_current_position
+        type: integer
+        hidden: true
+      - id: 7
+        name: work_state
+        type: string
+        optional: true
+  - entity: switch
+    name: Reverse
+    category: config
+    icon: "mdi:arrow-u-down-left"
+    dps:
+      - id: 5
+        type: string
+        name: switch
+        mapping:
+          - dps_val: back
+            value: true
+          - dps_val: forward
+            value: false
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 12
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+      - id: 12
+        name: fault_code
+        type: bitfield
+  - entity: number
+    name: Travel time
+    class: duration
+    category: config
+    dps:
+      - id: 10
+        type: integer
+        optional: true
+        name: value
+        unit: s
+        range:
+          min: 0
+          max: 120000
+        mapping:
+          - scale: 1000