소스 검색

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 년 전
부모
커밋
9f02b3bfeb
1개의 변경된 파일27개의 추가작업 그리고 88개의 파일을 삭제
  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
       type: boolean
     - id: 104
-      name: temperature
+      name: target_temp_high
       type: integer
       range:
-        min: 5
+        min: 6
         max: 40
       mapping:
         - constraint: temperature_unit
           conditions:
             - dps_val: f
-              value_redirect: temp_f
+              value_redirect: temp_high_f
               range:
-                min: 32
+                min: 33
                 max: 104
     - id: 106
-      name: temp_f
+      name: temp_high_f
       type: integer
       range:
-        min: 32
+        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
 secondary_entities:
   - entity: select
     name: Temperature unit
@@ -239,85 +260,3 @@ secondary_entities:
         name: current_temp_f
         type: integer
         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