19.06.2017, 06:41
You can use this command to get the current value of each ballast (change GW and ballast addresses as needed):
The same way you can use querystatus and other commands that have reply mark in this table:
http://openrb.com/docs/dali.htm
Flashing can be done via a resident script:
If you want to flash a single ballast, just change the addressing parameters to use short address instead of broadcast.
Code:
require('user.dali')
res = dalicmd('internal', 'queryactual', { addrtype = 'short', address = 0 })
if res then
grp.write('5/0/1', res:byte())
end
The same way you can use querystatus and other commands that have reply mark in this table:
http://openrb.com/docs/dali.htm
Flashing can be done via a resident script:
Code:
dalicmd('internal', 'arc', { addrtype = 'broadcast', value = 254 })
os.sleep(1)
dalicmd('internal', 'arc', { addrtype = 'broadcast', value = 0 })
os.sleep(1)
If you want to flash a single ballast, just change the addressing parameters to use short address instead of broadcast.