Library for controlling DALI lighting systems