ソースを参照

ips-pro: fix and improve model

- fix dps value for the boost mode, it's "booster" here.
- handle temperature dynamically
- add cool and auto mode
Christian Garbas 1 年間 前
コミット
ad8ccb2742
1 ファイル変更30 行追加23 行削除
  1. 30 23
      custom_components/tuya_local/devices/ips_pro_heatpump.yaml

+ 30 - 23
custom_components/tuya_local/devices/ips_pro_heatpump.yaml

@@ -1,19 +1,26 @@
-name: IPS heatpump
+name: IPS Heatpump
 primary_entity:
   entity: climate
   dps:
     - id: 1
-      name: hvac_mode
       type: boolean
+      name: hvac_mode
       mapping:
         - dps_val: false
           value: "off"
-          icon: "mdi:hvac-off"
-          icon_priority: 1
         - dps_val: true
-          value: "heat"
-          icon: "mdi:hot-tub"
-          icon_priority: 3
+          constraint: work_mode
+          conditions:
+            - dps_val: smart
+              value: heat_cool
+            - dps_val: cool
+              value: cool
+            - dps_val: warm
+              value: heat
+    - id: 105
+      type: string
+      name: work_mode
+      hidden: true
     - id: 2
       name: preset_mode
       type: string
@@ -22,7 +29,7 @@ primary_entity:
           value: sleep
         - dps_val: "smart"
           value: comfort
-        - dps_val: "turbo"
+        - dps_val: "booster"
           value: boost
     - id: 102
       name: current_temperature
@@ -39,30 +46,30 @@ primary_entity:
       name: hvac_action
       type: string
       mapping:
+        - dps_val: smart
+          constraint: hvac_mode
+          conditions:
+            - dps_val: false
+              value: "off"
+            - dps_val: true
+              value: auto
+        - dps_val: cool
+          constraint: hvac_mode
+          conditions:
+            - dps_val: false
+              value: "off"
+            - dps_val: true
+              value: cooling
         - dps_val: warm
           constraint: hvac_mode
           conditions:
             - dps_val: false
               value: "off"
             - dps_val: true
-              value: idle
+              value: heating
     - id: 106
       name: temperature
       type: integer
-      mapping:
-        - constraint: temperature_unit
-          conditions:
-            - dps_val: false
-              range:
-                min: 60
-                max: 115
-            - dps_val: true
-              range:
-                min: 18
-                max: 40
-      range:
-        min: 18
-        max: 45
     - id: 107
       type: integer
       name: min_temperature