Explorar o código

feat (axen_ks100w_heatpump): add current and voltage sensors

PR #3812
Jason Rumney hai 4 meses
pai
achega
90120671ab

+ 23 - 1
custom_components/tuya_local/devices/axen_ks100w_heatpump.yaml

@@ -136,7 +136,7 @@ entities:
             value: heat
             available: water_on
           - dps_val: auto_dhw
-            value: auto
+            value: heat_cool
             available: water_on
       - id: 117
         type: boolean
@@ -388,3 +388,25 @@ entities:
         class: measurement
         mapping:
           - scale: 10
+  - entity: sensor
+    class: voltage
+    category: diagnostic
+    dps:
+      - id: 128
+        type: integer
+        optional: true
+        name: sensor
+        unit: V
+        class: measurement
+  - entity: sensor
+    class: current
+    category: diagnostic
+    dps:
+      - id: 129
+        type: integer
+        optional: true
+        name: sensor
+        unit: A
+        class: measurement
+        mapping:
+          - scale: 10