I have automation in place that works brilliantly, I have a pi with a button attached in the kitchen and when pressed it sends an MQTT message and triggers the lights on and off via scenes. I love it.
Anyway I’d like to take it up a notch by having it select a random scene each time the ON condition is met or I might also like to cycle through a number of schemes each time the button goes on. I’m racking my brains with {} type things but can’t see how to get variables into the automation, i tried a few things like { scene1, scene2, scene3 | random } but all i got were errors (that was pseudo code by the way, i did try various syntax). Can anyone help me out here?
I’ve never tried it myself and couldn’t find anything in a quick search but I would bet you that someone in the forums has. You may want to do a deep er search and see if you can locate anything. If I find anything relevant I will post it here.