mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-09-13 23:36:42 +00:00
You can find the entire repo here.
This commit is contained in:
25
config/automation/Timed_Triggers/2200.yaml
Executable file
25
config/automation/Timed_Triggers/2200.yaml
Executable file
@@ -0,0 +1,25 @@
|
||||
######################################################################
|
||||
## Stuff that needs to happen at 10pm.
|
||||
######################################################################
|
||||
|
||||
- alias: 'Shut down AMP in Living room'
|
||||
trigger:
|
||||
- platform: time
|
||||
at: '22:00:00'
|
||||
|
||||
action:
|
||||
- wait_template: >-
|
||||
{{ not is_state('media_player.livingroomCC', 'playing') }}
|
||||
- wait_template: >-
|
||||
{{ not is_state('media_player.whole_house', 'playing') }}
|
||||
|
||||
- service: script.speech_engine
|
||||
data_template:
|
||||
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.living_room_amp
|
Reference in New Issue
Block a user