DALI (Digital Addressable Lighting Interface, IEC 62386) is the protocol for digital lighting control: each ballast or LED driver (control gear) gets a short address (0 to 63), can belong to up to 16 groups and reports its status and lamp failures. DALI-2 adds control devices such as presence sensors, light sensors and push-buttons. Power and data share the same two wires, without polarity.
The Weble IoT Universal Gateway Dali / Dali2 driver is a DALI controller: it commissions the line (gives short addresses, builds groups), dims gears, groups or the whole line, reads their status and lamp failures, and receives the events of DALI-2 devices.
Driver key:
dali— listed as Dali / Dali2 under Building Automation in Gateway driver. Licence: required (contact support@weble.ch).
%dali:00 (the line), %dali:00/B (broadcast) and %dali:00/BU (gears without a short address).On a new line, give the short addresses with DALI 1 Methods › Commissionning; on a line already commissioned with another tool, use Find existing gears (section 4.1). Each gear found appears as %dali:00/A<nn>. Write 50 to %dali:00/A<nn> to dim it to 50 % (section 4.2).
The complete method, from the first power-up to groups, lamp failure monitoring and DALI-2 sensors, is in Commissioning a DALI line step by step.
Parameters of a Dali / Dali2 gateway:
| Label | JSON key | Description |
|---|---|---|
| Name | name |
Name of the gateway, must be unique. |
| Cluster ID | cluster |
0 = the gateway runs in its own process. See Gateway clusters. |
| Driver | json.driver |
Lunaton LUBA (LUNATONE, default): Lunatone interface using the LUBA protocol; the serial link is fixed to 38400 baud, 8 data bits, no parity, 1 stop bit. Lunaton NO LUBA (LUNATONE_LEGACY): older Lunatone firmware without LUBA. Do not select Default: the gateway does not start with it. |
| Bus power supply | json.busPowerSupply |
Switches on the DALI bus power supply built into the interface (enabled by default, applied when the gateway starts). Untick it when the DALI line is powered by an external DALI bus power supply. |
| Serial Port | json.serialPort |
Serial interface the DALI adapter is connected to; pick it in the list of detected ports. |
| ON duration emit interval in ms | json.onDurationEmitInterval |
Interval, in milliseconds, at which the onDuration counters are published. Default 60000 (one minute), minimum 1000. |
Saving the gateway restarts the driver. At start-up the gateway creates three addresses by itself: %dali:00 (line 0), %dali:00/B (broadcast) and %dali:00/BU (broadcast to gears without a short address).
The DALI driver requires a license option: without it the gateway does not run and reports missing license.
{
"driver": "LUNATONE",
"busPowerSupply": 1,
"serialPort": "<serial interface>",
"onDurationEmitInterval": 60000
}
DALI 1 control gear (ballasts, LED drivers):
| Driver prefix | line | target | description |
|---|---|---|---|
| %dali | [0-9][0-9] | A[0-9][0-9] | gear short address |
| %dali | [0-9][0-9] | G[0-9][0-9] | gear groups |
| %dali | [0-9][0-9] | B | broadcast (all gears of the line) |
| %dali | [0-9][0-9] | BU | broadcast to the gears without a short address |
DALI 2 control devices (push-buttons, sensors):
| Driver prefix | line | target | description |
|---|---|---|---|
| %dali | [0-9][0-9] | D[0-9][0-9] | device short address |
| %dali | [0-9][0-9] | DG[0-9][0-9] | event device groups |
| %dali | [0-9][0-9] | DI[0-9][0-9] | event device instance |
| %dali | [0-9][0-9] | DIG[0-9][0-9] | event device instance group |
%dali:[0-9][0-9]/A[0-9][0-9]
%dali:[0-9][0-9]/G[0-9][0-9]
Groups allow multiple DALI Devices on the same line to be grouped together which allows the devices to perform an action together.
Each DALI device can be assigned membership to a group or multiple groups. This grouping allows commands to be sent out in groups with all members of the group reacting to one individual group command. If a device is not part of the group it will be ignored.

DALI scenes are not supported by the driver: there is no scene address. To recall a lighting mood, write the levels to the groups (
%dali:<line>/G<nn>) from a route or from the logic module.
| Label | JSON key | Description |
|---|---|---|
| Name | name |
Built by the editor from the Line, the Type (Short address or Group) and the short address (0–63) or group (0–15), e.g. %dali:00/A14. Sub-addresses are created by the gateway. |
| Description | description |
Free text. |
| Polling | json.polling |
Period of the cyclic read, in milliseconds (e.g. 60000), or a cron expression. Empty = the address is never polled. |
| Store value | json.remanent |
never, always or a period: keeps the last value on disk so that it is restored after a restart. |
| Log | log |
never, on update, always or a period. |
Without Polling, a value is refreshed only when it is written, read manually, or when the gateway sees the corresponding frame on the bus. Set a polling period on
…/statusor…/levelof the gears you want to supervise (lamp failure, actual level).
Status. The main address of a gear or device (%dali:00/A14) goes to status ! timeout when the gear stops answering and back to online at the next answer. Use a route of type status to raise an alert (see Routes).
| Address | Access | Value |
|---|---|---|
%dali:00 |
– | The line. Right-click it for the line actions (commissioning, scan, reset). |
%dali:00/B, %dali:00/BU |
write | Level in % for all gears of the line / for the gears without a short address. |
%dali:00/G03 |
write | Level in % for group 3. |
%dali:00/A14 |
read / write | Level in % of gear 14 (updated after each write and each read of /level). Reading it checks that the gear exists and refreshes its status, groups and type, not the level. |
%dali:00/A14/level |
read | Actual level as an object {err, value} (/level/value, /level/error and /value give the fields separately). |
%dali:00/A14/exists |
read | true when the gear answers. |
%dali:00/A14/status |
read | Status object: ballastStatus, lampFailure, lampArcPowerOn, limitError, fadeReady, resetState, missingShortAddress, powerFailure. |
%dali:00/A14/groups |
read / write | Group membership: array of 16 flags (see 4.3). |
%dali:00/A14/address |
read / write | Short address. Write a number from 0 to 63 to move the gear to that address. |
%dali:00/A14/onDuration |
read / write | Operating hours counted by the gateway. Write reset or reset=1000 to set the counter. |
DALI 2 devices (%dali:00/D08) have the same address, exists, status and groups (32 flags) sub-addresses, plus numberOfInstances, powerCycleNotification and the instances/<nn>/… sub-tree (see 3.4).
An instance is a part of an input device, which is a product that provides information to the DALI system.
An example is a push-button panel with 8 buttons. Each button is one instance, giving 8 in total in the same product. These will implement IEC 62386-301 (push-button), which is instance type 1. Similarly, an occupancy sensor implements IEC 62386-303, which is instance type 3.
It is common for input devices to implement more than once instance. A sensor may implement an occupancy sensor and a light sensor in the same product. These are instance types 3 (Part 303) and 4 (Part 304).
One control device short address can support multiple instances. In the first example, a push-button panel with 8 buttons would normally use only 1 short address (1 logical unit), which is divided into 8 instances numbered 0-7.
Not all application controllers can support the use of input devices. Check with your application controller supplier, as well as the DiiA product database.
Some application controllers can make use of event messages from input devices, for faster response, whilst some may use polling, especially for slow-changing measurements such as light level.
| Weble value | DALI value |
|---|---|
| generic | 0 |
| pushButton | 1 |
| analogInput | 2 |
| occupancySensor | 3 |
| lightSensor | 4 |
%dali:
Reading this address asks the device for its number of instances; the gateway then creates one sub-tree per instance, numbered on two digits:
| Address | Access | Value |
|---|---|---|
%dali:00/D08/instances/03 |
read | all the parameters of instance 3 as one object (reading it refreshes them from the device) |
…/instances/03/type |
read | generic, pushButton, analogInput, occupancySensor or lightSensor |
…/instances/03/scheme |
read / write | event scheme: instance, device, device_instance, device_group or instance_group |
…/instances/03/primaryGroup, …/group1, …/group2 |
read / write | instance groups (0–31) |
…/instances/03/resolution, …/unit |
read | resolution and unit of the input value |
…/instances/03/reportTimer |
read / write | occupancy sensors: report timer in milliseconds |
…/instances/03/holdTimer |
read / write | occupancy sensors: hold timer, read in milliseconds |
…/instances/03/cancelHoldTimer |
write | occupancy sensors: cancels the running hold timer |
…/instances/03/deadtimeTimer |
read | occupancy and light sensors: reported when the instance is read; cannot be changed from the gateway |
…/instances/03/hysteresis, …/hysteresisMin |
read | light sensors: reported when the instance is read; cannot be changed from the gateway |

Hold timer (occupancy sensors). Is the time that must pass before the state “people in the room and no movement” is changed to the state “empty room”. If movement is detected during this time the state is changed back to: “People in the room and movement”.
Report timer. Report timer allows the periodic transmission of sensor events. Every time the report timer expires the current input value is sent as a DALI-2 event (see 3.6).
Deadtime timer. With the deadtime timer, the device blocks the event transmission for a while. It reduces the number of events when they are triggered by changes of the sensor input value. The gateway only reads it.
Event priority. The event priority cannot be read or changed from the gateway.
%dali:
The event scheme determines which information is transferred with the event. This information is required to enable recognition and filtering of events on the bus.
| Value | Description |
|---|---|
| device | The event carries the short address of the device. |
| instance | The event carries the instance number. |
| instance_group | Each instance of an input device can be assigned to up to 3 instance groups (of the 32 instance groups available). The "Primary Group" is used for the event. Instances of different input devices can be assigned to the same instance group. |
| device_instance | Not published by the gateway (see 3.6). |
| device_group | The device can be assigned to up to 32 device groups (0...31). The lowest device group is used for the event. |

To configure the scheme as 'device_group,' make sure the device belongs to a group.
To configure the scheme as 'instance_group,' make sure that instance primary group is set.
DALI 2 input devices (push-buttons, occupancy and light sensors) send events on the bus. The gateway decodes them and creates the matching address automatically the first time an event is received. The address depends on the event scheme configured on the instance:
| Event scheme | Address of the event | Example |
|---|---|---|
device |
%dali:<line>/D<nn>/events/… (short address of the device) |
%dali:00/D08/events/lightSensor |
instance |
%dali:<line>/DI<nn>/events/… (instance number) |
%dali:00/DI03/events/occupancySensor |
instance_group |
%dali:<line>/DIG<nn>/events/… (primary instance group) |
%dali:00/DIG05/events/occupancySensor |
device_group |
%dali:<line>/DG<nn>/events/… (lowest device group) |
%dali:00/DG02/events/lightSensor |
The last part of the address is the instance type (occupancySensor, lightSensor); its value is the raw event information sent by the device. Light sensors also publish …/events/lightSensor/illuminanceLevel. For the other instance types (push-buttons, analog inputs) the raw event information is published on …/events/ itself.
Events sent with the
device_instancescheme are not published by the gateway. Select one of the four schemes above on the instances you want to use.
An event address emits a new value for every event received, even when the value did not change, so it can directly trigger a route or a logic (for example: occupancy event → level of a DALI group or a KNX group address).

%dali:00).The gateway first scans the 64 short addresses of the line, keeps the addresses that are already in use, then gives a free address to every gear that has none. Each gear found appears as %dali:00/A<nn> with its sub-addresses.
Commissioning does not overwrite existing short addresses. To start again from scratch, reset the short addresses first (see below).
DALI 1 Methods › Find existing gears (or DALI 2 Methods › Find existing device) queries the 64 short addresses and creates the addresses of the gears that answer. Nothing is changed on the bus. Use it on a line that was already commissioned with another tool.
DALI 1 Methods › Reset gear short address (or DALI 2 Methods › Reset devices short address) removes the short address of every gear (or device) of the line.
After a reset no gear can be addressed individually any more: the line has to be commissioned again, and the short addresses may be distributed differently.
To remove the short address of a single gear, right-click its row (%dali:00/A14) and choose Remove short address.
Scans, commissioning and resets pause the polling of the line while they run.
Write the level in percent (0–100) to the main address of the target:
| Target | Address | Example |
|---|---|---|
| One control gear | %dali:<line>/A<nn> |
%dali:00/A14 |
| A group | %dali:<line>/G<nn> |
%dali:00/G03 |
| All gears of the line (broadcast) | %dali:<line>/B |
%dali:00/B |
| Gears that have no short address yet | %dali:<line>/BU |
%dali:00/BU |
0 switches the lamp off and 100 is full power. The gateway converts the percentage to the DALI arc power level with the standard logarithmic dimming curve (100 % = 254, 50 % = 229, 1 % = 85); the gear then applies its own fade time and MIN/MAX levels.
After a write to a gear address the gateway queries the actual level and updates:
%dali:00/A14 and %dali:00/A14/value — actual level in percent;%dali:00/A14/level — object {"err": 0, "value": 50}; err is set when the gear reports a lamp error;%dali:00/A14/level/value and %dali:00/A14/level/error — the same two fields as separate addresses.The
/leveladdresses are read-only: write the level to the main address (%dali:00/A14), not to%dali:00/A14/level. The stringsOFFandMASKand raw arc values (0–255) are not supported.
The membership is held by the groups sub-address of the gear:
%dali:
Reading it returns an array of 16 flags, one per DALI group (index 0 = group 0): [1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] means member of group 0 only.
To change the membership, write the complete array back with the flags you want (1 = member, 0 = not member). The gateway compares it with the current membership, sends the add/remove commands only for the groups that differ, then reads the membership again.
Example — add gear 14 to group 2 and keep it in group 0: write [1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0] to %dali:00/A14/groups.
Always write all 16 values.
nullor missing entries stop the processing at that position.
DALI 2 devices use %dali:<line>/D<nn>/groups with an array of 32 flags (device groups 0–31). Always write all 32 values as 0 or 1: the gateway sends the remove and add commands for groups 0–15 and 16–31, then reads the membership back.
A gear or device can belong to several groups.
%dali:[0-9][0-9]/A[0-9][0-9]/onDuration
The counter is computed by the gateway: it adds up the time during which the level of the gear is above 0 and publishes it at the ON duration emit interval of the gateway. It is not read from the gear. Set Store value to always on this address, otherwise the counter restarts from 0 when the gateway restarts.
To reset the counter value, you can write reset, or reset=1000 to set the counter back to 1000 hours.
To change the address of a ballast or device, write the desired address in the corresponding field. Before changing the address, the system will verify if the new address does not already exist. The short address is the /address sub-address (e.g. %dali:00/A14/address).
To physically identify a device, write a value in seconds to the corresponding address of the ballast or device you want to identify. The value represents the number of seconds during which the device can be physically identified. The identification process may vary depending on the manufacturer, but typically, lights will flash, and the devices will have a blinking LED during this phase


| Symptom | Cause | What to do |
|---|---|---|
The gateway restarts; the log shows no serial port resolved |
The Serial Port is empty, or the adapter is not detected. | Check the USB or serial connection and select the Serial Port again. |
The log shows serial port open timed out or failed to open serial port |
The port cannot be opened: wrong port, or used by another gateway. | Select the right port and check that no other gateway uses it. |
| The gateway does not start with Driver = Default | Not a usable interface type. | Select Lunaton LUBA (or Lunaton NO LUBA for an older Lunatone firmware). |
| No gear is found by Find existing gears | The gears have no short address yet, or the line is not powered. | Check the bus power supply, then run Commissionning. |
A gear address shows a timeout status |
The gear does not answer: lamp or driver off the line, wiring, short address changed by another tool. | Check the gear on site; run Find existing gears again. |
Write error invalid value on /address |
The new short address is not a number from 0 to 63. | Write a number from 0 to 63. |
Write error on /onDuration |
The counter is computed by the gateway. | Write reset or reset=<hours> (section 4.4). |
The log shows missing license |
No licence for the DALI driver. | Contact support@weble.ch. |
To read the driver log, open the menu ☰ of the gateway and choose Logs (see Logs of a gateway).