Parcourir la source

Kiturami thermostat: mode and temperature corrections

- Modes were incorrectly mapped (not changed in water_heater after figuring
  out OnDol vs OutGoing)
- Temperatures were mapped incorrectly (Room temp only used for Interior mode,
  so that should be the exception, not the main one. CHSetTemp applies to
  all other heating modes, not just Scheduled).
- Water temperature is always from DHW Set Temp.

Issue #2349
Jason Rumney il y a 1 an
Parent
commit
9f02de58ea

+ 13 - 38
custom_components/tuya_local/devices/kiturami_nctr100_thermostat.yaml

@@ -25,44 +25,33 @@ primary_entity:
         - dps_val: OutGoing
         - dps_val: OutGoing
           value: "off"
           value: "off"
           hidden: true
           hidden: true
-    - id: 5
+    - id: 103
       type: integer
       type: integer
       name: temperature
       name: temperature
       range:
       range:
-        min: 10
-        max: 45
+        min: 45
+        max: 85
       unit: C
       unit: C
       mapping:
       mapping:
         - constraint: hvac_mode
         - constraint: hvac_mode
           conditions:
           conditions:
-            - dps_val: Reservation
-              value_redirect: schedule_temperature
-              range:
-                min: 45
-                max: 85
-            - dps_val: OnDol
-              value_redirect: water_temperature
+            - dps_val: Interior
+              value_redirect: room_temperature
               range:
               range:
-                min: 35
-                max: 60
+                min: 10
+                max: 45
     - id: 6
     - id: 6
       type: integer
       type: integer
       name: current_temperature
       name: current_temperature
-    - id: 3
+    - id: 103
       type: integer
       type: integer
       name: water_temperature
       name: water_temperature
       range:
       range:
-        min: 35
-        max: 60
+        min: 45
+        max: 85
     - id: 5
     - id: 5
       type: integer
       type: integer
       name: room_temperature
       name: room_temperature
-    - id: 103
-      type: integer
-      name: schedule_temperature
-      range:
-        min: 45
-        max: 85
 secondary_entities:
 secondary_entities:
   - entity: water_heater
   - entity: water_heater
     dps:
     dps:
@@ -76,17 +65,17 @@ secondary_entities:
             constraint: mode
             constraint: mode
             conditions:
             conditions:
               - dps_val: Interior
               - dps_val: Interior
-                value: Radiator
+                value: Room
               - dps_val: Reservation
               - dps_val: Reservation
                 value: Scheduled
                 value: Scheduled
               - dps_val: OutGoing
               - dps_val: OutGoing
-                value: Underfloor heating
+                value: away
               - dps_val: Bath
               - dps_val: Bath
                 value: Hot water
                 value: Hot water
               - dps_val: Summer
               - dps_val: Summer
                 value: Quick start
                 value: Quick start
               - dps_val: OnDol
               - dps_val: OnDol
-                value: away
+                value: Underfloor
       - id: 2
       - id: 2
         type: string
         type: string
         name: mode
         name: mode
@@ -98,20 +87,6 @@ secondary_entities:
           min: 35
           min: 35
           max: 60
           max: 60
         unit: C
         unit: C
-        mapping:
-          - constraint: mode
-            conditions:
-              - dps_val: Scheduled
-                value_redirect: schedule_temperature
-                range:
-                  min: 45
-                  max: 85
-      - id: 103
-        type: integer
-        name: schedule_temperature
-        range:
-          min: 45
-          max: 85
   - entity: binary_sensor
   - entity: binary_sensor
     class: problem
     class: problem
     category: diagnostic
     category: diagnostic