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

feat(devices): add simple dimmer

For S1-B triac dimmer Issue #5280

This was matching a variety of CCT/RGB/RGBW/RGBCW lights, but nothing
with just brightness, as previous dimmers have used non-standard layouts.
Jason Rumney 4 недель назад
Родитель
Сommit
be09f8dc56
1 измененных файлов с 77 добавлено и 0 удалено
  1. 77 0
      custom_components/tuya_local/devices/simple_lightdimmer.yaml

+ 77 - 0
custom_components/tuya_local/devices/simple_lightdimmer.yaml

@@ -0,0 +1,77 @@
+name: Light dimmer
+products:
+  - id: v9aw2m4jafh08ahe
+    model: S1-B
+entities:
+  - entity: light
+    dps:
+      - id: 20
+        type: boolean
+        name: switch
+      - id: 21
+        name: work_mode
+        type: string
+        mapping:
+          - dps_val: white
+            value: white
+          - dps_val: colour
+            value: hs
+          - dps_val: scene
+            value: Scene
+          - dps_val: music
+            value: Music
+      - id: 22
+        name: brightness
+        type: integer
+        range:
+          min: 10
+          max: 1000
+  - entity: text
+    translation_key: scene
+    category: config
+    hidden: true
+    dps:
+      - id: 25
+        type: hex
+        name: value
+        optional: true
+  - entity: time
+    translation_key: timer
+    category: config
+    dps:
+      - id: 26
+        type: integer
+        name: second
+        range:
+          min: 0
+          max: 86399
+  - entity: text
+    name: Music
+    category: config
+    icon: "mdi:music"
+    hidden: true
+    dps:
+      - id: 27
+        type: string
+        optional: true
+        name: value
+  - entity: text
+    name: Control
+    category: config
+    icon: "mdi:cogs"
+    hidden: true
+    dps:
+      - id: 28
+        type: string
+        optional: true
+        name: value
+  - entity: text
+    name: Debug
+    category: config
+    icon: "mdi:bug"
+    hidden: true
+    dps:
+      - id: 29
+        type: string
+        optional: true
+        name: value