Solved: How switch color with one button push

Using Better Logic Library app will make switching colors easy. Using only one button lets you run through your self-defined colors ending with the off switch. See example using an advanced flow.
This example can be expanded with multiple lights / colors if you want.

When the light turns off at the bottom line the value of ‘lampkleurwaarde’ is still 3. So when you press the button again both the top line and the bottom line are true. I’m curious what happens.

True. But when the light status is OFF and you press the button again the variable gets its new value 1 based on the light status.

For now it wil work i think.
But when the flow gets more complex there is a change that there wil be some hickups.
I would place a extra card behind Zet uit, Zet lampkleurwaarde naar 0.

This one below is way more complex and works flawless. Don’t see your point. And why put in more useless commands when it works? When all lights are off the variable will be reset to 1 the next push anyway.

This would be my flow: without the ALL-cards and with the standard logic-cards:

Similar. :ok_hand: