Implement speech partials

This commit is contained in:
2020-03-08 01:17:40 +02:00
parent 974f05b1b5
commit 1ecfc9166e
16 changed files with 170 additions and 150 deletions
-11
View File
@@ -1,11 +0,0 @@
script:
routine_briefing:
alias: Routine - Briefing
sequence:
- service: media_player.volume_set
entity_id: media_player.master_bedroom
data:
volume_level: 0.3
- service: script.talk
data_template:
message: !include ../../templates/briefing.yaml
+18 -8
View File
@@ -9,14 +9,14 @@ script:
alias: Routine - Coming home
sequence:
- service: script.security_camera_off
- service: script.coming_home_say_welcome
- service: light.turn_on
entity_id: light.living_room_all_lights
- service: input_boolean.turn_on
entity_id: input_boolean.speech_notifications
- condition: state
entity_id: input_boolean.routine_welcome_home
state: "on"
- delay: "00:00:01"
- service: script.coming_home_say_welcome
- delay: "00:00:15"
- service: media_player.shuffle_set
entity_id: media_player.master_bedroom
data:
@@ -37,9 +37,19 @@ script:
coming_home_say_welcome:
alias: Routine - Coming home - Say welcome
sequence:
- condition: state
entity_id: input_boolean.routine_welcome_home
state: "on"
- service: script.sonos_blast
- service: media_player.volume_set
entity_id: media_player.master_bedroom
data:
message: "Welcome home, George!"
volume_level: 0.5
- service: script.talk_with_partials
data_template:
partials:
- !include ../../templates/partials/greeting.yaml
- !include ../../templates/partials/window_check.yaml
- >-
{{
[
"I'll play some music.",
"Here's some music."
] | random
}}
-2
View File
@@ -15,5 +15,3 @@ script:
entity_id:
- light.living_room_all_lights
- light.bedside_light
- service: input_boolean.turn_off
entity_id: input_boolean.speech_notifications
+28 -1
View File
@@ -2,7 +2,7 @@ script:
routine_waking_up:
alias: Routine - Waking up
sequence:
- service: script.routine_briefing
- service: script.routine_morning_briefing
- delay: "00:00:25"
- service: script.talk
data:
@@ -14,3 +14,30 @@ script:
source: "Evening Chill"
- service: fan.turn_off
entity_id: fan.philips_airpurifier
routine_morning_briefing:
alias: Routine - Morning Briefing
sequence:
- service: media_player.volume_set
entity_id: media_player.master_bedroom
data:
volume_level: 0.3
- service: script.talk_with_partials
data_template:
partials:
- !include ../../templates/partials/greeting.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