Home-AssistantConfig/config/automation/good_morning.yaml

45 lines
1.1 KiB
YAML
Executable File

######################################################################
## Weekday Morning Routines for the Wife and Kiddos.
######################################################################
- alias: 'Good Morning Routine'
id: 1432bac8-311b-4618-8f8f-19dd848791b6
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'
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'
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
- service: light.turn_on
entity_id:
- light.s1
- light.s4
- service: switch.turn_on
entity_id: group.kitchen_accents
- service: input_boolean.turn_off
entity_id: input_boolean.good_morning