Răsfoiți Sursa

Axen_heatpump: improvements based on PR #2787

- use inlet rather than ambient temperature for climate current temperature
- decouple water heater operation mode from the switch
- add fault_flag to problem sensor
- mark less interesting sensors as hidden by default

Other sensors above dp 128 do not show in the log, and there are a lot
of them, often difficult to clearly differentiate from others, so were
not added. The original issue #2561 has all the details.
Jason Rumney 9 luni în urmă
părinte
comite
b2c1db82ca

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -907,3 +907,4 @@ Further device support has been made with the assistance of users. Please consid
 - [Wob76](https://github.com/Wob76) for assisting with support for Sailesi litter box.
 - [Zycrannny](https://github.com/Zycrannny) for assisting with support for Prestige M3 ceiling fan with light.
 - [hcanIngo](https://github.com/hcanIngo) for contributing support for Powerworld PW040 water+air heat pump.
+- [amantia](https://github.com/amantia) for contributing improvements to Axen water+air heat pump.

+ 48 - 28
custom_components/tuya_local/devices/axen_ks100w_heatpump.yaml

@@ -26,6 +26,10 @@ entities:
       - id: 6
         type: bitfield
         name: fault_code
+      - id: 130
+        type: boolean
+        optional: true
+        name: fault_flag
   - entity: switch
     name: Mute
     icon: "mdi:volume-mute"
@@ -151,7 +155,7 @@ entities:
                 value: idle
               - dps_val: ["auto", "auto_dhw"]
                 value: null
-      - id: 118
+      - id: 106
         type: integer
         name: current_temperature
         mapping:
@@ -161,27 +165,7 @@ entities:
     dps:
       - id: 1
         type: boolean
-        name: operation_mode
-        mapping:
-          - dps_val: false
-            value: "off"
-          - dps_val: true
-            constraint: work_mode
-            conditions:
-              - dps_val: cool
-                value: cool
-              - dps_val: heat
-                value: heat
-              - dps_val: auto
-                value: auto
-              - dps_val: hot_water
-                value: hotwater
-              - dps_val: hotwater_cool
-                value: hot_water_and_cooling
-              - dps_val: hotwater_heat
-                value: hot_water_and_heating
-              - dps_val: auto_dhw
-                value: hotwater_auto
+        name: available
       - id: 104
         type: integer
         name: temperature
@@ -199,8 +183,22 @@ entities:
           - scale: 10
       - id: 109
         type: string
-        name: work_mode
-        hidden: true
+        name: operation_mode
+        mapping:
+          - dps_val: cool
+            value: cool
+          - dps_val: heat
+            value: heat
+          - dps_val: auto
+            value: auto
+          - dps_val: hot_water
+            value: hotwater
+          - dps_val: cool_hot_water
+            value: hotwater_cool
+          - dps_val: heat_hot_water
+            value: hotwater_heat
+          - dps_val: auto_dhw
+            value: hotwater_auto
       - id: 165
         type: boolean
         optional: true
@@ -212,6 +210,7 @@ entities:
   - entity: sensor
     name: Inlet temperature
     class: temperature
+    deprecated: climate current_temperature
     category: diagnostic
     dps:
       - id: 106
@@ -225,6 +224,7 @@ entities:
     name: Outlet temperature
     class: temperature
     category: diagnostic
+    hidden: true
     dps:
       - id: 107
         type: integer
@@ -237,6 +237,7 @@ entities:
     name: Frost protection
     class: cold
     category: diagnostic
+    hidden: true
     dps:
       - id: 114
         type: boolean
@@ -260,10 +261,23 @@ entities:
       - id: 116
         type: boolean
         name: sensor
+  - entity: sensor
+    name: Ambient temperature
+    class: temperature
+    category: diagnostic
+    dps:
+      - id: 118
+        type: integer
+        name: sensor
+        unit: C
+        class: measurement
+        mapping:
+          - scale: 10
   - entity: sensor
     name: Exhaust temperature
     class: temperature
     category: diagnostic
+    hidden: true
     dps:
       - id: 119
         type: integer
@@ -276,6 +290,7 @@ entities:
     name: Return temperature
     class: temperature
     category: diagnostic
+    hidden: true
     dps:
       - id: 120
         type: integer
@@ -288,6 +303,7 @@ entities:
     name: Compressor frequency
     class: frequency
     category: diagnostic
+    hidden: true
     dps:
       - id: 121
         type: integer
@@ -296,28 +312,28 @@ entities:
         class: measurement
   - entity: sensor
     name: Main EEV
-    class: frequency
     category: diagnostic
+    hidden: true
     dps:
       - id: 122
         type: integer
         name: sensor
-        unit: Hz
         class: measurement
   - entity: sensor
     name: Auxiliary EEV
-    class: frequency
     category: diagnostic
+    hidden: true
     dps:
       - id: 123
         type: integer
         name: sensor
-        unit: Hz
         class: measurement
   - entity: sensor
     name: AC Fan
+    icon: "mdi:fan-auto"
     class: enum
     category: diagnostic
+    hidden: true
     dps:
       - id: 124
         type: string
@@ -331,7 +347,9 @@ entities:
             value: high
   - entity: sensor
     name: DC fan 1
+    icon: "mdi:fan-speed-1"
     category: diagnostic
+    hidden: true
     dps:
       - id: 125
         type: integer
@@ -340,7 +358,9 @@ entities:
         class: measurement
   - entity: sensor
     name: DC fan 2
+    icon: "mdi:fan-speed-2"
     category: diagnostic
+    hidden: true
     dps:
       - id: 126
         type: integer