mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-13 19:54:42 +00:00
Use condition: not
This commit is contained in:
@@ -16,6 +16,9 @@
|
||||
cards:
|
||||
- type: vertical-stack
|
||||
cards:
|
||||
- type: entities
|
||||
entities:
|
||||
- media_player.bathroom
|
||||
- type: custom:decluttering-card
|
||||
template: media_with_controls
|
||||
variables:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -48,8 +48,11 @@ automation:
|
||||
- sensor.time_picker_card_downloads
|
||||
- sensor.folder_card_downloads
|
||||
condition:
|
||||
condition: template
|
||||
value_template: "{{ not is_state('input_select.house_mode', 'night') }}"
|
||||
condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.house_mode
|
||||
state: 'night'
|
||||
action:
|
||||
- service: script.say
|
||||
data_template:
|
||||
|
||||
@@ -33,8 +33,11 @@ automation:
|
||||
entity_id: binary_sensor.motion_2_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'
|
||||
action:
|
||||
- service: light.turn_on
|
||||
entity_id: light.light_lohas_6
|
||||
@@ -53,8 +56,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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -30,8 +30,11 @@ script:
|
||||
alias: Speech · Say
|
||||
sequence:
|
||||
# Don't talk while in night mode.
|
||||
- condition: template
|
||||
value_template: "{{ not is_state('input_select.house_mode', 'night') }}"
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.house_mode
|
||||
state: 'night'
|
||||
# Combine partials for speech message.
|
||||
- service: script.say_discretely
|
||||
data_template:
|
||||
|
||||
Reference in New Issue
Block a user