Light Groups for DALI

From OpenMotics
Jump to navigation Jump to search


Light groups for DALI makes it possible to change the state of a group of DALI outputs simultaneously. A good example is for example a large meeting room with multiple DALI dimmers, if you want to switch ON and OFF the group of lights with this one switch but also dim-up and dim-down this group of lights with this same switch, you need this functionality.

How does it work

The Openmotics system can have maximum 32 (0-31) light groups. Each light group can contain 64 outputs but we will not program any outputs in the eprom of our system, we will use the DALI groups that are created with the Lunatone software.

2 ways to use light groups:

  • A light group can be switched ON by using Basic Action 73 and switched OFF by using Basic Action 74.
  • A light group can be switched ON/OFF or dimmed by following a Virtual Output. When a virtual output is switched ON or OFF, the light group will follow this output as well. When this virtual output will be dimmed, the DALI light group will follow the dimmed status. The virtual output can be linked to a switch for example so dimming of a group becomes as easy as dimming an individual light.

In the below example, we will show how you can program this functionality by using Maintenance Mode.

Combining Lights Groups & DALI Light Groups

When combining Light Groups & DALI Groups be aware that Light Group 0-15 will also control DALI Group 0-15. This should be taken into account when planning the installation. Unused DALI Groups can be used as normal Light Group.

Which Eeprom pages are used?

  • Page 112: This page is used to link a Virtual Output to a Light group (and thus also a DALI Light Group). Byte 0-239 are used for each possible output of the system. Byte 0 is linked to Output 0, Byte 1 is linked to Output 1 etc. The Output Group Link will be programmed in the individual byte.


We will create the following example:

  • We want to use 1 switch to turn a group of lights ON, OFF and dim up/down.
  • In this example, we have 15 dimmed DALI outputs that must be dimmed and turned ON/OFF by using 1 switch.

Create a DALI light Group

First we will create a DALI light group.

The Lunatone Cockpit software allows you to configure the different DALI ID’s into certain groups. Just connect Connector A to your RS232-USB convertor and start the Cockpit software. Go to the configured DALI ID’s where you can select to which group it should belong.

Dali Screenshot4.png

In the above example, you can see that the device with DALI ID A10 is member of DALI Group 0 and 10 in other words, when DALI Group 0 or 10 are switched ON,OFF or dimmed, the Outputs that are member of these group will follow the group status.

Once the programming is done, reconnect Connector A and B so the DALI Network is again coupled to the CAN Control.

Note: The 32 groups are used for all connected DALI networks in other words, if you are using for example 4 CAN Controls which have 4 connected DALI networks, switching off group 0 will switch off all DALI ID’s that are member of Group 0 of the 4 DALI networks.

Test a DALI Light Group

We will use some Basic Actions to switch ON and OFF our new created DALI group.

basic action activate 73 10       ;Switch light group 10 ON
basic action activate 74 10       ;Switch light group 10 OFF

Create a Virtual dimmer module

Since we also want to dim our DALI group by using a switch, we will create a Virtual dimmer module.

A virtual output module can be created by using following CLI instruction:

add virtual module d                 ;Create a Virtual dimmer module

The created modules can be easily checked with following instruction:

error list                           ;Error list will indicate all modules created in the system

In the error list, we can find back the new output module since it will be the last output module and it will have type "d" (not "D"). The output line number (0-...) in the error list will indicate the output that are used for that module. In the case of our example, let assume that the new created virtual dimmer module is module 5 in the error list so output 40-47 are used (8*5).

A virtual output module can also be created by API instruction "AV", see API Reference Guide for more details. When creating a virtual module through the API, the instruction "MI" will be sent from the Master to the BB.

When a Virtual Output state changes, the same API instruction ("RO" and/or "OL") will be sent to the BB as with a Normal Output that changes state.

Link a Virtual Output to a DALI Light Group

In this example, we will link output 41 to group 10. This is programmed in page 112, see Memory Model for more details.

eeprom write 112 41 10    ;Link Light Group 10 to Output 41

Link a switch to a Virtual Output

In this example, we will link switch 22 to Virtual Output 41.

input link write 22 41        ;Switch 22 is linked to Output 41

Since output 41 is a dimmed output so the additional dimming functionality (short press ON/OFF, long press dim up/down) is automatically added.

Now switch 22 will switch ON/OFF DALI Light Group 10 (short press) and dim the group (long press).


  • All possible functions that are used for normal outputs can be used for virtual outputs as well.