Ver código fonte

feat(trotec_pac-w_heatpump): add compatible Qlima WDH 229 PTC

Issue #3595

Split out additional functions that were read-only attributes in the
original config.

- sleep (already split out to switch, but attribute no longer needed)
- defrost (split to binary_sensor)
- timer (split to number since it is hours)
- countdown (split to time_remaining sensor)

Additional Display off function mentioned, does not seem to be accessible.
Jason Rumney 6 meses atrás
pai
commit
25387ea872

+ 39 - 14
custom_components/tuya_local/devices/trotec_pac-w_heatpump.yaml

@@ -3,6 +3,9 @@ products:
   - id: 6r9as02gkiaaxelt
     manufacturer: Trotec
     model: PAC-W 2600 SH
+  - id: baefd3ueooanec3x
+    manufacturer: Qlima
+    model: WDH 229 PTC
 entities:
   - entity: climate
     dps:
@@ -29,7 +32,13 @@ entities:
         range:
           min: 16
           max: 30
-        unit: C
+        mapping:
+          - constraint: temperature_unit
+            conditions:
+              - dps_val: F
+                range:
+                  min: 60
+                  max: 86
       - id: 3
         type: integer
         name: current_temperature
@@ -50,26 +59,14 @@ entities:
       - id: 19
         name: temperature_unit
         type: string
-      - id: 101
-        name: sleep
-        type: boolean
-      - id: 102
-        name: defrost
-        type: boolean
-      - id: 103
-        name: timer
-        type: integer
       - id: 104
         name: swing_mode
         type: boolean
         mapping:
           - dps_val: true
-            value: "vertical"
+            value: "on"
           - dps_val: false
             value: "off"
-      - id: 105
-        name: countdown
-        type: integer
       - id: 110
         name: model
         type: string
@@ -80,6 +77,34 @@ entities:
       - id: 101
         type: boolean
         name: switch
+  - entity: binary_sensor
+    translation_key: defrost
+    category: diagnostic
+    dps:
+      - id: 102
+        type: boolean
+        name: sensor
+  - entity: number
+    translation_key: timer
+    category: config
+    class: duration
+    dps:
+      - id: 103
+        name: value
+        type: integer
+        unit: h
+        range:
+          min: 0
+          max: 24
+  - entity: sensor
+    translation_key: time_remaining
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 105
+        type: integer
+        name: sensor
+        unit: min
   - entity: binary_sensor
     class: problem
     category: diagnostic