# Variable for Name Node LED

**URL:** https://discourse.nodered.org/t/variable-for-name-node-led/87385
**Category:** Dashboard
**Tags:** node-red-dashboard
**Created:** [21 April 2024 11:57 UTC](https://discourse.nodered.org/t/variable-for-name-node-led/87385 "2024-04-21T11:57:37Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![edstobi](https://avatars.discourse-cdn.com/v4/letter/e/aca169/32.png) [@edstobi](https://discourse.nodered.org/u/edstobi)
#### Post date: [21 April 2024 11:57 UTC](https://discourse.nodered.org/t/variable-for-name-node-led/87385/1 "2024-04-21T11:57:37Z")

</div>

Hi  
I am trying to set a variable to the Name of my dashboard led node with Name {{label}}.  
I alsow tryed {{msg.label}},but it is always empty. is ther no possibility to set a variable name?

```auto
[
    {
        "id": "a61334fb86fdbd70",
        "type": "mqtt in",
        "z": "a401e22c6c2778f7",
        "g": "f15b9f63e407451c",
        "name": "Temp F200A",
        "topic": "N/123456789/temperature/25/Temperature",
        "qos": "1",
        "datatype": "auto-detect",
        "broker": "f193dd3cb4443e8b",
        "nl": false,
        "rap": true,
        "rh": 0,
        "inputs": 0,
        "x": 310,
        "y": 800,
        "wires": [
            [
                "e7fcae8c6989fbfa"
            ]
        ]
    },
    {
        "id": "f193dd3cb4443e8b",
        "type": "mqtt-broker",
        "name": "Victron",
        "broker": "10.11.12.149",
        "port": "1883",
        "clientid": "",
        "autoConnect": true,
        "usetls": false,
        "protocolVersion": "4",
        "keepalive": "60",
        "cleansession": true,
        "birthTopic": "",
        "birthQos": "0",
        "birthPayload": "",
        "birthMsg": {},
        "closeTopic": "",
        "closeQos": "0",
        "closePayload": "",
        "closeMsg": {},
        "willTopic": "",
        "willQos": "0",
        "willPayload": "",
        "willMsg": {},
        "userProps": "",
        "sessionExpiry": ""
    }
]

```

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [21 April 2024 13:36 UTC](https://discourse.nodered.org/t/variable-for-name-node-led/87385/2 "2024-04-21T13:36:07Z")

</div>

What you have posted is just an Mqtt-in node, not a complete flow.

But to address your question, it was [raised in Github 2 years ago](https://github.com/Adorkable/node-red-contrib-ui-led/issues/100) but not implemented.

Indeed, the maintainer of this node has implied that they are no longer developing it.

> it's been a while since I've worked on this project and I'm not sure the next time I will. If anyone else with a good track record of open source maintenance and community fostering would like to take it over I'd be happy to transfer the management!

Perhaps you should consider migrating to Dashboard 2, which I think has it's own LED widget.

---

<div class="post-metadata">

### Author: ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)
#### Post date: [21 April 2024 19:00 UTC](https://discourse.nodered.org/t/variable-for-name-node-led/87385/3 "2024-04-21T19:00:07Z")

</div>

> [@jbudd](#):
>
> which I think has it's own LED widget

Yes indeed, see [here](https://flows.nodered.org/node/@flowfuse/node-red-dashboard-2-ui-led).  
The repo is maintained by FlowFuse, but it is not included in the basic set of Dashboard 2 ui nodes.  
So you need to install it separately...

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [21 April 2024 19:25 UTC](https://discourse.nodered.org/t/variable-for-name-node-led/87385/4 "2024-04-21T19:25:25Z")

</div>

Are you trying to set the node name, which is shown in the editor, or the label, which is shown in the dashboard?

---

<div class="post-metadata">

### Author: ![edstobi](https://avatars.discourse-cdn.com/v4/letter/e/aca169/32.png) [@edstobi](https://discourse.nodered.org/u/edstobi)
#### Post date: [22 April 2024 08:37 UTC](https://discourse.nodered.org/t/variable-for-name-node-led/87385/5 "2024-04-22T08:37:48Z")

</div>

I am trying to show it on the dashboard  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/f/cf629f4ad00ffc3cf4ba8438951401fe2e07b2e4.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/8/88f52fe66cfcbb9c1f13996007075360a4296700.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: [22 April 2024 08:50 UTC](https://discourse.nodered.org/t/variable-for-name-node-led/87385/6 "2024-04-22T08:50:05Z")

</div>

Then you need to put `{{msg.label}}` in the label field not the name field, and feed in the property `msg.label` containing the text you wish to display.

p.s what version of ui-led are you using, as I see a different layout to you. (0.4.11). It may be a browser issue.

---

<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: [22 May 2024 08:50 UTC](https://discourse.nodered.org/t/variable-for-name-node-led/87385/7 "2024-05-22T08:50:37Z")

</div>

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