# How can I toggle a group of lights (that don't go out of sync)

**URL:** <https://discourse.nodered.org/t/how-can-i-toggle-a-group-of-lights-that-dont-go-out-of-sync/38284>\
**Category:** General\
**Created:** [30 December 2020 12:59 UTC](https://discourse.nodered.org/t/how-can-i-toggle-a-group-of-lights-that-dont-go-out-of-sync/38284 "2020-12-30T12:59:19Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![GoBooth](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gobooth/32/17452_2.png) [@GoBooth](https://discourse.nodered.org/u/GoBooth)\
**Post date:** [15 January 2021 16:55 UTC](https://discourse.nodered.org/t/how-can-i-toggle-a-group-of-lights-that-dont-go-out-of-sync/38284/15 "2021-01-15T16:55:40Z")

</div>

> [@zenofmud](#):
>
> `,`

Hi, Thanks for taking the time to help me with this.  
I imported your diagram, and I have a few remarks.

1. I didn't have the ui\_led palette installed... I installed "node-red-contrib-ui-led (v. 0.4.4.4) which looks like your picture above, but I never got the LEDs to actually change colors (they're actually white like in your pic... which is wrong right? they should be yellow or grey?)

2. the UI-LED is a unique thing, in a real-life scenario, I would be using a Call Service Node right? and with that, I need to specify "toggle, on or off"  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/6/d683ce006d0a16464f1ddf2593064b9a348713f4.png)

If I chose turn\_on light, then regardless of which button I press, both the ON and the OFF button will turn on my light.

and if I select the toggle option for both my lights, my out of sync issue persists. if 1 light is ON and you hit the toggle button, it will turn on 1 light, and turn off the one that's on.

---

_[View the full topic](https://discourse.nodered.org/t/how-can-i-toggle-a-group-of-lights-that-dont-go-out-of-sync/38284)._
