Use condition: not

This commit is contained in:
2020-05-20 22:11:49 +03:00
parent 8a10d75709
commit 1fe258ec11
6 changed files with 38 additions and 14 deletions
@@ -99,8 +99,11 @@ automation:
from: "off"
to: "on"
condition:
condition: template
value_template: "{{ not is_state('climate.toshiba_ac', 'off') }}"
condition: not
conditions:
- condition: state
entity_id: climate.toshiba_ac
state: 'off'
action:
- service: climate.turn_off
entity_id: climate.toshiba_ac