4
0
Эх сурвалжийг харах

feat: added support for the Fantasy 3 Syncbox by Lytmi

Jafar Atili 2 жил өмнө
parent
commit
0a91f35336

+ 118 - 0
custom_components/tuya_local/devices/lytmi_fantasy3_hdmi_syncbox.yaml

@@ -0,0 +1,118 @@
+name: HDMI sync backlight
+products:
+  - id: bfedc6cf9dcae291b04ecj
+    name: Lytmi Fantasy 3
+primary_entity:
+  entity: light
+  dps:
+    - id: 20
+      name: switch
+      type: boolean
+    - id: 21
+      name: color_mode
+      type: string
+      mapping:
+        - dps_val: colour
+          value: hs
+    - 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: 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
+
+secondary_entities:
+  - entity: select
+    name: Scene
+    format:
+      - name: scene_num
+        bytes: 2
+        range:
+          min: 1
+          max: 8
+    icon: "mdi:palette"
+    category: config
+    dps:
+      - id: 25
+        type: hex
+        name: option
+        mapping:
+          - dps_val: "80000000000000000000000000000000"
+            value: Sync - Video
+          - dps_val: "81000000000000000000000000000000"
+            value: Sync - Recreation
+          - dps_val: "82000000000000000000000000000000"
+            value: Sync - Game
+          - dps_val: "98000000000000000000000000000000"
+            value: Music - Classic
+          - dps_val: "99000000000000000000000000000000"
+            value: Music - Pop
+          - dps_val: "9A000000000000000000000000000000"
+            value: Music - Rock
+          - dps_val: "9B000000000000000000000000000000"
+            value: Music - Absolute
+          - dps_val: "9C000000000000000000000000000000"
+            value: Music - Electror
+          - dps_val: "9D000000000000000000000000000000"
+            value: Music - Ambient
+          - dps_val: "86000000000000000000000000000000"
+            value: Scene - Rainbow
+          - dps_val: "87000000000000000000000000000000"
+            value: Scene - Fire
+          - dps_val: "88000000000000000000000000000000"
+            value: Scene - Read
+          - dps_val: "89000000000000000000000000000000"
+            value: Scene - Firework
+          - dps_val: "90000000000000000000000000000000"
+            value: Scene - Star
+          - dps_val: "91000000000000000000000000000000"
+            value: Scene - Drip
+          - dps_val: "92000000000000000000000000000000"
+            value: Scene - Practice
+          - dps_val: "93000000000000000000000000000000"
+            value: Scene - Flow
+          - dps_val: "94000000000000000000000000000000"
+            value: Scene - Ball
+          - dps_val: "95000000000000000000000000000000"
+            value: Scene - Swing
+          - dps_val: "96000000000000000000000000000000"
+            value: Scene - Breath
+          - dps_val: "97000000000000000000000000000000"
+            value: Scene - Pure     
+