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

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 1 год назад
Родитель
Сommit
cb819f6de8
1 измененных файлов с 3 добавлено и 2 удалено
  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
         min: 0
         max: 1000
         max: 1000
       mapping:
       mapping:
-        - scale: 3.92
-          invert: true
+        - target_range:
+            min: 2700
+            max: 6500
     - id: 2
     - id: 2
       name: color_mode
       name: color_mode
       type: string
       type: string