21.06.2019, 13:21
This script sets short address to 42 to all connected ballasts on internal gateway 1.
You need to run this script once for each new ballast you have. Make sure that only one ballast is connected when script is run. Then connect all ballasts and run scan in last mode (only add new devices).
Code:
address = 42
require('user.dali')
dalicmd('internal', 'setdtr', { addrtype = 'broadcast', value = address * 2 + 1 })
dalicmd('internal', 'storeshortaddress', { addrtype = 'broadcast' })
You need to run this script once for each new ballast you have. Make sure that only one ballast is connected when script is run. Then connect all ballasts and run scan in last mode (only add new devices).