How To Cycle Through Scenes

I am using this brilliant blueprint for all my Hue Dimmer Switches https://community.home-assistant.io/t/very-easy-custom-philips-hue-dimmer-switch-for-z2m-zigbee2mqtt/521205

For my Tap Dial Switches I use this blueprint https://smarthomegeeks.io/hue-tap-dial-switch/

What I have done is create a dropdown helper where I list the scenes that is used by the dimmer switch.

Create the scenes as you normally would.

Create a Scenes Helper in /config/helpers, in my case i named it “Walkin Scenes Helper”. Just use friendly names as options since the room prefix will be added in the scene.turn_on action later.

When the button is pressed (released) ad this IF/ELSE action to always start at the first scene when the lights are off, else next scene is choosen.

if:
  - condition: device
    type: is_off
    device_id: <DEVICE_ID>
    entity_id: <ENTITY_ID>
    domain: light
then:
  - action: input_select.select_first
    metadata: {}
    data: {}
    target:
      entity_id: input_select.walkin_scenes_helper
else:
  - action: input_select.select_next
    metadata: {}
    data:
      cycle: true
    target:
      entity_id: input_select.walkin_scenes_helper

followed by a Scene Activate action

action: scene.turn_on
target:
  entity_id: "{{ 'scene.walkin_' ~ states('input_select.walkin_scenes_helper')}}"

Best regards