Remind me to set thermostat for the night when I go upstairs
This commit is contained in:
36
scripts.yaml
36
scripts.yaml
@ -264,6 +264,26 @@ going_upstairs:
|
|||||||
target:
|
target:
|
||||||
entity_id: input_boolean.studio_quiet
|
entity_id: input_boolean.studio_quiet
|
||||||
alias: Turn off Studio Quiet
|
alias: Turn off Studio Quiet
|
||||||
|
- alias: Thermostat reminder
|
||||||
|
if:
|
||||||
|
- alias: If triggered from basement
|
||||||
|
condition: state
|
||||||
|
entity_id: sensor.last_alexa_name
|
||||||
|
state: Basement Echo Dot
|
||||||
|
then:
|
||||||
|
- alias: Remind in basement
|
||||||
|
service: script.speech_engine
|
||||||
|
data:
|
||||||
|
who: basement
|
||||||
|
message: Remember to set the thermostat for the night
|
||||||
|
type: alert
|
||||||
|
else:
|
||||||
|
- alias: Remind in living room
|
||||||
|
service: script.speech_engine
|
||||||
|
data:
|
||||||
|
who: living_room
|
||||||
|
message: Remember to set the thermostat for the night
|
||||||
|
type: alert
|
||||||
- if:
|
- if:
|
||||||
- condition: not
|
- condition: not
|
||||||
conditions:
|
conditions:
|
||||||
@ -409,11 +429,15 @@ going_upstairs:
|
|||||||
milliseconds: 0
|
milliseconds: 0
|
||||||
alias: Wait for response to notification
|
alias: Wait for response to notification
|
||||||
- choose:
|
- choose:
|
||||||
- conditions: '{{ wait.trigger.id == ''shutdown-yes'' }}'
|
- conditions:
|
||||||
|
- condition: template
|
||||||
|
value_template: '{{ wait.trigger.id == ''shutdown-yes'' }}'
|
||||||
sequence:
|
sequence:
|
||||||
- service: script.tony_desktop_shutdown
|
- service: script.tony_desktop_shutdown
|
||||||
data: {}
|
data: {}
|
||||||
- conditions: '{{ wait.trigger.id == ''shutdown-lock'' }}'
|
- conditions:
|
||||||
|
- condition: template
|
||||||
|
value_template: '{{ wait.trigger.id == ''shutdown-lock'' }}'
|
||||||
sequence:
|
sequence:
|
||||||
- service: script.tony_desktop_lock
|
- service: script.tony_desktop_lock
|
||||||
data: {}
|
data: {}
|
||||||
@ -453,14 +477,18 @@ going_upstairs:
|
|||||||
alias: Wait until I am in the bathroom, or in bed, or the lights are manually
|
alias: Wait until I am in the bathroom, or in bed, or the lights are manually
|
||||||
turned on
|
turned on
|
||||||
- choose:
|
- choose:
|
||||||
- conditions: '{{ wait.trigger.id == ''bathroom'' }}'
|
- conditions:
|
||||||
|
- condition: template
|
||||||
|
value_template: '{{ wait.trigger.id == ''bathroom'' }}'
|
||||||
sequence:
|
sequence:
|
||||||
- service: input_select.select_option
|
- service: input_select.select_option
|
||||||
data:
|
data:
|
||||||
option: Side Nightlight
|
option: Side Nightlight
|
||||||
target:
|
target:
|
||||||
entity_id: input_select.master_bedroom_scenes
|
entity_id: input_select.master_bedroom_scenes
|
||||||
- conditions: '{{ wait.trigger.id in [''lights'',''goodnight''] }}'
|
- conditions:
|
||||||
|
- condition: template
|
||||||
|
value_template: '{{ wait.trigger.id in [''lights'',''goodnight''] }}'
|
||||||
sequence:
|
sequence:
|
||||||
- variables:
|
- variables:
|
||||||
stop_reason: '{{ wait.trigger.id }}'
|
stop_reason: '{{ wait.trigger.id }}'
|
||||||
|
Reference in New Issue
Block a user