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

39 lines
868 B
YAML
Raw Normal View History

2018-01-02 00:00:45 +00:00
######################################################################
## Stuff that needs to happen at 08:30am.
######################################################################
- alias: 'Kids 650'
2018-01-02 00:00:45 +00:00
trigger:
- platform: time
at: '06:50:00'
condition:
- condition: state
entity_id: group.family
state: home
- condition: state
entity_id: input_boolean.school_mode
state: 'on'
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
- service: light.turn_on
entity_id:
- light.d1
- light.d2
- service: light.turn_off
entity_id:
- group.dining_room_lights
- wait_template: >-
{{ states.sun.sun.state == 'above_horizon' }}
- service: homeassistant.turn_off
entity_id:
- light.fridge