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

feat(devices): add `cover_switch_with_backlight.yaml`

name: Cover Switch with Backlight
products:
  - id: fthu3wguzoqdayzp
    model: CST_WB_V1
    model_id: 000001xhgh
Jan Buschtöns 11 месяцев назад
Родитель
Сommit
a243f45c6a

+ 45 - 0
custom_components/tuya_local/devices/cover_switch_with_backlight.yaml

@@ -0,0 +1,45 @@
+name: Cover Switch with Backlight
+products:
+  - id: fthu3wguzoqdayzp
+    model: CST_WB_V1
+    model_id: 000001xhgh
+entities:
+  - entity: cover
+    class: shutter
+    dps:
+      - id: 1
+        type: string
+        name: control
+        mapping:
+          - dps_val: open
+            value: open
+          - dps_val: close
+            value: close
+          - dps_val: stop
+            value: stop
+      - id: 2
+        type: integer
+        name: position
+        range:
+          min: 0
+          max: 100
+  - entity: select
+    name: Calibration
+    icon: "mdi:arrow-collapse-vertical"
+    category: config
+    dps:
+      - id: 3
+        type: string
+        name: option
+        optional: true
+        mapping:
+          - dps_val: start
+            value: Start
+          - dps_val: end
+            value: End
+  - entity: light
+    translation_key: backlight
+    dps:
+      - id: 7
+        type: boolean
+        name: switch