mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-20 12:10:28 +00:00
Massive Migration! #292
This commit is contained in:
43
automation/Timed_Triggers/night_watchdog.yaml
Executable file
43
automation/Timed_Triggers/night_watchdog.yaml
Executable file
@@ -0,0 +1,43 @@
|
||||
######################################################################
|
||||
## Stuff that needs to happen after 10pm.
|
||||
######################################################################
|
||||
|
||||
- alias: Automated NIGHT WatchDog!
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: switch.living_room_amp
|
||||
to: 'on'
|
||||
for: '00:10:00'
|
||||
- platform: state
|
||||
entity_id: media_player.livingroomCC
|
||||
to: 'off'
|
||||
for: '00:02:00'
|
||||
- platform: state
|
||||
entity_id: media_player.whole_house
|
||||
to: 'off'
|
||||
for: '00:02:00'
|
||||
|
||||
condition:
|
||||
condition: or
|
||||
conditions:
|
||||
- condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: group.family
|
||||
state: 'not_home'
|
||||
- condition: state
|
||||
entity_id: input_boolean.guest_mode
|
||||
state: 'off'
|
||||
- condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.guest_mode
|
||||
state: 'off'
|
||||
- condition: state
|
||||
entity_id: group.bed
|
||||
state: 'on'
|
||||
|
||||
action:
|
||||
- service: switch.turn_off
|
||||
data_template:
|
||||
entity_id: "{{ trigger.entity_id }}"
|
Reference in New Issue
Block a user