Skip to content

Commit 7643e22

Browse files
arretxfabaff
authored andcommitted
Display problem with script section... (home-assistant#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!
1 parent a06391b commit 7643e22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/_components/ifttt.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ automation:
9898
ifttt_notify:
9999
sequence:
100100
- service: ifttt.trigger
101-
data_template: {"event":"TestHA_Trigger", "value1":"{{ value1 }}", "value2":"{{ value2 }}", "value3":"{{ value3 }}"}
101+
data_template: {"event":"TestHA_Trigger", "value1":"{% raw %}{{ value1 }}{% endraw %}", "value2":"{% raw %}{{ value2 }}{% endraw %}", "value3":"{% raw %}{{ value3 }}{% endraw %}"}
102102
```
103103

104104
### {% linkable_title Sending events from IFTTT to Home Assistant %}

0 commit comments

Comments
 (0)