Просмотр исходного кода

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 4 лет назад
Родитель
Сommit
befb61246a

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

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

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

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