Selaa lähdekoodia

fix(cecotec_readywarm2000max_heater): fix hvac_mode, improve temperature

- typo in hvac_mode, P1 was missing, P2 listed twice
- temperature range should be 5-35 for normal case, 1-31 for eco.
- away temperature of 7 is correct, but it should not cause the mode to switch

Issue #3991 comment
Jason Rumney 15 tuntia sitten
vanhempi
sitoutus
1260db9d65

+ 9 - 2
custom_components/tuya_local/devices/cecotec_readywarm2000max_heater.yaml

@@ -18,7 +18,7 @@ entities:
             conditions:
               - dps_val: CF
                 value: heat
-              - dps_val: P2
+              - dps_val: P1
                 value: auto
               - dps_val: ST
                 value: "off"
@@ -34,16 +34,23 @@ entities:
         name: temperature
         unit: C
         range:
-          min: 1
+          min: 5
           max: 35
         mapping:
           - constraint: preset_mode
             conditions:
               - dps_val: AF
                 value: 7
+                hidden: true  # avoid switching modes when temp hits 7
                 range:
                   min: 7
                   max: 7
+              - dps_val: EC
+                range:
+                  min: 1
+                  max: 31
+              - dps_val: ST
+                invalid: true
       - id: 3
         type: integer
         name: current_temperature