Randomly select one of three scenes

I have three scenes setup with different lighting configurations. In a rule, I would like to randomly activate one of those three scenes each time the rule runs. Please advise how I can achieve this

The only random option I see is in RM, under variable math, but I have no idea how it works. I tried creating a variable, setting the value to 5. Then added rule to set variable using variable math, and then selected random. Every time it ran, the variable decremented until it hit zero, then just stayed at zero.

Not in a single action, but you can assign a random number to a variable, then use conditional actions to activate a different scene according to that value.

To get that first action, you'll want something like this, BTW--the random value will be between 0 and the specified constant:

5 Likes

I see what I was doing wrong. Where it says constant, I was picking the variable again. No wonder it didn't work right.

Thanks! I will give this a try