Home-AssistantConfig/config/automation/good_morning.yaml

45 lines
1.1 KiB
YAML
Raw Normal View History

2018-01-02 00:00:45 +00:00
######################################################################
## Weekday Morning Routines for the Wife and Kiddos.
######################################################################
- alias: 'Good Morning Routine'
2020-07-20 18:33:03 +00:00
id: 1432bac8-311b-4618-8f8f-19dd848791b6
2018-01-02 00:00:45 +00:00
trigger:
- platform: state
entity_id: input_boolean.good_morning
to: 'on'
from: 'off'
- platform: state
entity_id:
- binary_sensor.sleepnumber_carlo_stacey_is_in_bed
to: 'off'
for: '00:05: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
after: '05:30:00'
before: '08:00:00'
2018-01-02 00:00:45 +00:00
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
- service: light.turn_on
entity_id:
- light.s1
- light.s4
- service: switch.turn_on
2019-08-17 19:18:36 +00:00
entity_id: group.kitchen_accents
2018-01-02 00:00:45 +00:00
- service: input_boolean.turn_off
entity_id: input_boolean.good_morning