Issue with payload for Home assistant

I am trying to set the value of a input text sensor in HA from node red. The value that I want to set is /love. But when I inject /love payload into the HA node, the value of the text sensor changes to /love instead of /love. Why is it so? How can I solve it?

[{"id":"69d72301a4fbe3b3","type":"api-call-service","z":"8fac164d.889228","name":"Matrix Both","server":"d177950.2a5aa68","version":5,"debugenabled":false,"domain":"input_text","service":"set_value","areaId":[],"deviceId":[],"entityId":["input_text.matrix_both"],"data":"{\"value\":\"{{payload}}\"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":670,"y":880,"wires":[[]]},{"id":"25e452d98aca8f3a","type":"inject","z":"8fac164d.889228","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"/love","payloadType":"str","x":530,"y":880,"wires":[["69d72301a4fbe3b3"]]},{"id":"d177950.2a5aa68","type":"server","name":"Home Assistant","version":2,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30}]

image

Try using {{{payload}}}

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.