# Issue with payload for Home assistant

**URL:** <https://discourse.nodered.org/t/issue-with-payload-for-home-assistant/60519>\
**Category:** General\
**Tags:** home-assistant\
**Created:** [30 March 2022 05:30 UTC](https://discourse.nodered.org/t/issue-with-payload-for-home-assistant/60519 "2022-03-30T05:30:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sheminasalam](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sheminasalam/32/8981_2.png) [@sheminasalam](https://discourse.nodered.org/u/sheminasalam)\
**Post date:** [30 March 2022 05:30 UTC](https://discourse.nodered.org/t/issue-with-payload-for-home-assistant/60519/1 "2022-03-30T05:30:46Z")

</div>

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 `&#x2F;love` instead of `/love`. Why is it so? How can I solve it?

```auto
[{"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](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/1/21e1260c93feb6aac81cd935e302410acf68791a.png)

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [30 March 2022 07:10 UTC](https://discourse.nodered.org/t/issue-with-payload-for-home-assistant/60519/2 "2022-03-30T07:10:10Z")

</div>

> **[Mustache Templates | node-red-contrib-home-assistant-websocket](https://zachowj.github.io/node-red-contrib-home-assistant-websocket/guide/mustache-templates.html)**
>
> Node-RED integration with Home Assistant through the WebSocket and HTTP API

Try using `{{{payload}}}`

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [13 April 2022 07:10 UTC](https://discourse.nodered.org/t/issue-with-payload-for-home-assistant/60519/3 "2022-04-13T07:10:38Z")

</div>

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