From f9bb75aa953660dee645b50277cebb391fe87f41 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Thu, 30 Jun 2022 14:00:02 -0400 Subject: [PATCH] Voice as a variable --- packages/notify.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/notify.yaml b/packages/notify.yaml index adf8055..9a9af06 100644 --- a/packages/notify.yaml +++ b/packages/notify.yaml @@ -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' %}