Help with advanced flow - dim level cycling with several lamps

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!!

Unfortunately certain lamps turn on by just changing the dim value, even if the value wasn’t equal to zero.
So you’ll have to make a change request at https://homey.app/support.
(Chances are low, it’s been like this for over 4 years of using Homey).

And changing the dim value to 0, turns the lamps off, instead of dimming to the minimum level.

Maybe you can workaround it by using the Zone Memory app.

Not sure if the recently added “Moods” functionality can help.

I’m not sure if I understood your description of the flow correctly.
Do you use the Is on card as additionally condition in the And… section?
Can you show your flow please?