Help figuring out how to toggle 3+ modes with a single push button

So I’ve got a few aeon minimotes and a few smarttiles dashboards and love using them to control my lights. But there is one thing I’d like to do but not been able to figure out through searching and experimenting.

I want to have 3+ modes (like 15% brightness, 50%, 100%, and 0% brightness) accessible via a single push button. So if I’m in mode A (15%) and hit the button it’ll go to mode B (50%), and I can progress through all of my selected modes by hitting the button and it’ll loop through them.

Does anyone know of a pre-existing smart app or something that could help me achieve this? I’ve dabbled in the ide to setup things like my ip camera, nest, and adding a push button to my garage’s device type–but I’m not skilled enough to start from scratch. Any help would be much appreciated.

use rule machine.

4 rules
rule 1
trigger
button press
condition
lights at 0%
action
lights 15%

rule 2
trigger
button press
condition
light at 15%
action
light 50%

rule 3
trigger
button press
condition
light at 50%
action
light 100%

rule 4
tirger
button press
condition
light at 100%
action
light to 0%

https://github.com/bravenel/Rule-Trigger/tree/master/smartapps/bravenel

1 Like

OK, I’ll give that a try. Seems that I’ve been doing myself a disservice by not checking out this rule machine.