This object is in archive! 
How to make system pick a random colour on RGBW light
Answered
Hi Everyone. I need an advise.
1. I have a rule, where if I switch the virtual switch on, the RGBW bulb changes it's colour to green. If I switch off, it goes back to white.
Now, how to make the colour to be a random and not fixed green?
Imagine, virtual switch is like a scene, if turned on, I have a random colour in the room. When off, goes to full white.
Any idea?
2. Also, how can you set up continuous dimming effect from 100% to 20%?
If I would turn a virtual switch on the light would slowly dim to from 100% to 20%, and if turned off from 20% to 100%. Time to dim lets say 5 seconds...
Any idea?
Files:
rule.png
No connection
Real-time notifications may not work
There is a "Random between __ and __" puzzle in the Variable secition, but since your light is using hex values, I don't think you could use it (easily).
You might be able to use it like this:
if (random_value == 1)
HexString = "ffffff"
else if (random_value == 2)
HexString = "fffff0"
else if (...)
...
action setRGBW -> HexString
..in theory, at least.
There is a "Random between __ and __" puzzle in the Variable secition, but since your light is using hex values, I don't think you could use it (easily).
You might be able to use it like this:
if (random_value == 1)
HexString = "ffffff"
else if (random_value == 2)
HexString = "fffff0"
else if (...)
...
action setRGBW -> HexString
..in theory, at least.
Hi Marius,
Thanks for the info but surely there is an easier way to do this.
Hi Marius,
Thanks for the info but surely there is an easier way to do this.
Hi, Attila. Is there an easier way, or do you think there must be an easier way?
Hi, Attila. Is there an easier way, or do you think there must be an easier way?
I would try something like this:
then you can fill in your color range in the two fields of gotovalue
I would try something like this:
then you can fill in your color range in the two fields of gotovalue
Will give it a go tonight.
Anyone has an idea on my second topic relating to dimming?
Will give it a go tonight.
Anyone has an idea on my second topic relating to dimming?
This device is not very good implemented. To get a specific colour you have to adjust each color seperately. And sometimes you will get some strange colors. Dimming time you can change in the advanced parameter section.
This device is not very good implemented. To get a specific colour you have to adjust each color seperately. And sometimes you will get some strange colors. Dimming time you can change in the advanced parameter section.
Is that a Fibaro RGBW Modul? If yes it's look wrong. In my case it looks so:
Is that a Fibaro RGBW Modul? If yes it's look wrong. In my case it looks so:
Replies have been locked on this page!