Toggle through button actions

Evening, is there a way to cycle through actions using one button? I'm trying to set button 1 up so it will toggle through turning the light on, then dim to say 25% on the next press, then 50% then off. Anyone managed to do this?

Yes I use it to cycle through lamps in the guest bedroom. Button 1 push, turn on lamp on left, then lamp on right, then both then off. GuestroomLampState is a hub variable.

It also turns off the closet light when both lamps go off.

1 Like

awesome thank you!! will give it a go