Contents
Domoticz integrates the presence sensor via MQTT. It reads the sensor's Home Assistant discovery and creates the devices from it: the presence as a motion sensor, plus motion, stationary person, the distances in cm, the zone, brightness, temperature/humidity/air pressure and switches for the LED and the siren. Domoticz does not support the selection fields (resolution, installation, sound, alert). You make these settings in the sensor's web interface. To make the zone also show “nobody there”, add a short script. This applies equally to KL LD and KL.
In the topics, <Hauptthema> stands for the value entered on the sensor under
Connections → Main topic. Replace it with your own value, without the angle brackets.
The names are those of the English interface (Domoticz default setting). The German translation is incomplete and sometimes differs.
Prerequisites
| Item | Requirement |
|---|---|
| Domoticz | 2026.4 (tested). The hardware “MQTT Auto Discovery Client Gateway with LAN interface” must be available |
| MQTT broker | e.g. Mosquitto, reachable from Domoticz and from the sensor |
| Sensor | KL LD with firmware 1.1.3 or KL with firmware 3.2.3 (older versions, see Limitations) |
Domoticz does not include a broker of its own.
Setting up the sensor
Sensor web interface → Connections. The manual explains all fields.
| Field | Value |
|---|---|
| Connection type | MQTT Broker |
| Server, port | those of the broker |
| Login, password | only if the broker requires them |
| Client id | unique for each sensor; letters, digits and _ only
|
| Main topic | free choice; letters, digits and _ only
|
| Home Assistant | switch on |
The devices in Domoticz are named after the entry System → Sensor name. Enter a meaningful name there before you set up Domoticz.
Setup
-
In Domoticz, open Setup → Hardware and fill in:
Field Value Name free, e.g. MQTT-ADType MQTT Auto Discovery Client Gateway with LAN interfaceData Timeout DisabledRemote Address Name or IP address of the broker Port 1883Username / Password only if the broker requires them Auto Discovery Prefix homeassistantIf you already have this hardware (for other devices, for example), do not create a second one. The sensor appears there automatically.
-
Click Add. Domoticz connects and creates the devices immediately. They are called
<Sensor Name> (…), for exampleFlur (Presence). -
Open Setup → Devices. The following are now listed there:
Device Type in Domoticz Example Usable … (Presence)Switch, Motion Sensor Onyes: the presence … (Motion)Switch, Motion Sensor Offyes: moving person … (Stationary)Switch, Motion Sensor Onyes: stationary person … (Distance)Distance 250.0 cmyes: distance of the person, 0.0 cm= nobody… (Motion Distance),… (Stationary Distance)Distance 171.0 cmyes, change very often … (Zone)Text Shortlimited: stays as it is when nobody is there, see Optional … (Zone)Custom Sensor 0no: created the first time the room is empty, see Limitations <Sensor Name>(without suffix)Temp + Humidity + Baro 21.5 C, 48 %, 1014.4 hPayes … (Brightness)Lux 232 Luxyes … (Led)Switch, On/Off Offyes: switches the LED … (Siren)Switch, On/Off Offyes: siren on/off … (Calibration)(KL LD) or… (Auto configuration)(KL)Switch, On/Off Offyes: On starts the calibration, see Limitations … (Start)Text 21.11.2026 17:36yes, diagnostics … (Distance resolution),… (Installation),… (Sound),… (Alert)Selector 0.75 mno, see Limitations … (IP)Custom Sensor 192.168no In the device list, set anything you do not need to unused, the four selector devices in any case.
If nothing appears: under Setup → Settings the option Accept new Hardware Devices must be switched on, and on the sensor the switch Home Assistant.
Quick test
-
Setup → Log: For each entry of the sensor there is a line
MQTT-AD: Discovered: <Sensor Name>/<Sensor Name> (Presence) …. - Walk up and down in front of the sensor:
… (Presence)and… (Motion)go toOn,… (Distance)shows your distance. Leave the room: After the sensor's timeout, both go toOffand the distance to0.0 cm. - Switch on
… (Led): The LED on the sensor lights up.
Optional
Zone “nobody there”. If the room is empty, the sensor sends - as the zone;
Domoticz creates a second device for it and leaves the last zone in the text
device. The following script sets the text device to - as soon as the
presence goes to Off:
-
Setup → Settings: Under Location, enter latitude and longitude. Without a location, Domoticz does not run dzVents scripts.
-
Setup → Devices: Note the number in the Idx column of
… (Presence)and of… (Zone)with the type Text. -
Setup → More options → Events: Create a new dzVents script with this content (replace the two numbers with yours):
local PRESENCE = 14 -- Idx of '… (Presence)' local ZONE = 57 -- Idx of '… (Zone)' of type Text return { on = { devices = { PRESENCE } }, execute = function(domoticz, presence) local zone = domoticz.devices(ZONE) if presence.state == 'Off' and zone.text ~= '-' then zone.updateText('-') end end }When someone comes back, the sensor writes the new zone into it by itself.
Changing the timeout. Setup → Hardware, on the MQTT hardware click
Setup: The table Configuration shows … (Timeout) in seconds.
Select the row, enter a whole number (KL LD 5 to 300,
KL 0 to 300), then click Update.
Playing a sound or setting a selection. On the same page there is Publish Message. With it you send a command directly to the sensor:
| Field | Value |
|---|---|
| Topic | cmnd/<Hauptthema>/PLAY |
| QoS | 0 |
| Retain | leave off |
| Payload | Sound number, e.g. 5 (Gong); STOP ends it |
Likewise, e.g. cmnd/<Hauptthema>/SOUND with 0 to 14 or
cmnd/<Hauptthema>/BUZZER with 0, 1, 2. All commands and sound numbers
are listed in the manual.
Limitations
-
The selector devices are not usable.
… (Distance resolution),… (Installation),… (Sound)and… (Alert)always show the first choice (Domoticz does not translate the sensor's number and reports “doesn't have the option for received STATE” in the log). If you choose something there, Domoticz sends the text (e.g.Side mounted) instead of the number. The sensor discards it. Set these values in the sensor's web interface. -
No device for “Sound notification”. Domoticz does not know the device type
siren. Sounds only via Publish Message (see above). You can switch the siren
on and off via
… (Siren). -
Zone in two devices. Domoticz creates a text device for zone names and,
for
-, a number device (0). Without the script, the text device keeps the last zone, even when nobody is there any more. -
Calibration cannot be cancelled (KL LD,
… (Calibration)): Switching it off jumps back toOnuntil the sensor has finished. On the KL,… (Auto configuration)ends by itself after about half a minute or when switched off, depending on the radar firmware. During this time, the KL reports the presence asOff. -
No “offline”. If the sensor fails, the last values remain,
including the presence. Domoticz does not evaluate the availability message. One
indication: On the device
<Sensor Name>(temperature), “Last Seen” advances with every Publish interval. If the time stands still, the sensor is no longer sending. -
Distances arrive very often (several times per second when people are walking).
Domoticz processes every message. For rules, use
… (Presence). - In the table Configuration, Domoticz passes on decimal numbers unchanged. The sensor discards them. Enter whole numbers.
- The Wi-Fi signal strength is not created as a device, and the IP address only in truncated form. Range in gates (KL) is not available as a device.
- 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 first change. Update the firmware.
Residual risk: Individual device types may differ in other Domoticz versions.
Verification status
Tested with Domoticz 2026.4 and sensor firmware KL LD 1.1.3 and KL 3.2.3.