Device for switching and dimming 8 independent light groups with electronic DALI ballast units. 4 of the 8 lamp groups can regulate the brightness in interior rooms individually in connection with light sensor 6197/71. The device can be used in connection with up to 4 light sensors not only as KNX-DALI gateway, but also as light regulator for constant light regulation.