Home-AssistantConfig/automation/good_morning.yaml

46 lines
1.1 KiB
YAML
Raw Normal View History

######################################################################
## Weekday Morning Routines for the Wife and Kiddos.
######################################################################
- alias: 'Good Morning Routine'
trigger:
2017-02-19 07:01:45 +00:00
- platform: state
entity_id: input_boolean.good_morning
state: 'on'
from: 'off'
- platform: state
entity_id:
2017-02-19 07:01:45 +00:00
- binary_sensor.sleepnumber_carlo_stacey_is_in_bed
state: 'off'
condition:
- condition: state
entity_id: group.family
2017-02-19 07:01:45 +00:00
state: home
- condition: state
entity_id: input_boolean.school_mode
state: 'on'
2017-02-19 07:01:45 +00:00
- condition: time
after: '06:00:00'
2017-03-03 20:10:56 +00:00
before: '10:00:00'
2017-02-19 07:01:45 +00:00
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
2017-02-19 07:01:45 +00:00
action:
- service: light.turn_on
2017-02-19 07:01:45 +00:00
entity_id:
- light.s1
- light.s4
- service: switch.turn_on
entity_id: switch.kitchen_accents
- delay: 00:01:00
- service: switch.turn_on
entity_id: switch.kitchen_accents
- service: input_boolean.turn_off
entity_id: input_boolean.good_morning