mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-07 02:18:43 +00:00
Use condition: not
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user