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

Add support for Lytmi HDMI sync backlight

Issue #790
Jason Rumney 2 лет назад
Родитель
Сommit
3763a0d575

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -292,3 +292,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [alexeyatbluescape](https://github.com/alexeyatbluescape) for contributing support for Feit dimmer.
 - [g470258](https://github.com/g470258) for contributing support for Thermex IF water heaters and Russian language translations.
 - [julianocomg](https://github.com/julianocomg) for contributing support for Adaprox fingerbot plus and 6-way simple switches.
+- [andyrak](https://github.com/andyrak) for assisting with support for Lytmi HDMI sync backlights.

+ 1 - 0
DEVICES.md

@@ -313,6 +313,7 @@ of device.
 - Galaxy Projector
 - HDMI sync light
 - iHD001 LED controller
+- Lytmi Fantasy/Neo 3 HDMI sync backlight
 - Moes dimmer switch
 - Moes motion sensor lights (XZ-CGV3)
 - Space Dog Music Lamp

+ 67 - 0
custom_components/tuya_local/devices/lytmi_hdmisync_backlight.yaml

@@ -0,0 +1,67 @@
+name: HDMI sync backlight
+products:
+  - id: js0t2z9y1tnphvds
+    name: Lytmi Fantasy/Neo 3
+primary_entity:
+  entity: light
+  dps:
+    - id: 20
+      name: switch
+      type: boolean
+    - id: 21
+      name: color_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
+      mapping:
+        - scale: 3.92
+    - id: 24
+      name: rgbhsv
+      type: hex
+      format:
+        - name: h
+          bytes: 2
+          range:
+            min: 0
+            max: 360
+        - name: s
+          bytes: 2
+          range:
+            min: 0
+            max: 1000
+        - name: v
+          bytes: 2
+          range:
+            min: 0
+            max: 1000
+    - id: 25
+      type: hex
+      name: scene
+    - id: 101
+      type: integer
+      name: unknown_101
+    - id: 105
+      type: integer
+      name: unknown_105
+    - id: 107
+      type: boolean
+      name: unknown_107
+    - id: 108
+      type: integer
+      name: unknown_108
+    - id: 109
+      type: boolean
+      name: unknown_109