13.02.2026, 07:59
Here's a basic solution - map event script to a binary object, set execution mode to "Last instance only". Sending TRUE will dim from 0% to 100%, sending FALSE will dim from 100% to 0%. Change group addresses as needed. 0/0/21 is the light output group address, 0/0/24 is the fade time in minutes.
Code:
value = event.getvalue()
out = '0/0/21'
time = grp.getvalue('0/0/24')
sleeptime = time * 60 / 100
for i = 0, 100 do
grp.write(out, value and i or (100 - i))
os.sleep(sleeptime)
end