Basic scene cycle for smart button


I’m trying to set up something very basic for my hue smart button that is available by default on the official Hue App.

1st press - scene A
2nd press - scene B
After a short idle, button press should turn off the lights.

I can do the scene cycle but turning off the lights in such set up is something I miss.
Does anyone know how to solve it (if possible at all)?