Voice as a variable
This commit is contained in:
@ -421,6 +421,8 @@ script:
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
speech_engine:
|
speech_engine:
|
||||||
|
variables:
|
||||||
|
voice: "{{ states('input_select.jarvis_voice') }}"
|
||||||
sequence:
|
sequence:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
data_template:
|
data_template:
|
||||||
@ -488,7 +490,7 @@ script:
|
|||||||
who: '{{ who }}'
|
who: '{{ who }}'
|
||||||
message: >
|
message: >
|
||||||
{{ message }}
|
{{ message }}
|
||||||
voice: "{{ states('input_select.jarvis_voice') }}"
|
voice: '{{ voice }}'
|
||||||
- service: >-
|
- service: >-
|
||||||
{% if who in ['Everywhere','everywhere'] %}
|
{% if who in ['Everywhere','everywhere'] %}
|
||||||
{% set who = 'everywhere' %}
|
{% set who = 'everywhere' %}
|
||||||
|
Reference in New Issue
Block a user