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

44 lines
1.0 KiB
YAML
Raw Normal View History

2018-01-02 00:00:45 +00:00
######################################################################
## Stuff that needs to happen at 08:30am.
######################################################################
- alias: 'Kids 700'
2020-07-20 18:33:03 +00:00
id: 3e0c4f40-0d55-42a0-9af9-37124b1b9b8b
mode: single
2018-01-02 00:00:45 +00:00
trigger:
- platform: time
at: '08:30:00'
2018-01-02 00:00:45 +00: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: homeassistant.turn_on
2018-01-02 00:00:45 +00:00
entity_id:
- light.d1
- light.d2
- switch.office_lamp_switch_socket
2018-01-02 00:00:45 +00:00
- service: light.turn_off
entity_id:
- light.dining_room_lights
2018-01-02 00:00:45 +00:00
- wait_template: >-
{{ states.sun.sun.state == 'above_horizon' }}
- service: homeassistant.turn_off
entity_id:
- group.kitchen_accents
- service: light.turn_off
entity_id: all