Move config to a subfolder

This commit is contained in:
2020-03-20 02:08:56 +02:00
parent badd728c82
commit 69bf7ac509
54 changed files with 5 additions and 89 deletions
-42
View File
@@ -1,42 +0,0 @@
script:
routine_bedtime:
alias: Routine · Bedtime
sequence:
# Set master bedroom state
- service: light.turn_on
entity_id: light.bedside_light
- service: fan.turn_on
entity_id: fan.philips_airpurifier
- service: sonos.unjoin
entity_id:
- media_player.living_room
- media_player.kitchen
- media_player.bathroom
- service: media_player.volume_set
entity_id: media_player.master_bedroom
data:
volume_level: 0.15
# Turn off everything else
- service: media_player.media_stop
entity_id:
- media_player.living_room
- media_player.kitchen
- media_player.bathroom
- service: media_player.turn_off
entity_id:
- media_player.nvidia_shield
- media_player.living_room_tv
- service: light.turn_off
entity_id: light.living_room_all_lights
automation:
- alias: Routine · Bedtime · Toggle on bedside switch hold
trigger:
- platform: event
event_type: zha_event
event_data:
device_ieee: !secret master_bedroom_bedside_switch_ieee
command: hold
action:
- service: script.routine_bedtime
-77
View File
@@ -1,77 +0,0 @@
input_boolean:
routine_welcome_home:
name: Coming home · Say welcome
initial: on
icon: mdi:account-plus-outline
script:
routine_coming_home:
alias: Routine · Coming home
sequence:
# Enter home mode.
- service: script.security_camera_off
- service: light.turn_on
entity_id: light.living_room_all_lights
- service: script.music_join_sonoses
# Check if welcome home is enabled, proceed with welcome routine.
- condition: state
entity_id: input_boolean.routine_welcome_home
state: "on"
- service: script.coming_home_welcome_home
coming_home_welcome_home:
alias: Routine · Coming home · Welcome home
sequence:
- 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
- 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
}}
-22
View File
@@ -1,22 +0,0 @@
script:
routine_good_night:
alias: Routine · Going to sleep
sequence:
- service: fan.turn_on
entity_id: fan.philips_airpurifier
- service: media_player.media_stop
entity_id: group.all_sonos
- service: light.turn_off
entity_id: light.all_lights
- service: media_player.turn_off
entity_id:
- media_player.nvidia_shield
- media_player.living_room_tv
# Use say_discretely instead of talk, because sleep_mode is already on.
- service: script.say_discretely
data:
message: "Entering sleep mode. Good night!"
# Prepare for the next day.
- delay: 00:00:05
- service: script.music_join_sonoses
-16
View File
@@ -1,16 +0,0 @@
script:
routine_leaving_home:
alias: Routine · Leaving home
sequence:
- service: input_boolean.turn_off
entity_id: input_boolean.georgi_home
- service: script.security_camera_on
- service: media_player.turn_off
entity_id:
- media_player.nvidia_shield
- media_player.living_room_tv
- service: media_player.media_stop
data_template:
entity_id: "{{ states('input_select.sonos_leader') }}"
- service: light.turn_off
entity_id: light.all_lights
-46
View File
@@ -1,46 +0,0 @@
script:
routine_waking_up:
alias: Routine · Waking up
sequence:
- service: fan.turn_off
entity_id: fan.philips_airpurifier
- service: script.routine_morning_briefing
- wait_template: "{{ is_state('input_boolean.sarah_talking', 'off') }}"
timeout: 00:02:00
- delay: 00:00:01
- condition: state
entity_id: input_boolean.guest_mode
state: "off"
- service: script.say
data:
message: "Here's some music to start the day!"
- delay: 00:00:02
- service: script.music_play
routine_morning_briefing:
alias: Routine · Morning Briefing
sequence:
- service: script.say
data_template:
partials:
- !include ../../templates/partials/greeting.yaml
- !include ../../templates/partials/time.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
- !include ../../templates/partials/light_check.yaml
- !include ../../templates/partials/window_check.yaml
- !include ../../templates/partials/iss.yaml
- !include ../../templates/partials/moon.yaml
- !include ../../templates/partials/inspirational_quote.yaml