Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 105779

Cycle through a set of Scenes

$
0
0

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!

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 105779

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>