فهرست منبع

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