Move config out of subfolder

This commit is contained in:
Georgi Gardev
2022-12-01 16:01:59 +02:00
parent addfa33f6f
commit 1ae0c6d0b8
221 changed files with 0 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
script:
routine_bedroom_bedtime:
alias: Routine · Bedroom · Bedtime
sequence:
- service: media_player.unjoin
entity_id:
- media_player.living_room
- media_player.kitchen
- media_player.bathroom
# - service: script.say_discretely
# data:
# message: "Entering bed time."
# Set master bedroom state
- service: fan.turn_on
entity_id: fan.philips_airpurifier
- service: input_select.select_option
entity_id: input_select.purifier_preset_mode
data:
option: "sleep"
- service: light.turn_on
entity_id:
- light.bedside
- service: light.turn_off
entity_id: light.master_bedroom_main
- service: media_player.volume_set
entity_id: media_player.master_bedroom
data:
volume_level: 0.15
+138
View File
@@ -0,0 +1,138 @@
input_boolean:
routine_welcome_home:
name: Coming home · Say welcome
initial: on
icon: mdi:account-plus-outline
coming_home_play_music:
name: Coming home · Play music
icon: mdi:music-box-outline
script:
routine_coming_home:
alias: Routine · Coming home
sequence:
- service: input_select.select_option
entity_id: input_select.hallway_dashboard_mode
data:
option: "Coming Home"
# Lights
- service: light.turn_on
entity_id:
- light.hallway_entrance
- light.hallway_main
- light.browser_kitchen
- light.browser_hallway
- light.living_room_ambient
- light.bedside
data:
brightness_pct: 100
- service: script.routine_coming_home_during_daytime
- service: script.routine_coming_home_after_sunset
- service: script.toshiba_ac_on_cool_if_hot
- service: script.sonos_join_bedroom
- service: script.shield_screensaver
- service: script.routine_coming_home_welcome_home
- service: script.turn_on_all_radiators
# Cameras
- service: switch.turn_off
entity_id: switch.tapo_bedroom
- service: switch.turn_on
entity_id: switch.mercury_home_mode
routine_coming_home_during_daytime:
alias: Routine · Coming home · During daytime
sequence:
- and:
- condition: sun
after: sunrise
- condition: sun
before: sunset
- service: script.open_living_room_cover
routine_coming_home_after_sunset:
alias: Routine · Coming home · After sunset
sequence:
- or:
- condition: sun
after: sunset
after_offset: "-01:00:00"
- condition: sun
before: sunrise
- service: light.turn_on
entity_id: light.on_after_dark
data:
brightness_pct: 100
routine_coming_home_welcome_home:
alias: Routine · Coming home · Welcome home
sequence:
- condition: state
entity_id: input_boolean.routine_welcome_home
state: "on"
- service: script.say
data_template:
partials:
- !include ../../templates/partials/greeting.yaml
- !include ../../templates/partials/time.yaml
# - "Here's the current status:" // TODO: figure out if there will be anything to say?
- !include ../../templates/partials/window_suggestions.yaml
- wait_template: "{{ is_state('input_boolean.sarah_talking', 'off') }}"
timeout: 00:02:00
- delay: 00:00:01
- and:
- condition: time
before: "23:00:00"
- condition: time
after: "09:00:00"
- condition: state
entity_id: input_boolean.coming_home_play_music
state: "on"
- service: script.say
data_template:
message: >-
{{
[
"I'll put some music on.",
"I'll play some music.",
"Here's some music."
] | random
}}
- delay: 00:00:02
- service: script.music_play
automation:
- alias: Routine · Coming home · Left work
trigger:
platform: event
event_type: telegram_callback
event_data:
command: "/leaving_work_to_home"
action:
- service: telegram_bot.edit_replymarkup
data_template:
message_id: "last"
chat_id: "{{ trigger.event.data.chat_id }}"
inline_keyboard:
- service: notify.telegram
data_template:
title: "🏠 *Presence Module · Leaving Work*"
message: >-
{{
[
"Okay, I'll be expecting you!",
"Awesome! I'm prepping for your arrival",
"Cool, I'll be ready!"
] | random
}}
- service: script.turn_on_all_radiators
- service: script.toshiba_ac_on_cool_if_hot
+52
View File
@@ -0,0 +1,52 @@
script:
bedroom_good_night:
alias: Routine · Bedroom · Going to sleep
sequence:
- service: media_player.unjoin
entity_id: media_player.master_bedroom
- service: media_player.media_stop
entity_id: media_player.master_bedroom
# Use say_discretely instead of talk, because night mode is already on.
# - service: script.say_discretely
# data:
# message: "Entering night mode. Good night!"
- service: fan.turn_on
entity_id: fan.philips_airpurifier
- service: input_select.select_option
entity_id: input_select.purifier_preset_mode
data:
option: "sleep"
- service: light.turn_off
entity_id: light.master_bedroom
routine_good_night:
alias: Routine · Going to sleep
sequence:
- service: media_player.media_stop
entity_id:
- media_player.master_bedroom
- media_player.bathroom
- media_player.kitchen
- media_player.living_room
# Turn off everything else
- service: homeassistant.turn_off
entity_id:
- light.living_room
- light.master_bedroom
- light.kitchen_main
- light.kitchen_secondary
- light.hallway_main
- light.hallway_entrance
- light.tradfri_large
- media_player.nvidia_shield
- media_player.living_room_tv
- switch.cadmium
- group.all_radiators
- service: script.browsers_low
- service: cover.close_cover
entity_id: cover.living_room
+40
View File
@@ -0,0 +1,40 @@
script:
routine_leaving_home:
alias: Routine · Leaving home
sequence:
- service: homeassistant.turn_off
entity_id:
- media_player.nvidia_shield
- media_player.living_room_tv
- light.all
- climate.toshiba_ac
- group.all_radiators
- fan.philips_airpurifier
- service: media_player.media_stop
entity_id:
- media_player.master_bedroom
- media_player.bathroom
- media_player.kitchen
- media_player.living_room
- service: script.browsers_low
- service: input_select.select_option
entity_id: input_select.hallway_dashboard_mode
data:
option: "Coming Home"
- service: cover.close_cover
entity_id: cover.living_room
- service: notify.telegram
data:
title: "🏠 *Presence Module · Leaving Home*"
message: "I see no one is home. Entering away mode."
- service: switch.turn_on
entity_id: switch.tapo_bedroom
- service: switch.turn_off
entity_id: switch.mercury_home_mode
+94
View File
@@ -0,0 +1,94 @@
input_text:
wake_up_spotify_playlist:
name: Waking up Spotify playlist
icon: mdi:spotify
input_number:
wake_up_volume:
name: Waking up volume
min: 0
max: 1
step: 0.05
icon: mdi:volume-high
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_prepare
data_template:
volume_level: "{{ states('input_number.wake_up_volume') | float }}"
shuffle: true
- service: media_player.play_media
target:
entity_id: media_player.master_bedroom
data_template:
media_content_type: "music"
media_content_id: "{{ states('input_text.wake_up_spotify_playlist') }}"
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.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