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

fix(breville_airrounderplug_heater): reorder fan and preset modes

Based on user feedback both _0 are the highest setting, with low/Sleep being
the "off" setting.

There is still some interdependence between these that cannot be fully
modelled within the HA entity model and limited abilities within the
yaml config of this integration.

PR #3582
Jason Rumney 5 месяцев назад
Родитель
Сommit
7b0ac44053
1 измененных файлов с 10 добавлено и 10 удалено
  1. 10 10
      custom_components/tuya_local/devices/breville_airrounderplus_heater.yaml

+ 10 - 10
custom_components/tuya_local/devices/breville_airrounderplus_heater.yaml

@@ -18,9 +18,9 @@ entities:
             hidden: true
             hidden: true
             constraint: preset_mode
             constraint: preset_mode
             conditions:
             conditions:
-              - dps_val: heat_0
+              - dps_val: heat_low
                 value: fan_only
                 value: fan_only
-              - dps_val: heat_mid
+              - dps_val: heat_high
                 value: heat
                 value: heat
       - id: 2
       - id: 2
         type: integer
         type: integer
@@ -36,26 +36,26 @@ entities:
         type: string
         type: string
         name: preset_mode
         name: preset_mode
         mapping:
         mapping:
-          - dps_val: heat_low
-            value: eco
           - dps_val: heat_mid
           - dps_val: heat_mid
-            value: comfort
+            value: eco
           - dps_val: heat_high
           - dps_val: heat_high
-            value: boost
+            value: comfort
           - dps_val: heat_0
           - dps_val: heat_0
+            value: boost
+          - dps_val: heat_low
             value: none
             value: none
       - id: 5
       - id: 5
         type: string
         type: string
         name: fan_mode
         name: fan_mode
         mapping:
         mapping:
           - dps_val: SleepWind
           - dps_val: SleepWind
-            value: low
+            value: "off"
           - dps_val: NatureWind_Low
           - dps_val: NatureWind_Low
-            value: medium
+            value: low
           - dps_val: NatureWind_High
           - dps_val: NatureWind_High
-            value: high
+            value: medium
           - dps_val: CoolWind_0
           - dps_val: CoolWind_0
-            value: focus
+            value: high
       - id: 101
       - id: 101
         type: string
         type: string
         name: swing_mode
         name: swing_mode