Blocky event for RGB color setting

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
yanic
Posts: 10
Joined: Saturday 31 October 2015 22:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Blocky event for RGB color setting

Post by yanic »

Hello,

I just created my first event in blocky!

IF my nest thermostat comes on, I turned on a bulb - I was impressed!

However, it happens to be an RGB bulb and I was hoping to set the bulb color to red or blue depending on the status but in blocky, I cannot set the bulb to "#3289c7" for example. I tried to set it to that as a string but it didnt work.

I'd one day like to do this with outside temperature perhaps.
yanic
Posts: 10
Joined: Saturday 31 October 2015 22:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Blocky event for RGB color setting

Post by yanic »

Image

I got it working like this, the scene has the ability to set the colour. However I am not sure of the difference between turning a scene on or activating it. Either way I did both
kathleencjustice
Posts: 5
Joined: Saturday 11 June 2016 7:18
Target OS: Windows
Domoticz version:
Contact:

Re: Blocky event for RGB color setting

Post by kathleencjustice »

RGB color space or RGB color system, constructs all the colors from the combination of the Red, Green and Blue colors. The red, green and blue use 8 bits each, which have integer values from 0 to 255. This makes 256*256*256=16777216 possible colors. RGB ≡ Red, Green, Blue. Each pixel in the LCD monitor displays colors this way, by combination of red, green and blue LEDs (light emitting diodes). When the red pixel is set to 0, the LED is turned off. When the red pixel is set to 255, the LED is turned fully on. Any value between them sets the LED to partial light emission.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest