mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-05 08:44:24 +00:00
Implement speech partials
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
}}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user