Stepwise dimming of a light with SmartThings Routines, when pressing buttons?

I have an IKEA 5 button keypad and an IKEA bulb. When pressing the up and down buttons I would like to dim the light in 20% increments. How can I achieve this in the app? It was pretty straightforward with WebCore…Do I need to create 10 routines where I check the current dim level, or is there a more elegant solution?

Ideally I’d like to cycle colors with the left and right buttons too, but this is less critical…

If you use this driver

You can use level steps


in routine’s command part (Then).