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

33 lines
787 B
YAML
Raw Normal View History

2018-01-02 00:00:45 +00:00
######################################################################
## Stuff that needs to happen at 08:30am.
######################################################################
- alias: 'Kids left for the day'
2018-01-02 00:00:45 +00:00
trigger:
- platform: time
at: '08:30:00'
condition:
- condition: state
entity_id: group.family
state: home
- condition: state
entity_id: input_boolean.guest_mode
state: 'off'
- condition: state
entity_id: input_boolean.school_mode
state: 'on'
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
- wait_template: >-
{{ is_state('group.garadget', 'open') }}
- delay: 00:03:00
2018-01-02 00:00:45 +00:00
- service: light.turn_off
entity_id: all