12.11.2015, 07:38
Possible via a script but keep in mind that you will lose status values for each ballast if using DALI groups. Are you using grp.write or grp.update to change several ballast values at once?
Adding short addresses 1, 2, 3, 4 to group 7:
Setting group to a certain value:
Adding short addresses 1, 2, 3, 4 to group 7:
Code:
require('user.dali')
dalicmd('internal', 'addtogroup', { addrtype = 'short', address = 1, value = 7 })
dalicmd('internal', 'addtogroup', { addrtype = 'short', address = 2, value = 7 })
dalicmd('internal', 'addtogroup', { addrtype = 'short', address = 3, value = 7 })
dalicmd('internal', 'addtogroup', { addrtype = 'short', address = 4, value = 7 })
Setting group to a certain value:
Code:
require('user.dali')
value = event.getvalue()
value = math.floor(value * 2.54)
dalicmd('internal', 'arc', { addrtype = 'group', address = 7, value = value })