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
+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
}}