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

ME80: expose auto/manual in hvac_mode

Since there are just the two presets, auto can be exposed as auto in hvac_mode.
Jason Rumney 3 лет назад
Родитель
Сommit
2601907326
1 измененных файлов с 8 добавлено и 1 удалено
  1. 8 1
      custom_components/tuya_local/devices/me80_thermostat.yaml

+ 8 - 1
custom_components/tuya_local/devices/me80_thermostat.yaml

@@ -7,7 +7,14 @@ primary_entity:
       name: hvac_mode
       mapping:
         - dps_val: true
-          value: heat
+          constraint: preset_mode
+          conditions:
+            - dps_val: auto
+              value: auto
+            - dps_val: manual
+              value: heat
+              # in case of unknown presets
+            - value: heat
         - dps_val: false
           value: "off"
     - id: 2