# Contact LED Location Release

**URL:** <https://discourse.nodered.org/t/contact-led-location-release/33266>\
**Category:** Dashboard\
**Created:** [24 September 2020 08:05 UTC](https://discourse.nodered.org/t/contact-led-location-release/33266 "2020-09-24T08:05:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![murondo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/murondo/32/29014_2.png) [@murondo](https://discourse.nodered.org/u/murondo)\
**Post date:** [24 September 2020 08:05 UTC](https://discourse.nodered.org/t/contact-led-location-release/33266/1 "2020-09-24T08:05:41Z")

</div>

How do you put the LEDs here in front of the letters as shown in the picture below?

 ![Screenshot 2020-09-24 at 04.08.54](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/6/46c0b46c4bfb8c8d51a584839fb8c9a55b59cfe2.jpeg)

---

<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:** [24 September 2020 08:19 UTC](https://discourse.nodered.org/t/contact-led-location-release/33266/2 "2020-09-24T08:19:12Z")

</div>

By putting the led and switch in the same group (in this example the group is 6 blocks wide) and making the size of the LED 1 block and the switch 5 blocks, each led/switch set will line up together. Here is an example that should get you on your way:

```auto
[{"id":"6684cbba.fe825c","type":"ui_led","z":"3e01b20a.59e586","group":"deffddd3.ec9b","order":1,"width":"1","height":"1","label":"","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"false","valueType":"bool"},{"color":"green","value":"true","valueType":"bool"}],"allowColorForValueInMessage":false,"name":"","x":480,"y":80,"wires":[]},{"id":"af223186.01d4d","type":"ui_switch","z":"3e01b20a.59e586","name":"","label":"switch led 1","tooltip":"","group":"deffddd3.ec9b","order":2,"width":"5","height":"1","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":290,"y":80,"wires":[["6684cbba.fe825c"]]},{"id":"7e893f00.eb4948","type":"ui_led","z":"3e01b20a.59e586","group":"deffddd3.ec9b","order":3,"width":"1","height":"1","label":"","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"false","valueType":"bool"},{"color":"green","value":"true","valueType":"bool"}],"allowColorForValueInMessage":false,"name":"","x":470,"y":160,"wires":[]},{"id":"b2a04d65.e27b28","type":"ui_switch","z":"3e01b20a.59e586","name":"","label":"switch led 2","tooltip":"","group":"deffddd3.ec9b","order":4,"width":"5","height":"1","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":290,"y":160,"wires":[["7e893f00.eb4948"]]},{"id":"deffddd3.ec9b","type":"ui_group","z":"","name":"Default","tab":"4c73885e.ebb1f8","order":1,"disp":true,"width":"6","collapse":false},{"id":"4c73885e.ebb1f8","type":"ui_tab","z":"","name":"LED example","icon":"dashboard","order":1,"disabled":false,"hidden":false}]

```

---

<div class="post-metadata">

**Author:** ![murondo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/murondo/32/29014_2.png) [@murondo](https://discourse.nodered.org/u/murondo)\
**Post date:** [24 September 2020 13:07 UTC](https://discourse.nodered.org/t/contact-led-location-release/33266/3 "2020-09-24T13:07:40Z")

</div>

Wow!!

It's going well because I applied according to the article you answered.

Thank you 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:** [8 October 2020 13:07 UTC](https://discourse.nodered.org/t/contact-led-location-release/33266/4 "2020-10-08T13:07:51Z")

</div>

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