18.04.2023, 11:31
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:
Use this to find the source object name:
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)