소스 검색

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 4 년 전
부모
커밋
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