The presence sensor is integrated into KNX via a bridge: it sends over Wi-Fi via MQTT and HTTP, and KNX knows neither. The bridge writes the sensor's messages to group addresses. The simplest bridge is the hub that is already connected to your bus. If there is none, use Node-RED on a small computer. Presence, brightness and room climate, and depending on the bridge also the zone, are then available as ordinary group addresses for lighting, heating and visualization, in the direction sensor → bus. This applies equally to KL LD and KL.
In the topics, <Hauptthema> stands for whatever is entered on the sensor under Connections → Main topic; replace it with your own value. The group addresses are examples.
Group addresses and datapoint types
In the ETS, create one group address for each value:
| Value | Source on the sensor | Conversion | Group address (example) | Datapoint type |
|---|---|---|---|---|
| Presence | stat/<Hauptthema>/PRESENCE |
True → 1, False → 0 |
6/0/1 |
DPT 1.018 (occupancy) |
| Zone | stat/<Hauptthema>/ZONE |
Text, - = no zone |
6/0/2 |
DPT 16.001 (text, 14 characters) |
| Brightness in lx |
brightness from tele/<Hauptthema>/STATE
|
none | 6/0/3 |
DPT 9.004 (lux) |
| Temperature in °C |
temperature from tele/<Hauptthema>/STATE
|
none | 6/0/4 |
DPT 9.001 |
| Humidity in % |
humidity from tele/<Hauptthema>/STATE
|
none | 6/0/5 |
DPT 9.007 |
| Air pressure in Pa |
pressure from tele/<Hauptthema>/STATE
|
hPa × 100 | 6/0/6 |
DPT 14.058 (pressure) |
| Distance in mm (optional) | stat/<Hauptthema>/DETECTION_DIST |
cm × 10, throttled (see Limitations) | 6/0/7 |
DPT 7.011 (length in mm) |
| Sensor available (optional) | tele/<Hauptthema>/LWT |
Online → 1, Offline → 0 |
6/0/8 |
DPT 1.002 |
Presence arrives on every change, brightness and room climate with the sensor's Publish interval. All topics and values of the sensor are listed in the user manual.
Bridge
First integrate the sensor following the instructions for your hub, then pass the values on to the group addresses using its KNX connection:
| Bridge | Integrate the sensor | Send to the bus |
|---|---|---|
| Home Assistant | Home Assistant: Integrating the KL LD and KL presence sensors | KNX integration, expose
|
| ioBroker | ioBroker: Integrating the KL LD and KL presence sensors | KNX adapter |
| openHAB | openHAB: Integrating the KL LD and KL presence sensors | KNX binding |
| Node-RED | Node-RED: Integrating the KL LD and KL presence sensors | Appendix on that page, with ready-made nodes |
Limitations
- The bridge is an additional device: if it or the broker goes down, the last value stays on the bus without KNX noticing. For that reason, put the availability on the bus as well.
- Only put the distance on the bus throttled (e.g., at most every 10 s) or not at all: as long as someone is moving, it changes several times per second. For lighting and heating, presence is sufficient.
- DPT 16 cuts off zone names longer than 14 characters.
- Presence is sent on change, not cyclically as with many KNX presence sensors. If an actuator needs a cyclic telegram, the bridge must repeat it.
- Older firmware (KL LD up to 1.1.2, KL up to 3.2.2): after the sensor restarts, the old presence value may remain until the next change. Update the firmware.
- Only the direction sensor → KNX is described.
Verification status
Guide created on the basis of the knx-ultimate documentation.