05.01.2019, 18:02
Use this resident script, 0 sleep time. It will poll each ballast, then sleep for 1 second internally. You need to create status objects manually, this example uses 32/2/0..32/2/7 range. Data type is 1-byte scale, make sure that status objects are not the same as control objects.
Code:
require('user.dali')
for address = 0, 7 do
res = dalicmd('internal', 'queryactual', { addrtype = 'short', address = address })
if res then
value = res:byte()
value = math.floor(value / 2.54 + 0.5)
grp.checkupdate('32/2/' .. address, value)
end
os.sleep(1)
end