浏览代码

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 2 年之前
父节点
当前提交
2477d5a7ff

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

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

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

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

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

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