Domoticz: Integrating the KL LD and KL presence sensors

Learn how to integrate the KL LD and KL presence sensors into Domoticz, with all settings on the sensor and on the hub.

Applies to KL LD and KL · Sensor firmware KL LD 1.1.3, KL 3.2.3 and newer · As of 12/5/2026

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

  1. In Domoticz, open Setup → Hardware and fill in:

    Field Value
    Name free, e.g. MQTT-AD
    Type MQTT Auto Discovery Client Gateway with LAN interface
    Data Timeout Disabled
    Remote Address Name or IP address of the broker
    Port 1883
    Username / Password only if the broker requires them
    Auto Discovery Prefix homeassistant

    If you already have this hardware (for other devices, for example), do not create a second one. The sensor appears there automatically.

  2. Click Add. Domoticz connects and creates the devices immediately. They are called <Sensor Name> (…), for example Flur (Presence).

  3. Open Setup → Devices. The following are now listed there:

    Device Type in Domoticz Example Usable
    … (Presence) Switch, Motion Sensor On yes: the presence
    … (Motion) Switch, Motion Sensor Off yes: moving person
    … (Stationary) Switch, Motion Sensor On yes: stationary person
    … (Distance) Distance 250.0 cm yes: distance of the person, 0.0 cm = nobody
    … (Motion Distance), … (Stationary Distance) Distance 171.0 cm yes, change very often
    … (Zone) Text Short limited: stays as it is when nobody is there, see Optional
    … (Zone) Custom Sensor 0 no: created the first time the room is empty, see Limitations
    <Sensor Name> (without suffix) Temp + Humidity + Baro 21.5 C, 48 %, 1014.4 hPa yes
    … (Brightness) Lux 232 Lux yes
    … (Led) Switch, On/Off Off yes: switches the LED
    … (Siren) Switch, On/Off Off yes: siren on/off
    … (Calibration) (KL LD) or … (Auto configuration) (KL) Switch, On/Off Off yes: On starts the calibration, see Limitations
    … (Start) Text 21.11.2026 17:36 yes, diagnostics
    … (Distance resolution), … (Installation), … (Sound), … (Alert) Selector 0.75 m no, see Limitations
    … (IP) Custom Sensor 192.168 no

    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

  1. Setup → Log: For each entry of the sensor there is a line MQTT-AD: Discovered: <Sensor Name>/<Sensor Name> (Presence) ….
  2. Walk up and down in front of the sensor: … (Presence) and … (Motion) go to On, … (Distance) shows your distance. Leave the room: After the sensor's timeout, both go to Off and the distance to 0.0 cm.
  3. 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:

  1. Setup → Settings: Under Location, enter latitude and longitude. Without a location, Domoticz does not run dzVents scripts.

  2. Setup → Devices: Note the number in the Idx column of … (Presence) and of … (Zone) with the type Text.

  3. 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 to On until 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 as Off.
  • 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.

Next

Manual

KL LD presence sensor

Mounting, connecting to Wi-Fi, setting up.

Manual

KL presence sensor

Mounting, connecting to Wi-Fi, setting up.

Smart home

All systems

An overview of the guides for all presence sensors and systems.

Support

Help and contact

Phone, email and contact form.