Color change with left and right button

Hi everyone, I need to develop an automation that allows me to choose the color of a light bulb via the famous IKEA button (which has a button and a left button), I’m trying different ways but I can’t, does anyone know how to help me?

Thank you