Reduce and refactor automations

This commit is contained in:
Georgi Gardev
2022-12-01 16:02:00 +02:00
parent c35975492f
commit d58a40a0c2
12 changed files with 174 additions and 334 deletions
+1 -9
View File
@@ -229,15 +229,7 @@ automation:
- service: philips_airpurifier_http.set_target_humidity
entity_id: fan.philips_airpurifier
data_template:
humidity: >-
{% set state = states('input_select.purifier_target_humidity') | int %}
{% if state == 40 %}
40
{% elif state == 50 %}
50
{% else %}
60
{% endif %}
humidity: "{{ states('input_select.purifier_target_humidity') | int }}"
- alias: Purifier · Sync humidity
trigger: