Răsfoiți Sursa

Etop CH7100: Merge Auto and main thermostats

In heat mode, different dps are used to control temperature than in cool mode.
Rather than create a fourth climate entity for this case, merging the Auto and
main climate entities allows all cases to be covered (albiet with redundant
second temperature setting in cool and heat modes).

May also fix the error message "Unrecognised HVAC Mode of hot ignored", which
I think may have been coming from the Auto thermostat not applying the default
mapping.

Issue #305
Jason Rumney 3 ani în urmă
părinte
comite
9f02b3bfeb
1 a modificat fișierele cu 27 adăugiri și 88 ștergeri
  1. 27 88
      custom_components/tuya_local/devices/etop_ch7100_thermostat.yaml

+ 27 - 88
custom_components/tuya_local/devices/etop_ch7100_thermostat.yaml

@@ -109,26 +109,47 @@ primary_entity:
       name: unknown_101
       name: unknown_101
       type: boolean
       type: boolean
     - id: 104
     - id: 104
-      name: temperature
+      name: target_temp_high
       type: integer
       type: integer
       range:
       range:
-        min: 5
+        min: 6
         max: 40
         max: 40
       mapping:
       mapping:
         - constraint: temperature_unit
         - constraint: temperature_unit
           conditions:
           conditions:
             - dps_val: f
             - dps_val: f
-              value_redirect: temp_f
+              value_redirect: temp_high_f
               range:
               range:
-                min: 32
+                min: 33
                 max: 104
                 max: 104
     - id: 106
     - id: 106
-      name: temp_f
+      name: temp_high_f
       type: integer
       type: integer
       range:
       range:
-        min: 32
+        min: 33
         max: 104
         max: 104
       hidden: true
       hidden: true
+    - id: 105
+      name: target_temp_low
+      type: integer
+      range:
+        min: 5
+        max: 39
+      mapping:
+        - constraint: temperature_unit
+          conditions:
+            - dps_val: f
+              value_redirect: temp_low_f
+              range:
+                min: 32
+                max: 103
+    - id: 107
+      name: temp_low_f
+      type: integer
+      range:
+        min: 32
+        max: 103
+      hidden: true
 secondary_entities:
 secondary_entities:
   - entity: select
   - entity: select
     name: Temperature unit
     name: Temperature unit
@@ -239,85 +260,3 @@ secondary_entities:
         name: current_temp_f
         name: current_temp_f
         type: integer
         type: integer
         hidden: true
         hidden: true
-  - entity: climate
-    name: Auto range
-    category: config
-    dps:
-      - id: 1
-        name: power
-        type: boolean
-        hidden: true
-      - id: 2
-        name: hvac_mode
-        type: string
-        mapping:
-          - dps_val: auto
-            constraint: power
-            conditions:
-              - dps_val: false
-                value: "off"
-              - dps_val: true
-                value: heat_cool
-          - value: "off"
-      - id: 104
-        name: target_temp_high
-        type: integer
-        range:
-          min: 6
-          max: 40
-        mapping:
-          - constraint: temperature_unit
-            conditions:
-              - dps_val: f
-                value_redirect: temp_high_f
-                range:
-                  min: 33
-                  max: 104
-      - id: 106
-        name: temp_high_f
-        type: integer
-        range:
-          min: 33
-          max: 104
-        hidden: true
-      - id: 105
-        name: target_temp_low
-        type: integer
-        range:
-          min: 5
-          max: 39
-        mapping:
-          - constraint: temperature_unit
-            conditions:
-              - dps_val: f
-                value_redirect: temp_low_f
-                range:
-                  min: 32
-                  max: 103
-      - id: 107
-        name: temp_low_f
-        type: integer
-        range:
-          min: 32
-          max: 103
-        hidden: true
-      - id: 23
-        name: temperature_unit
-        type: string
-        mapping:
-          - dps_val: c
-            value: C
-          - dps_val: f
-            value: F
-      - id: 24
-        name: current_temperature
-        type: integer
-        mapping:
-          - constraint: temperature_unit
-            conditions:
-              - dps_val: f
-                value_redirect: current_temp_f
-      - id: 29
-        name: current_temp_f
-        type: integer
-        hidden: true