Преглед изворни кода

feat(madimack_elite_v3_heatpump): add compatible Aquark Mr Silence

Issue #5008

- added additional child lock (dp 3) and current temperature (dp 16),
  with redirect to inflow temp as before when missing (log for Aquark
  also shows it missing, along with child lock dp).

- identified fault_code_2 (dp 101) and work_mode_option (dp 107) which
  selects whether the device supports 2 presets (without boost) or 3.
Jason Rumney пре 1 недеља
родитељ
комит
9cd85342bb
1 измењених фајлова са 38 додато и 7 уклоњено
  1. 38 7
      custom_components/tuya_local/devices/madimack_elite_v3_heatpump.yaml

+ 38 - 7
custom_components/tuya_local/devices/madimack_elite_v3_heatpump.yaml

@@ -1,4 +1,8 @@
 name: Pool heat pump
+products:
+  - id: gpzittzfnzhduquz
+    manufacturer: Aquark
+    model: Mr Silence 90
 entities:
   - entity: climate
     translation_only_key: pool_heatpump
@@ -46,28 +50,32 @@ entities:
             value: comfort
           - dps_val: boost
             value: boost
+            available: has_boost
       - id: 6
         name: temperature_unit
         type: string
         mapping:
           - dps_val: f
             value: F
-          - dps_val: c
-            value: C
+          - value: C
       - id: 21
         type: integer
         name: max_temperature
       - id: 22
         type: integer
         name: min_temperature
-      - id: 102
+      - id: 16
         name: current_temperature
         type: integer
-      - id: 101
-        name: unknown_101
+        optional: true
+        mapping:
+          - dps_val: null
+            value_redirect: inflow_temperature
+      - id: 102
+        name: inflow_temperature
         type: integer
       - id: 107
-        name: unknown_107
+        name: has_boost
         type: boolean
   - entity: binary_sensor
     class: problem
@@ -78,11 +86,18 @@ entities:
         name: sensor
         mapping:
           - dps_val: 0
-            value: false
+            value: true
+            constraint: fault_code_2
+            conditions:
+              - dps_val: 0
+                value: false
           - value: true
       - id: 15
         type: bitfield
         name: fault_code
+      - id: 101
+        type: bitfield
+        name: fault_code_2
   - entity: sensor
     category: diagnostic
     name: Power level
@@ -209,3 +224,19 @@ entities:
       - id: 106
         name: sensor
         type: integer
+  - entity: lock
+    translation_key: child_lock
+    category: config
+    hidden: unavailable
+    dps:
+      - id: 3
+        type: boolean
+        optional: true
+        name: lock
+      - id: 3
+        type: boolean
+        optional: true
+        mapping:
+          - dps_val: null
+            value: false
+          - value: true