12.05.2022, 14:04
You will need two event scripts. When lamp status (1/1/1) is off then the color status (32/1/1) is black, otherwise color control (1/1/2) value is used.
1. DALI RGBW color object:
2. Lamp on/off object:
1. DALI RGBW color object:
Code:
on = grp.getvalue('1/1/1')
if on then
value = event.getvalue()
else
value = { red = 0, green = 0, blue = 0, white = 0 }
end
grp.checkupdate('32/1/1', value)
2. Lamp on/off object:
Code:
on = event.getvalue()
if on then
value = grp.getvalue('1/1/2')
else
value = { red = 0, green = 0, blue = 0, white = 0 }
end
grp.checkupdate('32/1/1', value)