Is it possible to shuffle a color with a rule?
Is it possible to shuffle a color with a rule
Possibly. What works for sure is to randomize the color. Shuffling, i.e. switching to the next pre-defined color in a list of color values may be harder to achieve. Another possibility maybe to implement a color shuffle action for the given plugin.
Maybe you could set a variable to a random value by rule
I’m using the hue-zll plugin:
When every 5 seconds and $disco = 1 Then set color of Wohnzimmer to hue random(0,100) saturation 100 transition time 5 seconds
When every 3 seconds and $disco = 2 then set $disco-hue = ($disco-hue + 5) and set color of Wohnzimmer to hue $disco-hue saturation 100 transition time 3 seconds //Wraparround When $disco-hue >= 100 and $disco = 2 set $disco-hue = 0
As part of pimatic-milight-reloaded you can use the disco modes provided by the Milight bulb contoller
Also note, primatic provides a hexString formatting function which allows for generating random RGB hex strings, e.g.
hexString(random(0,16777215), 6, "#").
Unfortunately, a bug slipped in causing the input number to be zeroized. This will be fixed with the next release of pimatic. EDIT: Released email@example.com which fixes the issue
Wow you guys rock! Thanks! I will try it out
Looks like your connection to pimatic forum was lost, please wait while we try to reconnect.