How to cycle through light effects on button press?

Hi everyone,
I am trying to build an automation to control a light from a zigbee button.
What I got so far:

  • Toggle the light on/off with a single press
  • Increase brightness when holding the button
    Where I’m struggling: I like to cycle through the effects of the light with a double click.

I did some research and stumbled over some threads with a similar question but I can’t get any suggested solution to work, probably because I couldn’t understand the solutions shown there.

Threads I found:

Does any of you have an elegant solution for this.
Thanks a lot in advance

Different devices and integrations can handle light effects differently, you will need to share the available information about your device for us to answer your question. For example, does your device contain a select entity that lists the available effects or is that list supplied as an attribute of the light entity?

Thanks for your answer.
It is a “standard” light entity. The effects are supplied in a list:

min_color_temp_kelvin: 1200
max_color_temp_kelvin: 6493
min_mireds: 154
max_mireds: 833
effect_list:
  - Beach Waves
  - Blinding Lights
  - Color Burst
  - Day Light
  - Fireplace
  - Fireworks
  - Flames
  - Flow
  - Forest
  - Inner Peace
  - Jungle
  - Leselicht
  - Leselicht links
  - Leselicht rechts
  - Meteor Shower
  - Nemo
  - Nightclub
  - Northern Lights
  - Ocean
  - Paint Splatter
  - Pulse Pop Beats
  - Rhythmic Northern Lights
  - Ripple
  - Romantic
  - Snowfall
  - Sound Bar
  - Starry Night
  - Streaking Notes
  - Summer Day
  - Sunlight through trees
  - Sunrise
  - Try this before you skip it
  - Twinkling Midnight Sky
  - Vibrant Sunrise
  - Vintage Modern
  - moonlight
supported_color_modes:
  - color_temp
  - hs
effect: null
color_mode: null
brightness: null
color_temp_kelvin: null
color_temp: null
hs_color: null
rgb_color: null
xy_color: null
friendly_name: Nanoleaf Sebastian
supported_features: 36

There is no select entity.