Switch light color (Shelly) via KNX

Hello,

I would like to use a trigger to change the color of a lamp via automation.

How can I resolve this so that the first press selects, for example, red?

If I then press it again, it should turn yellow, for example.

And if I press it again, it should turn blue.

What’s the easiest way to ensure that the called automation still knows the previous color and jumps to the next one?

I want to control a Shelly RGB lamp via a KNX trigger signal.