Преглед изворни кода

Betterlife BL1500: Better ECO Mode handling

When you set eco mode the heater locks to 20ºC which isn't reflected in HA. 
This commit makes HA override the set temperature shown to 20ºC and after disabling Eco mode it goes back to displaying the previous temperature following the heater behavior.
Keita пре 3 година
родитељ
комит
a13f00f4ca
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4 1
      custom_components/tuya_local/devices/betterlife_bl1500_heater.yaml

+ 4 - 1
custom_components/tuya_local/devices/betterlife_bl1500_heater.yaml

@@ -24,7 +24,10 @@ primary_entity:
         - constraint: preset_mode
         - constraint: preset_mode
           conditions:
           conditions:
             - dps_val: "2"
             - dps_val: "2"
-              invalid: true
+              value: 20
+              range:
+                min: 20
+                max: 20
     - id: 4
     - id: 4
       type: string
       type: string
       name: preset_mode
       name: preset_mode