Cycle through a set of Scenes

To give an idea of where I’m at with HA: I’ve been happily using running my system for about a year now and I am happy to tinker around with things.

I have an IKEA Styrbar remote and a set of smart bulbs with 3 scenes (cosy, watching TV, and eating) that I’d like to cycle through when I press the > button. I found a great walkthrough by Smart Home Junkie, but it’s quite old and it occurs to me that there might be a better way to achieve this in 2025.

So I have a dropdown Helper with the entity_ids of the Scenes called scene_selector:

  • scene.cozy
  • scene.watching_tv
  • scene.eating

It feels like a possible way forward is to create an Automation that triggers when I press > :

Then do:

action: input_select.select_next
metadata: {}
data:
  cycle: true
target:
  entity_id: input_select.scene_selector

This changes the state/value of input_select.scene_selector, which is nice to see.

At this point, it’d be really cool if it were possible to find a scene with the name of the current value of input_select.scene_selector, and then turn it on.

action: scene.turn_on
data:
  entity_id: input_select.scene_selector_living_room

The above doesn’t work. Is there a way to pass a variable to the scene.turn_on action? Thanks in advance!

action: scene.turn_on
target:
  entity_id: "{{ states('input_select.scene_selector_living_room') }}"

Also if you change your input select options to something that looks nice in a dashboard, like:

  • Cozy
  • Watching TV
  • Eating

You can still use it like this:

action: scene.turn_on
target:
  entity_id: "scene.{{states('input_select.scene_selector_living_room')|slugify }}"

Brilliant, thanks for your help! This works perfectly and I’m delighted that, all going well, I can can add/remove new scenes to this without touching the YAML :slight_smile: