71 lines
1.8 KiB
YAML
71 lines
1.8 KiB
YAML
######################################################################
|
|
## Weekday Morning Routines for the Wife and Kiddos.
|
|
######################################################################
|
|
|
|
- alias: 'Godmorgen start igen'
|
|
trigger:
|
|
platform: sun
|
|
event: sunset
|
|
action:
|
|
- service: input_boolean.turn_off
|
|
data:
|
|
entity_id: input_boolean.first_run
|
|
|
|
- alias: 'Godmorgen'
|
|
trigger:
|
|
platform: state
|
|
entity_id: binary_sensor.stue_motion_sensor
|
|
to: 'on'
|
|
condition:
|
|
- condition: time
|
|
after: '06:00:00'
|
|
before: '10:00:00'
|
|
- condition: state
|
|
entity_id: input_boolean.first_run
|
|
state: 'off'
|
|
action:
|
|
- service: scene.turn_on
|
|
entity_id: scene.morgen
|
|
- service: input_boolean.turn_on
|
|
data:
|
|
entity_id: input_boolean.first_run
|
|
- service: script.monthly_color_scene
|
|
|
|
- alias: 'Godmorgen Children arbejdsdag'
|
|
trigger:
|
|
platform: time
|
|
at: '06:00:00'
|
|
condition:
|
|
- condition: state
|
|
entity_id: binary_sensor.arbejdsdag
|
|
state: 'on'
|
|
action:
|
|
- service: script.andreas_color_scene
|
|
- service: script.daniel_color_scene
|
|
|
|
- alias: 'Godmorgen Children ikke arbejdsdag'
|
|
trigger:
|
|
platform: time
|
|
at: '08:00:00'
|
|
condition:
|
|
- condition: state
|
|
entity_id: binary_sensor.arbejdsdag
|
|
state: 'off'
|
|
action:
|
|
- service: script.andreas_color_scene
|
|
- service: script.daniel_color_scene
|
|
|
|
- alias: 'Sluk lys stue'
|
|
trigger:
|
|
platform: numeric_state
|
|
entity_id: sensor.forgang_sensor_illuminance
|
|
above: 90
|
|
for:
|
|
minutes: 3
|
|
# platform: sun
|
|
# event: sunrise
|
|
action:
|
|
- service: light.turn_off
|
|
data:
|
|
entity_id: light.livingroom
|