# Help with dashboard text node

**URL:** https://discourse.nodered.org/t/help-with-dashboard-text-node/59818
**Category:** Dashboard
**Tags:** mqtt
**Created:** [13 March 2022 23:35 UTC](https://discourse.nodered.org/t/help-with-dashboard-text-node/59818 "2022-03-13T23:35:20Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Plink](https://avatars.discourse-cdn.com/v4/letter/p/c6cbf5/32.png) [@Plink](https://discourse.nodered.org/u/Plink)
#### Post date: [13 March 2022 23:35 UTC](https://discourse.nodered.org/t/help-with-dashboard-text-node/59818/1 "2022-03-13T23:35:20Z")

</div>

I am trying a simple dashboard item. a switch node feeds a MQTT out node that controls a smart switch. The smart switch sends an MQTT back with the status like this.

```auto
stat/tasmota_F21D23/RESULT : msg.payload : string[14]
"{"POWER":"ON"}"

```

This I feed to a JASON node to get this.

```auto
tstat/tasmota_F21D23/RESULT : msg.payload : Object
{ POWER: "ON" }

```

Now I want to display the word ON next to the switch on the dashboard but I can't get a text node to display just the value "ON" and not the whole payload. Help with how the formating works would be appreciated.

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [13 March 2022 23:46 UTC](https://discourse.nodered.org/t/help-with-dashboard-text-node/59818/2 "2022-03-13T23:46:56Z")

</div>

User the copy path button on the debug the paste it into the field & surround it with 2 curly brackets.

something like `{{payload.POWER}}` or `{{msg.payload.POWER}}`

Alternatively, use a change node to move msg.payload.POWER into msg.payload.

* * *

Canned text...

There’s a great page in the docs ([Working with messages : Node-RED](https://nodered.org/docs/user-guide/messages)) that will explain how to use the debug panel to find the right path to any data item.

Pay particular attention to the part about the buttons that appear under your mouse pointer when you over hover a debug message property in the sidebar.

![BX00Cy7yHi](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/d/bd1f333a9e043b061b39917c328b0094d3e52d30.gif)

---

<div class="post-metadata">

### Author: ![Plink](https://avatars.discourse-cdn.com/v4/letter/p/c6cbf5/32.png) [@Plink](https://discourse.nodered.org/u/Plink)
#### Post date: [14 March 2022 00:45 UTC](https://discourse.nodered.org/t/help-with-dashboard-text-node/59818/3 "2022-03-14T00:45:51Z")

</div>

Thank you for the pointer to the docs. I need to do some studying.  
I got this to work with the following in the text node.  
{{payload.POWER}} I think my lack of knowledge of HTML and Javascript  
make understanding this difficult.

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [14 March 2022 09:38 UTC](https://discourse.nodered.org/t/help-with-dashboard-text-node/59818/4 "2022-03-14T09:38:37Z")

</div>

> [@Plink](#):
>
> I need to do some studying

I recommend watching this playlist: [Node-RED Essentials](https://www.youtube.com/playlist?list=PLyNBB9VCLmo1hyO-4fIZ08gqFcXBkHy-6). The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.

---

<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 09:39 UTC](https://discourse.nodered.org/t/help-with-dashboard-text-node/59818/5 "2022-04-13T09:39:34Z")

</div>

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