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
+12 -2
View File
@@ -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