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.

Convert RGBW 1byte in to DT8 object
#4
Adjust sleep time as needed. Higher value will prevent duplicate messages but will add a visible delay to the light changes. Separate script is needed for each R/G/B/W + RGBW objects.
Code for 6 byte DALI RGBW output object:
Code:
os.sleep(0.5)

value = {
  red = grp.getvalue('1/1/1') * 2.55,
  green = grp.getvalue('1/1/2') * 2.55,
  blue = grp.getvalue('1/1/3') * 2.55,
  white = grp.getvalue('1/1/4') * 2.55,
}

grp.write('1/1/5', value)

Use this to find the source object name:
Code:
obj = grp.find(event.dst)
log(obj.name)
Reply


Messages In This Thread
RE: Convert RGBW 1byte in to DT8 object - by admin - 18.04.2023, 11:31

Forum Jump: