mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-08 18:48:44 +00:00
Implement speech partials
This commit is contained in:
@@ -1,10 +1,19 @@
|
||||
input_boolean:
|
||||
speech_notifications:
|
||||
name: Speech notifications
|
||||
initial: on
|
||||
icon: mdi:chat
|
||||
|
||||
script:
|
||||
talk_with_partials:
|
||||
alias: Speech - Talk with combined partials
|
||||
sequence:
|
||||
- service: script.talk
|
||||
data_template:
|
||||
message: >-
|
||||
{%- for partial in partials -%}
|
||||
{{ partial }}{{ " " }}
|
||||
{%- endfor -%}
|
||||
|
||||
talk:
|
||||
alias: Speech - Talk
|
||||
sequence:
|
||||
@@ -20,7 +29,8 @@ script:
|
||||
sequence:
|
||||
- service_template: >
|
||||
{% if is_state('media_player.master_bedroom', 'playing')
|
||||
or is_state('input_boolean.speech_notifications', 'off') %}
|
||||
or is_state('input_boolean.speech_notifications', 'off')
|
||||
or is_state('input_boolean.georgi_home', 'off') %}
|
||||
script.telegram_say
|
||||
{% else %}
|
||||
script.sonos_blast
|
||||
|
||||
Reference in New Issue
Block a user