02.06.2020, 07:44
You can try using a script instead of object mapping for binary light control. This event script must be mapped to a binary object. It will control ballast with short address 1.
As for status you cannot use broadcast if you have more than 1 ballast. All ballasts will reply to broadcast query which will result in a collision error. Use short address mode for queries:
Code:
require('user.dali')
cmd = event.getvalue() and 'recallmax' or 'off'
res, err = dalicmd('internal', cmd, { addrtype = 'short', address = 1 })
As for status you cannot use broadcast if you have more than 1 ballast. All ballasts will reply to broadcast query which will result in a collision error. Use short address mode for queries:
Code:
res, err = dalicmd('internal', 'querystatus', { addrtype = 'short', address = 0 })