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
@@ -56,8 +56,11 @@ automation:
entity_id: binary_sensor.motion_1_ias_zone
to: "on"
condition:
- condition: template
value_template: "{{ not is_state('input_select.house_mode', 'day') }}"
- condition: not
conditions:
- condition: state
entity_id: input_select.house_mode
state: 'day'
- condition: state
entity_id: input_boolean.georgi_home
state: "on"
@@ -77,8 +80,11 @@ automation:
for:
minutes: 5
condition:
condition: template
value_template: "{{ not is_state('input_select.house_mode', 'day') }}"
condition: not
conditions:
- condition: state
entity_id: input_select.house_mode
state: 'day'
action:
- service: light.turn_on
entity_id: light.light_le_12