From 8496e1f57203ea3b3ff8695d1944563f7e9ecf3a Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Sat, 12 Dec 2020 20:56:24 -0500 Subject: [PATCH] Using striptags to clean up test being saved to mqtt --- config/packages/notify.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/packages/notify.yaml b/config/packages/notify.yaml index ff92ebf..089d0c5 100755 --- a/config/packages/notify.yaml +++ b/config/packages/notify.yaml @@ -262,7 +262,7 @@ script: - service: mqtt.publish data_template: topic: 'house/polly/lastmsg' - payload: 'This message is from {{ now().strftime("%-I") }}:{{ now().strftime("%M") }} {{ now().strftime("%p") }}. {{ message | truncate(220)}}' + payload: 'This message is from {{ now().strftime("%-I") }}:{{ now().strftime("%M") }} {{ now().strftime("%p") }}. {{ message | striptags | truncate(220)}}' retain: true - service: media_player.turn_on data_template: @@ -373,7 +373,7 @@ script: - service: mqtt.publish data_template: topic: 'house/polly/lastmsg' - payload: 'This message is from {{ now().strftime("%-I") }}:{{ now().strftime("%M") }} {{ now().strftime("%p") }}. {{ message | truncate(220)}}' + payload: 'This message is from {{ now().strftime("%-I") }}:{{ now().strftime("%M") }} {{ now().strftime("%p") }}. {{ message | striptags | truncate(220)}}' retain: true - service: mqtt.publish data_template: @@ -398,14 +398,14 @@ script: {% set who = 'livingroom_echo' %} script.alexa_voice {% else %} - script.speech_engine + script.jarvis_voice {% endif %} {% else %} {% if who == 'main' and is_state('media_player.ha_speaker','playing') %} {% set who = 'livingroom_echo' %} script.alexa_voice {% else %} - script.speech_engine + script.jarvis_voice {% endif %} {% endif %} data: