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

feat (lytmi_hdmisync_backlight): improve FancyLEDs support

- add optional color_temp support for reading scene
- add optional HDR level adjustment

Issue #3664
Jason Rumney 4 месяцев назад
Родитель
Сommit
ef23485220
1 измененных файлов с 54 добавлено и 5 удалено
  1. 54 5
      custom_components/tuya_local/devices/lytmi_hdmisync_backlight.yaml

+ 54 - 5
custom_components/tuya_local/devices/lytmi_hdmisync_backlight.yaml

@@ -6,6 +6,9 @@ products:
   - id: s9tscadzzt5s2cz3
     manufacturer: Fancy LEDs
     model: 3 HDMI 2.1 sync box
+  - id: 9cgdcqpe9iqg9tjn
+    manufacturer: Fancy LEDs
+    model: 3 HDMI 2.1 sync box
 entities:
   - entity: light
     dps:
@@ -37,9 +40,27 @@ entities:
             range:
               min: 0
               max: 1000
-      - id: 107
-        type: boolean
-        name: unknown_107
+      - id: 23
+        type: integer
+        optional: true
+        name: color_temp
+      - id: 23
+        type: integer
+        optional: true
+        name: color_temp_supported
+        hidden: true
+        mapping:
+          - dps_val: null
+            value: false
+          - value: true
+      - id: 25
+        type: string
+        name: color_mode
+        mapping:
+          - dps_val: "88000000000000000000000000000000"
+            available: color_temp_supported
+            value: color_temp
+          - value: hs
   - entity: switch
     name: TV synchronization switch
     category: config
@@ -47,6 +68,13 @@ entities:
       - id: 109
         name: switch
         type: boolean
+  - entity: switch
+    name: HDMI enable
+    category: config
+    dps:
+      - id: 107
+        type: boolean
+        name: switch
   - entity: select
     name: HDMI Input
     icon: "mdi:hdmi-port"
@@ -74,9 +102,9 @@ entities:
         name: option
         mapping:
           - dps_val: 0
-            value: Right
-          - dps_val: 1
             value: Left
+          - dps_val: 1
+            value: Right
   - entity: number
     category: config
     name: Degree of diffusion
@@ -150,3 +178,24 @@ entities:
             value: Scene (Color) - Breath
           - dps_val: "97000000000000000000000000000000"
             value: Scene (Color) - Pure
+  - entity: number
+    name: HDR level
+    category: config
+    icon: "mdi:hdr"
+    hidden: unavailable
+    dps:
+      - id: 113
+        type: integer
+        optional: true
+        name: value
+        range:
+          min: 0
+          max: 1000
+      - id: 113
+        type: integer
+        optional: true
+        name: available
+        mapping:
+          - dps_val: null
+            value: false
+          - value: true