This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

RGB 3 x 1 byte absolute % dimming from KNX
#8
Attach an event script to a 251.600 6 byte DALI RGBW object. The RGB part will control the color, W part will be the output brightness. Change R/G/B output addresses as needed.

Code:
value = event.getvalue()

max = math.max(1, value.red, value.green, value.blue)
mult = value.white / max

red = math.round(value.red * mult)
green = math.round(value.green * mult)
blue = math.round(value.blue * mult)

grp.write('1/1/3', red, dt.uint8)
grp.write('1/1/4', green, dt.uint8)
grp.write('1/1/5', blue, dt.uint8)
Reply


Messages In This Thread
RE: RGB 3 x 1 byte absolute % dimming from KNX - by admin - 23.05.2022, 07:00

Forum Jump: