Voice as a variable

This commit is contained in:
2022-06-30 14:00:02 -04:00
parent b0958fc908
commit f9bb75aa95

View File

@ -421,6 +421,8 @@ script:
###############################################################################
speech_engine:
variables:
voice: "{{ states('input_select.jarvis_voice') }}"
sequence:
- service: mqtt.publish
data_template:
@ -488,7 +490,7 @@ script:
who: '{{ who }}'
message: >
{{ message }}
voice: "{{ states('input_select.jarvis_voice') }}"
voice: '{{ voice }}'
- service: >-
{% if who in ['Everywhere','everywhere'] %}
{% set who = 'everywhere' %}