New update, new randomizers. Available from Version 2025-11-19
Few days ago I made an introduction to colour animations and a way to randomize the saturation to make the colour more alive. I’ve edited that comment because I’m deprecating the old way in favour of this:
-
randomSat 80-100is a random high saturation between 80% and 100%. -
randomHue 55-85is a blue-ish colour with a random shade that can get a bit purple, perfect to gravitate towards the same colour
. -
randomLevel 60-80for a random brightness between 60% and 80%. Why would you use this? For an animation simulating a candle
. -
randomTemp 2200-3500for a random colour temperature, if your light has no colours you can have some fun too.
Dynamic blue example
If you loop with virtual switches or the scene switcher a single Advanced input action like randomHue 59-69 randomSat 95-100 seconds 10 you’ll have a nice smoothly changing blue that rivals dynamic modes in some vendors.
I use this strategy for my WiZ lights and I prefer it to the built-in modes!
Again, mind some lights will flood your hub when using animations.
Targeting multiple lights with the same action
If you want to set the exact same random colour in multiple lights you can use the also DEVICE_ID like in the auto-repeat steps feature introduced some comments earlier. With this new update, pretty much everything in the Advanced input can use multiple targets to reduce popcorn effect and apply random values equally.
For instance
randomHue 0-100 sat 100 also DEVICE_ID
will set a completely random saturated colour to the light where you run the routine and also to the light with the given device ID as long as it uses this driver.
