Explorar o código

Hellnar: Implement hvacmode off, swap current and target temperature.

ElectriQ: Move hvacmode off emulation from cool to fan_only mode.
This is just a precaution to minimise any impact of unexpected mode changes
especially between heat and cool.
Jason Rumney %!s(int64=4) %!d(string=hai) anos
pai
achega
befb61246a

+ 1 - 1
custom_components/tuya_local/devices/electriq_12wminv_heatpump.yaml

@@ -30,7 +30,6 @@ primary_entity:
           constraint: power
           constraint: power
           conditions:
           conditions:
             - dps_val: false
             - dps_val: false
-              value: "off"
               value_redirect: power
               value_redirect: power
             - dps_val: true
             - dps_val: true
               value: cool
               value: cool
@@ -41,6 +40,7 @@ primary_entity:
           conditions:
           conditions:
             - dps_val: false
             - dps_val: false
               value_redirect: power
               value_redirect: power
+              value: "off"
             - dps_val: true
             - dps_val: true
               value: fan_only
               value: fan_only
         - dps_val: wet
         - dps_val: wet

+ 4 - 3
custom_components/tuya_local/devices/hellnar_heatpump.yaml

@@ -12,6 +12,9 @@ primary_entity:
           icon_priority: 1
           icon_priority: 1
       hidden: true
       hidden: true
     - id: 2
     - id: 2
+      name: current_temperature
+      type: integer
+    - id: 3
       name: temperature
       name: temperature
       type: integer
       type: integer
       mapping:
       mapping:
@@ -33,9 +36,6 @@ primary_entity:
           invalid: true
           invalid: true
         - dps_val: wind
         - dps_val: wind
           invalid: true
           invalid: true
-    - id: 3
-      name: current_temperature
-      type: integer
     - id: 4
     - id: 4
       name: preset_mode
       name: preset_mode
       type: string
       type: string
@@ -74,6 +74,7 @@ primary_entity:
           conditions:
           conditions:
             - dps_val: false
             - dps_val: false
               value_redirect: power
               value_redirect: power
+              value: off
             - dps_val: true
             - dps_val: true
               value: fan_only
               value: fan_only
         - dps_val: wet
         - dps_val: wet