Explorar el Código

Zigbee smart bulb: shift color_temp into correct range.

Remove scale and invert, use target_range.
Since range would have been outside any normal range, assume invert was a
mistake, or left over from when color temp was mireds.
Jason Rumney hace 1 año
padre
commit
cb819f6de8
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      custom_components/tuya_local/devices/zigbee_smart_bulb.yaml

+ 3 - 2
custom_components/tuya_local/devices/zigbee_smart_bulb.yaml

@@ -27,8 +27,9 @@ primary_entity:
         min: 0
         max: 1000
       mapping:
-        - scale: 3.92
-          invert: true
+        - target_range:
+            min: 2700
+            max: 6500
     - id: 2
       name: color_mode
       type: string