mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-05 08:44:24 +00:00
Upgrade speech - wait for SARAH to stop talking
This commit is contained in:
@@ -20,13 +20,10 @@ script:
|
||||
|
||||
# Wait a while for me to enter before welcoming.
|
||||
- delay: 00:00:02
|
||||
- service: script.coming_home_welcome_home
|
||||
|
||||
- service: script.coming_home_say_welcome
|
||||
- delay: 00:00:13
|
||||
- service: script.music_play
|
||||
|
||||
coming_home_say_welcome:
|
||||
alias: Routine - Coming home - Say welcome
|
||||
coming_home_welcome_home:
|
||||
alias: Routine - Coming home - Welcome home
|
||||
sequence:
|
||||
- service: script.say
|
||||
data_template:
|
||||
@@ -35,7 +32,10 @@ script:
|
||||
- !include ../../templates/partials/time.yaml
|
||||
- "Here's the current status:"
|
||||
- !include ../../templates/partials/window_check.yaml
|
||||
- delay: 00:00:10
|
||||
- wait_template: "{{ is_state('input_boolean.sarah_talking', 'off') }}"
|
||||
timeout: 00:02:00
|
||||
- delay: 00:00:01
|
||||
|
||||
- service: script.say
|
||||
data_template:
|
||||
message: >-
|
||||
@@ -47,3 +47,6 @@ script:
|
||||
"Here's some music."
|
||||
] | random
|
||||
}}
|
||||
- delay: 00:00:02
|
||||
|
||||
- service: script.music_play
|
||||
|
||||
@@ -4,12 +4,17 @@ script:
|
||||
sequence:
|
||||
- service: fan.turn_off
|
||||
entity_id: fan.philips_airpurifier
|
||||
|
||||
- service: script.routine_morning_briefing
|
||||
- delay: 00:00:35
|
||||
- wait_template: "{{ is_state('input_boolean.sarah_talking', 'off') }}"
|
||||
timeout: 00:02:00
|
||||
- delay: 00:00:01
|
||||
|
||||
- service: script.say
|
||||
data:
|
||||
message: "Here's some music to start the day!"
|
||||
- delay: 00:00:02
|
||||
|
||||
- service: script.music_play
|
||||
|
||||
routine_morning_briefing:
|
||||
@@ -21,6 +26,7 @@ script:
|
||||
- !include ../../templates/partials/greeting.yaml
|
||||
- !include ../../templates/partials/time.yaml
|
||||
- >-
|
||||
|
||||
{{
|
||||
[
|
||||
"Here's your briefing for today!",
|
||||
|
||||
Reference in New Issue
Block a user