10.11.2021, 13:07
thank you very much, but this is the wrong way...
I was able to dim with the following script, the problem is that I have to press it every time.
as soon as I press it, it must be sent cyclically, as long as I press the button, it is dimmed (that is normal)
daligroup=0
if (grp.getvalue('10/0/52') == 9) then
require('user.dali')
dalicmd('internal', 'up', { addrtype = 'group', address = daligroup })
dalicmd('internal2', 'up', { addrtype = 'group', address = daligroup })
elseif (grp.getvalue('10/0/52') == 1) then
require('user.dali')
dalicmd('internal', 'down', { addrtype = 'group', address = daligroup })
dalicmd('internal2', 'down', { addrtype = 'group', address = daligroup })
end
big thx
I was able to dim with the following script, the problem is that I have to press it every time.
as soon as I press it, it must be sent cyclically, as long as I press the button, it is dimmed (that is normal)
daligroup=0
if (grp.getvalue('10/0/52') == 9) then
require('user.dali')
dalicmd('internal', 'up', { addrtype = 'group', address = daligroup })
dalicmd('internal2', 'up', { addrtype = 'group', address = daligroup })
elseif (grp.getvalue('10/0/52') == 1) then
require('user.dali')
dalicmd('internal', 'down', { addrtype = 'group', address = daligroup })
dalicmd('internal2', 'down', { addrtype = 'group', address = daligroup })
end
big thx