4
0
Эх сурвалжийг харах

Add Aquark Heat Pump. (#5312)

* Add Aquark Heat Pump.

* Fix `temperature_unit` type.

* Rename `silent` to `quiet`.

* Add sensors for fault codes.

* Revert changes in existing files.

* Undo gardenpac_heatpump reordering

* Remove Fault Code sensors from aquark_heatpump.yaml

The fault codes are available as attributes of the problem sensor, which is more convenient for automations for detecting problem conditions in general. They do not need to be repeated as separate entities.

* feat(aquark_heatpump): add product id from #4620

- same device, but that config needs more work, so the more recent
one was chosen instead.

---------

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
Markus Reiter 1 долоо хоног өмнө
parent
commit
d76872de3c

+ 124 - 0
custom_components/tuya_local/devices/aquark_heatpump.yaml

@@ -0,0 +1,124 @@
+name: Pool heat pump
+products:
+  - id: eeih95rmks0mjflz
+    manufacturer: Aquark
+    model: Mr. Silence
+  - id: pkm5dso5i0lmx1dy
+    manufacturer: Aquark
+    model: Mr. Silence
+entities:
+  - entity: climate
+    translation_key: pool_heatpump
+    dps:
+      - id: 1
+        name: hvac_mode
+        type: boolean
+        mapping:
+          - dps_val: false
+            value: "off"
+          - dps_val: true
+            constraint: mode
+            conditions:
+              - dps_val: warm
+                value: heat
+              - dps_val: cool
+                value: cool
+              - dps_val: smart
+                value: heat_cool
+      - id: 102
+        name: current_temperature
+        type: integer
+      - id: 103
+        name: temperature_unit
+        type: boolean
+        mapping:
+          - dps_val: false
+            value: F
+          - dps_val: true
+            value: C
+      - id: 105
+        name: mode
+        type: string
+        hidden: true
+      - id: 106
+        name: temperature
+        type: integer
+        mapping:
+          - constraint: temperature_unit
+            conditions:
+              - dps_val: false
+                range:
+                  min: 54
+                  max: 104
+        range:
+          min: 12
+          max: 40
+      - id: 107
+        type: integer
+        name: min_temperature
+      - id: 108
+        type: integer
+        name: max_temperature
+      - id: 117
+        name: preset_mode
+        type: boolean
+        mapping:
+          - dps_val: false
+            value: quiet
+          - dps_val: true
+            value: boost
+  - entity: sensor
+    category: diagnostic
+    name: Speed
+    icon: "mdi:speedometer"
+    dps:
+      - id: 104
+        type: integer
+        name: sensor
+        unit: "%"
+        class: measurement
+  - entity: binary_sensor
+    name: Water flow
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 115
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 4
+            value: true
+          - value: false
+  - entity: select
+    translation_key: temperature_unit
+    category: config
+    dps:
+      - id: 103
+        type: boolean
+        name: option
+        mapping:
+          - dps_val: false
+            value: fahrenheit
+          - dps_val: true
+            value: celsius
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 116
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: true
+            constraint: fault_code
+            conditions:
+              - dps_val: [0, 4]
+                value: false
+          - value: true
+      - id: 115
+        type: bitfield
+        name: fault_code
+      - id: 116
+        type: bitfield
+        name: fault_code_2

+ 12 - 0
custom_components/tuya_local/devices/fairland_iphcr15_heatpump.yaml

@@ -89,6 +89,18 @@ entities:
           - dps_val: 4
             value: true
           - value: false
+  - entity: select
+    translation_key: temperature_unit
+    category: config
+    dps:
+      - id: 103
+        type: boolean
+        name: option
+        mapping:
+          - dps_val: false
+            value: fahrenheit
+          - dps_val: true
+            value: celsius
   - entity: binary_sensor
     class: problem
     category: diagnostic

+ 12 - 0
custom_components/tuya_local/devices/gardenpac_heatpump.yaml

@@ -78,6 +78,18 @@ entities:
           - dps_val: 4
             value: true
           - value: false
+  - entity: select
+    translation_key: temperature_unit
+    category: config
+    dps:
+      - id: 103
+        type: boolean
+        name: option
+        mapping:
+          - dps_val: false
+            value: fahrenheit
+          - dps_val: true
+            value: celsius
   - entity: binary_sensor
     class: problem
     category: diagnostic