mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-11-07 12:58:44 +00:00
Replace sleep mode with house mode
This commit is contained in:
@@ -33,10 +33,10 @@ automation:
|
||||
data_template:
|
||||
entity_id: >-
|
||||
|
||||
{% if is_state('input_boolean.sleep_mode', 'on') %}
|
||||
light.bedside_light
|
||||
{% else %}
|
||||
{% if is_state('input_select.house_mode', 'day') %}
|
||||
light.master_bedroom_main_lights
|
||||
{% else %}
|
||||
light.bedside_light
|
||||
{% endif %}
|
||||
|
||||
- alias: Lighting · Living room · Turn all lights on on Magic Cube flip 90
|
||||
@@ -72,9 +72,8 @@ automation:
|
||||
from: "off"
|
||||
to: "on"
|
||||
condition:
|
||||
condition: state
|
||||
entity_id: input_boolean.sleep_mode
|
||||
state: "on"
|
||||
condition: template
|
||||
value_template: "{{ not is_state('input_select.house_mode', 'day') }}"
|
||||
action:
|
||||
- service: light.turn_on
|
||||
entity_id: light.light_le_12
|
||||
@@ -96,9 +95,8 @@ automation:
|
||||
from: "off"
|
||||
to: "on"
|
||||
condition:
|
||||
condition: state
|
||||
entity_id: input_boolean.sleep_mode
|
||||
state: "on"
|
||||
condition: template
|
||||
value_template: "{{ not is_state('input_select.house_mode', 'day') }}"
|
||||
action:
|
||||
- service: light.turn_on
|
||||
entity_id:
|
||||
|
||||
@@ -69,8 +69,8 @@ automation:
|
||||
to: "off"
|
||||
condition:
|
||||
condition: state
|
||||
entity_id: input_boolean.sleep_mode
|
||||
state: "off"
|
||||
entity_id: input_select.house_mode
|
||||
state: "day"
|
||||
action:
|
||||
- service: sonos.join
|
||||
data:
|
||||
|
||||
@@ -29,10 +29,9 @@ script:
|
||||
say:
|
||||
alias: Speech · Say
|
||||
sequence:
|
||||
# Don't talk while in sleep mode.
|
||||
- condition: state
|
||||
entity_id: input_boolean.sleep_mode
|
||||
state: "off"
|
||||
# Don't talk while in night mode.
|
||||
- condition: template
|
||||
value_template: "{{ not is_state('input_select.house_mode', 'night') }}"
|
||||
# Combine partials for speech message.
|
||||
- service: script.say_discretely
|
||||
data_template:
|
||||
|
||||
Reference in New Issue
Block a user