From 7643e2261e59543bc499ddb37ce3f1b9459fbef5 Mon Sep 17 00:00:00 2001 From: Jon Griffith <32052562+arretx@users.noreply.github.com> Date: Tue, 28 Nov 2017 12:33:54 -0700 Subject: [PATCH] Display problem with script section... (#4087) I banged my head against the table for hours trying to make the script work on this page and then I figured out something. When viewing the page on the HA site, the variable tags {{value1}}, etc...do not display. I only see two quotes. This is what I was seeing. ```{"event":"TestHA_Trigger", "value1":"", "value2":"", "value3":""}``` And I should be seeing this: ```{"event":"TestHA_Trigger", "value1":"{{value1}}", "value2":"{{value2}}", "value3":"{{value3}}"} Above this section in the automation, there's a tag called { % raw % } which I'm unfamiliar with, but I made a guess that this needs to be inserted. I may have been wrong. If so, I hope I've identified a valid problem. Thanks! --- source/_components/ifttt.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_components/ifttt.markdown b/source/_components/ifttt.markdown index fc330b5f799..f61b64c1bc1 100644 --- a/source/_components/ifttt.markdown +++ b/source/_components/ifttt.markdown @@ -98,7 +98,7 @@ automation: ifttt_notify: sequence: - service: ifttt.trigger - data_template: {"event":"TestHA_Trigger", "value1":"{{ value1 }}", "value2":"{{ value2 }}", "value3":"{{ value3 }}"} + data_template: {"event":"TestHA_Trigger", "value1":"{% raw %}{{ value1 }}{% endraw %}", "value2":"{% raw %}{{ value2 }}{% endraw %}", "value3":"{% raw %}{{ value3 }}{% endraw %}"} ``` ### {% linkable_title Sending events from IFTTT to Home Assistant %}