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!
This commit is contained in:
Jon Griffith 2017-11-28 12:33:54 -07:00 committed by Fabian Affolter
parent a06391b3ed
commit 7643e2261e

View File

@ -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 %}