This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

DALI devices feedback statuss
#4
You can use this command to get the current value of each ballast (change GW and ballast addresses as needed):
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.
Reply


Messages In This Thread
DALI devices feedback statuss - by AlexLV - 17.06.2017, 06:29
RE: DALI devices feedback statuss - by AlexLV - 17.06.2017, 13:33
RE: DALI devices feedback statuss - by admin - 19.06.2017, 06:41
RE: DALI devices feedback statuss - by AlexLV - 20.06.2017, 19:56
RE: DALI devices feedback statuss - by admin - 21.06.2017, 06:28

Forum Jump: