Просмотр исходного кода

fix (breville?airrounderplus_heater): merge preset into fan_mode

Since the heat modes and fan modes are mutually exclusive, merge them to
a single setting.

Issue #3582
Jason Rumney 4 месяцев назад
Родитель
Сommit
d9444d0439

+ 7 - 6
custom_components/tuya_local/devices/breville_airrounderplus_heater.yaml

@@ -34,22 +34,23 @@ entities:
         name: current_temperature
       - id: 4
         type: string
-        name: preset_mode
+        name: heat_mode
         mapping:
           - dps_val: heat_mid
-            value: eco
+            value: low
           - dps_val: heat_high
-            value: comfort
+            value: medium
           - dps_val: heat_0
-            value: boost
+            value: high
           - dps_val: heat_low
-            value: none
+            value: "off"
+            hidden: true
       - id: 5
         type: string
         name: fan_mode
         mapping:
           - dps_val: SleepWind
-            value: "off"
+            value_redirect: heat_mode
           - dps_val: NatureWind_Low
             value: low
           - dps_val: NatureWind_High