Page 1 of 1
Fibaro RGBW - set color?
Posted: Thursday 25 July 2019 21:34
by Solderbro
Trying to figure out. how to set a color for the fibaro. In the switches section there is the hex numeber shown that seems to be in use. But how can this be adressed in blockly?
This for example results to no light at all, i calculated the required 0xFFDEAD code to decimal

- Bildschirmfoto vom 2019-07-25 21-30-37.png (25.34 KiB) Viewed 1508 times
Popular color codes for testing
http://www.tayloredmktg.com/rgb/
Solderbro
Re: Fibaro RGBW - set color?
Posted: Friday 26 July 2019 9:56
by waaren
Solderbro wrote: Thursday 25 July 2019 21:34
Trying to figure out. how to set a color for the fibaro. In the switches section there is the hex numeber shown that seems to be in use. But how can this be adressed in blockly?
I don't think its possible in domoticz Blockly. You can do this in Lua, dzVents, Python, PHP or any other scripting language.
in dzVents it could look like.
Code: Select all
return {
on = { devices = { 'Bad PIR Sensor' }},
execute = function(dz, item)
if item.active and dz.time.matchesRule('at 00:00-10:00') then
led = dz.devices('Bad LED RGB')
rgbww = dz.devices('Bad Fibaro RGBW')
rgbww.switchOn()
rgbww.setHex(0xFF,0xDE,0xAD)
led.cancelQueuedCommands()
led.dimTo(30)
led.switchOff().afterSec(300)
end
end
}
When not yet familiar with dzVents please start with reading
Get started Before implementing. Special attention please for
"In Domoticz go to Setup > Settings > Other and in the section EventSystem make sure the checkbox 'dzVents disabled' is not checked. Also make sure that in the Security section in the settings you allow 127.0.0.1 to not need a password. dzVents uses that port to send certain commands to Domoticz. Finally make sure you have set your current location in Setup > Settings > System > Location, otherwise there is no way to determine nighttime/daytime state."
Re: Fibaro RGBW - set color?
Posted: Friday 26 July 2019 10:18
by Gerwin
Hello
it is possible in blockly ,
if you make a group you can set in devices the fibaro and select the right color you want and save .
And put that group in blockly
Gerwin
Re: Fibaro RGBW - set color?
Posted: Friday 26 July 2019 10:31
by waaren
Gerwin wrote: Friday 26 July 2019 10:18
if you make a group you can set in devices the fibaro and select the right color you want and save .
Thx. did not think about that approach.
Re: Fibaro RGBW - set color?
Posted: Friday 26 July 2019 16:32
by Solderbro
Okay i see that my next step is to start with dzvents, so i can add both systems.
Thanks
Solderbro