# Hello How to turn on UI LED with buffer data value?

**URL:** <https://discourse.nodered.org/t/hello-how-to-turn-on-ui-led-with-buffer-data-value/82488>\
**Category:** Dashboard\
**Created:** [31 October 2023 12:04 UTC](https://discourse.nodered.org/t/hello-how-to-turn-on-ui-led-with-buffer-data-value/82488 "2023-10-31T12:04:55Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShinDongHen](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@ShinDongHen](https://discourse.nodered.org/u/ShinDongHen)\
**Post date:** [31 October 2023 12:04 UTC](https://discourse.nodered.org/t/hello-how-to-turn-on-ui-led-with-buffer-data-value/82488/1 "2023-10-31T12:04:56Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/4/042c35f24f4cb631d395abb327f2cca9de60f45a.jpeg)

hello  
as shown in the picture  
Calculate the buffer data as a number  
I'm trying to turn on the UI LED with a value of 52488.  
What should I do?  
Thank you for your interest.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [31 October 2023 12:26 UTC](https://discourse.nodered.org/t/hello-how-to-turn-on-ui-led-with-buffer-data-value/82488/2 "2023-10-31T12:26:06Z")

</div>

If you open the `ui-led` node, what does it say it needs to turn the led on and off?

---

<div class="post-metadata">

**Author:** ![ShinDongHen](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@ShinDongHen](https://discourse.nodered.org/u/ShinDongHen)\
**Post date:** [31 October 2023 12:52 UTC](https://discourse.nodered.org/t/hello-how-to-turn-on-ui-led-with-buffer-data-value/82488/4 "2023-10-31T12:52:29Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/b/cb8121a94ea7277fcebedd093bc38721819b6885.png)  
The buffer value in the function node was converted to an int value.  
The value is 524288.  
true if this value is 524288  
Otherwise, if it is any other value, set to false.  
I want to express it, but what node should I use?  
I'd like to know if there is another way.

Thank you for your sincere interest.

---

<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:** [31 October 2023 13:04 UTC](https://discourse.nodered.org/t/hello-how-to-turn-on-ui-led-with-buffer-data-value/82488/5 "2023-10-31T13:04:52Z")

</div>

You can probably do it with a switch node  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/0/40e35a5dc00a942dfdd7c0d042bf1dd72297294e.png)  
and then two change nodes  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/9/c9d091fd313adcea2f9abf04a235ed32ce1cd7c8.png)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/5/f58e4b6f021fad58f212ccaa9cbc7bb2efd658e1.png)

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [31 October 2023 13:38 UTC](https://discourse.nodered.org/t/hello-how-to-turn-on-ui-led-with-buffer-data-value/82488/6 "2023-10-31T13:38:08Z")

</div>

In the function node you could test it and return true or false

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [31 October 2023 16:06 UTC](https://discourse.nodered.org/t/hello-how-to-turn-on-ui-led-with-buffer-data-value/82488/7 "2023-10-31T16:06:46Z")

</div>

Removed uibuilder tag as this isn't about uibuilder.

---

<div class="post-metadata">

**Author:** ![ShinDongHen](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@ShinDongHen](https://discourse.nodered.org/u/ShinDongHen)\
**Post date:** [1 November 2023 00:05 UTC](https://discourse.nodered.org/t/hello-how-to-turn-on-ui-led-with-buffer-data-value/82488/8 "2023-11-01T00:05:42Z")

</div>

thank you very very much ~.~!!!!

---

<div class="post-metadata">

**Author:** ![ShinDongHen](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@ShinDongHen](https://discourse.nodered.org/u/ShinDongHen)\
**Post date:** [1 November 2023 00:06 UTC](https://discourse.nodered.org/t/hello-how-to-turn-on-ui-led-with-buffer-data-value/82488/9 "2023-11-01T00:06:11Z")

</div>

thank you very very much ^.^~!!!!

---

<div class="post-metadata">

**Author:** ![ShinDongHen](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@ShinDongHen](https://discourse.nodered.org/u/ShinDongHen)\
**Post date:** [1 November 2023 00:06 UTC](https://discourse.nodered.org/t/hello-how-to-turn-on-ui-led-with-buffer-data-value/82488/10 "2023-11-01T00:06:34Z")

</div>

thank you very very much _._ !!!!

---

<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:** [1 December 2023 00:07 UTC](https://discourse.nodered.org/t/hello-how-to-turn-on-ui-led-with-buffer-data-value/82488/11 "2023-12-01T00:07:28Z")

</div>

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