Hey,
I’d like to create a flow where the template is defined by a node and later parsed by “get template”.
I’ve created a flow that doesn’t work correctly, the {{payload}}
is not replaced as I’d like. Any ideas how can this be solved?
[{"id":"a015a60b.86345","type":"inject","z":"3b4ed2a4.b47fee","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"hello there","payloadType":"str","x":190,"y":680,"wires":[["5c0868f8.60f27"]]},{"id":"8d9e511c.a0bd5","type":"debug","z":"3b4ed2a4.b47fee","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":670,"y":680,"wires":[]},{"id":"5c0868f8.60f27","type":"change","z":"3b4ed2a4.b47fee","name":"","rules":[{"t":"set","p":"template","pt":"msg","to":"Kenobi: {{payload}}!","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":410,"y":680,"wires":[["ea1a36db.e478a8"]]},{"id":"ea1a36db.e478a8","type":"api-render-template","z":"3b4ed2a4.b47fee","name":"","server":"2b96683c.936a98","template":"","resultsLocation":"payload","resultsLocationType":"msg","templateLocation":"template","templateLocationType":"msg","x":470,"y":760,"wires":[["8d9e511c.a0bd5"]]},{"id":"2b96683c.936a98","type":"server","name":"Home Assistant","addon":true}]
Thank you!