Przeglądaj źródła

fix (lytmi_hdmisync_backlight): make color_temp switch back to hs

- when rgb colors are adjusted, the light needs to switch back to
hs mode. Make that happen by mapping it to the "Pure" scene.
- give color_temp a range and target_range to make it work properly.

Issue #3794
Jason Rumney 4 miesięcy temu
rodzic
commit
65297232b6

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

@@ -44,6 +44,13 @@ entities:
         type: integer
         optional: true
         name: color_temp
+        range:
+          min: 0
+          max: 1000
+        mapping:
+          - target_range:
+              min: 2700
+              max: 6500
       - id: 23
         type: integer
         optional: true
@@ -60,7 +67,10 @@ entities:
           - dps_val: "88000000000000000000000000000000"
             available: color_temp_supported
             value: color_temp
+          - dps_val: "97000000000000000000000000000000"
+            value: hs
           - value: hs
+            hidden: true
   - entity: switch
     name: TV synchronization switch
     category: config