Files
sarah/config/packages/routines/waking_up.yaml
T
2022-06-02 08:47:12 +03:00

77 lines
2.5 KiB
YAML

script:
routine_waking_up:
alias: Routine · Waking up
sequence:
- service: light.turn_on
entity_id: light.hallway
data:
brightness_pct: 100
- service: light.turn_on
entity_id:
- light.living_room_ambient
- service: script.open_living_room_cover
- service: script.shield_screensaver
# Only when no guests are present
- and:
- condition: state
entity_id: input_boolean.guest_mode
state: "off"
- condition: state
entity_id: input_boolean.guest_bedroom
state: "off"
- wait_template: "{{ is_state('input_boolean.sarah_talking', 'off') }}"
timeout: 00:02:00
# - delay: 00:00:00
# - service: script.say
# data:
# message: "Here's some music to start the day!"
# - delay: 00:00:02
- service: script.music_play
data:
volume_level: 0.1
shuffle: true
routine_bedroom_morning:
alias: Routine · Bedroom · Morning
sequence:
- service: fan.turn_off
entity_id: fan.philips_airpurifier
- service: media_player.media_stop
entity_id: media_player.master_bedroom
- delay: 00:00:01
- service: light.turn_on
entity_id:
- light.bed_led
- light.bedside
- service: script.routine_morning_briefing
routine_morning_briefing:
alias: Routine · Morning Briefing
sequence:
- service: script.chat
data_template:
partials:
- !include ../../templates/partials/greeting.yaml
- !include ../../templates/partials/time.yaml
- !include ../../templates/partials/tasks.yaml
- >-
{{
[
"Here's your briefing for today!",
"Here's what's up!",
"Here are the updates today!"
] | random
}}
- !include ../../templates/partials/master_bedroom_climate.yaml
- !include ../../templates/partials/outside_forecast.yaml
# FIXME: there are more light entities than lights. This count doesn't work
# - !include ../../templates/partials/light_check.yaml
- !include ../../templates/partials/window_check.yaml
- !include ../../templates/partials/window_suggestions.yaml
- !include ../../templates/partials/iss.yaml
- !include ../../templates/partials/moon.yaml