Contents
The 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, detection zones, number of people, brightness, and room climate are then available as ordinary group addresses for lighting, heating, and visualization, in the direction sensor → bus.
Placeholders in the topics:
-
<Hauptthema>stands for whatever is entered on the sensor under Connections → Main topic. -
<ZONE1>…<ZONE4>stand for the names of detection zones 1 to 4, as they appear in the topic: in uppercase (SofabecomesSOFA).
Replace them with your own values. The group addresses are examples.
Setting up the sensor
Name the detection zones in use under Zones → Zone names, using only letters, digits, and _, without spaces (e.g., Sofa). The name becomes part of the topic. Do not change it afterwards, otherwise the bridge receives nothing more for this zone. Set up the connection to the broker following the instructions for your bridge (table below).
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 1 occupied | stat/<Hauptthema>/ZONES/<ZONE1> |
True → 1, False → 0, ignore empty |
6/0/11 |
DPT 1.018 |
| Zones 2 … 4 occupied |
stat/<Hauptthema>/ZONES/<ZONE2> … |
as zone 1 |
6/0/12 … 6/0/14
|
DPT 1.018 |
| Number of people | stat/<Hauptthema>/DETECTION |
none | 6/0/2 |
DPT 5.010 (counter pulses 0–255) |
| 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) |
| Sensor available (optional) | tele/<Hauptthema>/LWT |
Online → 1, Offline → 0 |
6/0/8 |
DPT 1.002 |
Presence, zones, and number of people arrive 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 MZ multi-zone presence sensor | KNX integration, expose
|
| ioBroker | ioBroker: Integrating the KL MZ multi-zone presence sensor | KNX adapter |
| openHAB | openHAB: Integrating the KL MZ multi-zone presence sensor | KNX binding |
| Node-RED | Node-RED: Integrating the KL MZ multi-zone presence sensor | 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.
- Presence and zones are sent on change, not cyclically as with many KNX presence sensors. If an actuator needs a cyclic telegram, the bridge must repeat it.
- For unused detection zones and for the old name of a renamed zone, the sensor sends an empty message. The bridge must not turn it into a telegram.
- The timeout is already included in presence and zones (set on the sensor: Room timeout, Timeout per zone). The number of people comes without a timeout.
- Only the direction sensor → KNX is described.
Verification status
Integrating the sensor into the hubs mentioned has been tested.