Home-AssistantConfig/config/automation/Timed_Triggers/2200.yaml

32 lines
1.0 KiB
YAML
Executable File

######################################################################
## Automation for 10:00 PM tasks
##
## This automation handles various actions that need to occur at 10 PM.
## For more information, visit: https://www.vcloudinfo.com/click-here
######################################################################
- alias: 'Shut down AMP in Living room'
id: 3b41321c-8242-4cf5-9a93-b2b7aeeb8ea0
trigger:
- platform: time
at: '22:00:00'
action:
- wait_template: >-
{{ not is_state('input_boolean.guest_mode', 'on') or is_state('group.bed', 'on') }}
- wait_template: >-
{{ not is_state('media_player.livingroomCC', 'playing') }}
- wait_template: >-
{{ not is_state('media_player.whole_house', 'playing') }}
- service: script.speech_engine
data:
call_no_announcement: 1
call_garage_check: 1
call_window_check: 1
- wait_template: >-
{{ not is_state('media_player.livingroomCC', 'playing') }}
- service: switch.turn_off
entity_id: switch.lr_amp