Hi all, i need your brains since i am somewhat stuck.
I have 4 differnt lamps in my living room and i can turn on all of them individually with one ikea rodred. I also have a Ikea styrbar (4 buttons) and now i would like to do the following:
When i click the upper button, i want that all lights THAT ARE ALREADY ON change their dim level. Same should apply for the right button, all lights that are on should change their temperature (and should be the same).
I have created the variable X, and when i click the upper button, i calculate X+1. Then i have a cycle like: If X=1, then X should be 5. If X=2, then dim level should be 10%. If X=3, dim level 30% … If X=6, then X should be 2. Like this i can cycle though the brightness. However, what i do is set the dim level for each lamp individually, this means, when one lamp is off, but i want to change the dim level of my lamps, the lamp will turn on. Unfortunately, i havent found a way to only change the dim level for the lamps that are on.
Any ideas?
Thanks!!