Browse Source

cleanup (madimack heatpumps): use pool_heatpump translation

- use heat_cool rather than auto for mode to match HA definitions
- add pool_heatpump translation key where not specified
- remove explicit mode icons
Jason Rumney 4 months ago
parent
commit
3b623b4277

+ 2 - 5
custom_components/tuya_local/devices/madimack_elite_v3_heatpump.yaml

@@ -1,6 +1,7 @@
-name: Madimack Elite V3 pool heatpump
+name: Pool heatpump
 entities:
   - entity: climate
+    translation_only_key: pool_heatpump
     dps:
       - id: 1
         name: hvac_mode
@@ -8,18 +9,14 @@ entities:
         mapping:
           - dps_val: false
             value: "off"
-            icon: "mdi:hvac-off"
           - dps_val: true
             constraint: mode
             conditions:
               - dps_val: auto
-                icon: "mdi:refresh-auto"
                 value: heat_cool
               - dps_val: cold
-                icon: "mdi:snowflake"
                 value: cool
               - dps_val: heating
-                icon: "mdi:hot-tub"
                 value: heat
       - id: 2
         name: mode

+ 2 - 1
custom_components/tuya_local/devices/madimack_elite_v3_heatpump_updated.yaml

@@ -5,6 +5,7 @@ products:
     model: Elite V3 11-40kW
 entities:
   - entity: climate
+    translation_only_key: pool_heatpump
     dps:
       - id: 101
         name: hvac_mode
@@ -16,7 +17,7 @@ entities:
             constraint: mode
             conditions:
               - dps_val: auto
-                value: auto
+                value: heat_cool
               - dps_val: cold
                 value: cool
               - dps_val: heating

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

@@ -17,7 +17,7 @@ entities:
             constraint: mode
             conditions:
               - dps_val: auto
-                value: auto
+                value: heat_cool
               - dps_val: cold
                 value: cool
                 available: supports_cool