Răsfoiți Sursa

Conditional mappings do not support defaults.

A few devices were using a default mapping inside of a conditional
mapping, but the code does not support this. After checking the code,
it is not easy to modify this to work, so for now, change the few
configs that attempt it.

Issue #1560
Jason Rumney 1 an în urmă
părinte
comite
2477d5a7ff

+ 2 - 1
custom_components/tuya_local/devices/avatto_me81_thermostat.yaml

@@ -54,7 +54,8 @@ primary_entity:
               mapping:
               mapping:
                 - dps_val: open
                 - dps_val: open
                   value: heating
                   value: heating
-                - value: idle
+                - dps_val: close
+                  value: idle
     - id: 38
     - id: 38
       type: string
       type: string
       optional: true
       optional: true

+ 6 - 1
custom_components/tuya_local/devices/bht002_gblw_thermostat.yaml

@@ -34,7 +34,12 @@ primary_entity:
               mapping:
               mapping:
                 - dps_val: Warming
                 - dps_val: Warming
                   value: heating
                   value: heating
-                - value: idle
+                - dps_val: "Off"
+                  value: idle
+                - dps_val: Closed
+                  value: idle
+                - dps_val: null
+                  value: idle
     - id: 16
     - id: 16
       name: temperature
       name: temperature
       type: integer
       type: integer

+ 2 - 1
custom_components/tuya_local/devices/hysen_hy08acf_thermostat.yaml

@@ -100,7 +100,8 @@ primary_entity:
                   value: heating
                   value: heating
                 - dps_val: coolvalve
                 - dps_val: coolvalve
                   value: cooling
                   value: cooling
-                - value: idle
+                - dps_val: closed
+                  value: idle
     - id: 121
     - id: 121
       name: program
       name: program
       type: integer
       type: integer