Optionally shut down my computer when I head to bed
This commit is contained in:
@ -43,6 +43,34 @@ automation:
|
|||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id: light.furnace_room_overhead
|
entity_id: light.furnace_room_overhead
|
||||||
|
|
||||||
|
- id: 922740c8-0c23-4e71-81a8-f88de8b2a8ae
|
||||||
|
alias: Shut down computer at end of night
|
||||||
|
trigger:
|
||||||
|
- platform: event
|
||||||
|
event_type: alexa_actionable_notification
|
||||||
|
event_data:
|
||||||
|
event_id: actionable_notification_shutdown_computer
|
||||||
|
event_response_type: ResponseYes
|
||||||
|
id: shutdown_yes
|
||||||
|
- platform: event
|
||||||
|
event_type: alexa_actionable_notification
|
||||||
|
event_data:
|
||||||
|
event_id: actionable_notification_shutdown_computer
|
||||||
|
event_response_type: ResponseNo
|
||||||
|
id: shutdown_no
|
||||||
|
action:
|
||||||
|
- if:
|
||||||
|
- condition: trigger
|
||||||
|
id: shutdown-yes
|
||||||
|
then:
|
||||||
|
- service: script.tony_desktop_shutdown
|
||||||
|
- if:
|
||||||
|
- condition: trigger
|
||||||
|
id: shutdown-no
|
||||||
|
then:
|
||||||
|
- service: script.tony_desktop_lock
|
||||||
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
activate_alexa_actionable_notification:
|
activate_alexa_actionable_notification:
|
||||||
description: 'Activates an actionable notification on a specific echo device'
|
description: 'Activates an actionable notification on a specific echo device'
|
||||||
|
@ -229,6 +229,11 @@ going_upstairs:
|
|||||||
option: Side Nightlight
|
option: Side Nightlight
|
||||||
target:
|
target:
|
||||||
entity_id: input_select.master_bedroom_scenes
|
entity_id: input_select.master_bedroom_scenes
|
||||||
|
- service: script.activate_alexa_actionable_notification
|
||||||
|
data_template:
|
||||||
|
text: 'Would you like me to shut down your computer?'
|
||||||
|
event_id: 'actionable_notification_shutdown_computer'
|
||||||
|
alexa_device: 'media_player.basement_echo_dot'
|
||||||
mode: single
|
mode: single
|
||||||
icon: hue:room-stairs
|
icon: hue:room-stairs
|
||||||
basement_on:
|
basement_on:
|
||||||
|
Reference in New Issue
Block a user