Contents
Home Assistant integrates the presence sensor via MQTT Discovery: the sensor and Home Assistant are connected to the same MQTT broker, and on the sensor the Home Assistant switch is turned on. The sensor then publishes a device description, from which Home Assistant creates a device with presence, motion, stationary person, distance, zone, brightness, temperature, humidity, and air pressure; you set the timeout, LED, alert, and sounds from within Home Assistant. This applies equally to KL LD and KL.
In this guide, <Hauptthema> stands for whatever is entered on the sensor under
Connections → Main topic. Enter your own,
without the angle brackets.
Requirements
- KL LD presence sensor with firmware 1.1.3 or KL with firmware 3.2.3 (older versions also work, see Limitations), set up on Wi-Fi
- Home Assistant with the MQTT integration set up and a broker, e.g., the add-on Mosquitto broker
- a user with a password for the broker (the Mosquitto add-on does not accept anonymous connections)
Setting up the sensor
Sensor web interface → Connections:
| Field | Value |
|---|---|
| Connection type | MQTT Broker |
| Server | IP address of Home Assistant (or of the broker) |
| Port | 1883 |
| Login | Broker user |
| Password | that user's password |
| Client id | unique per sensor; only letters, digits, and _
|
| Main topic | freely selectable; only letters, digits, and _
|
| Home Assistant | turn on |
Save your settings. After a short while, “connected” appears at the bottom of the page. All topics and values are listed in the user manual.
Setup
- In Home Assistant, open Settings → Devices & services → MQTT.
- The sensor appears there as a new device, under the name set on the sensor under System → Sensor name (model “Presence Sensor KL LD” or “Presence Sensor KL”).
The device comes with 23 entities:
| Area | Entity | Meaning |
|---|---|---|
| Sensors | Presence | Presence: person detected, moving or stationary |
| Sensors | Motion | moving person detected |
| Sensors | Stationary | stationary person detected |
| Sensors | Distance | Distance of the detected person in cm, 0 = nobody |
| Sensors | Motion Distance, Stationary Distance | Distance of the moving or stationary target in cm |
| Sensors | Zone | Name of the zone the person is in; - = none |
| Sensors | Brightness | Brightness in lx |
| Sensors | Temperature, Humidity, Air Pressure | °C, %, hPa |
| Controls | Siren | Alarm sound on/off |
| Controls | Sound notification | play a sound, optionally with a duration |
| Configuration | Timeout | Timeout in s |
| Configuration | Distance resolution | Distance resolution |
| Configuration | Installation |
Top mounted = ceiling, Side mounted = wall |
| Configuration | Alert | Alert: OFF, WITH PRESENCE, WITH NO PRESENCE
|
| Configuration | Sound | Alarm sound |
| Configuration | Led | LED on/off |
| Configuration | Calibration (KL LD) or Auto configuration (KL) | Learn the thresholds |
| Diagnostics | IP, Start, RSSI | Address, last start, Wi-Fi signal strength in dBm |
The entities are in English. You can rename any of them in Home Assistant. Brightness, temperature, humidity, and air pressure arrive with the sensor's Publish interval, everything else immediately on every change.
Quick test
- Leave the detection area and wait for the timeout to run out: Presence turns off, Zone shows
-. - Walk in: Presence turns on after a short time, Distance and Zone follow you.
- In Home Assistant, toggle Led: the LED on the sensor follows.
Optional
-
Light on presence: Automation with the trigger “State” on Presence. You set the timeout on the sensor (Timeout), not in the automation.
-
Detecting a failure: If the sensor fails, all entities become “unavailable” after a good 20 seconds. You can base an automation on that.
-
Sparing the database: The distances change several times per second while someone is moving. If you do not need their history, exclude them from recording in
configuration.yaml.<gerät>is the first part of the entity ID, as Home Assistant shows it for Presence (forbinary_sensor.flur_presencethat isflur):recorder: exclude: entity_globs: - sensor.<gerät>_*distance -
Second sensor: Assign a separate Client id and a separate main topic, otherwise the devices overwrite each other.
Limitations
- Presence, Motion, and Stationary are treated by Home Assistant as motion sensors. If you would rather read “occupied/clear”, choose a different display in the entity settings, e.g., Occupancy.
- Calibration (KL LD) cannot be canceled: switching it off has no effect, and the switch turns off by itself when the calibration is finished.
- Auto configuration (KL) depends on the radar firmware. From V2.44, the radar measures by itself for about half a minute, switching it off has no effect, and during this time the KL reports Presence as “off”. Automations on “clear” then trigger. With older radar firmware, the KL keeps learning until you switch the switch off. Presence remains valid during this time.
- On the KL, the range in gates is not available as an entity. It is set in the sensor's web interface.
- If the Home Assistant switch on the sensor is turned off again, the device stays in Home Assistant. Delete it there manually.
- Older firmware (KL LD up to 1.1.2, KL up to 3.2.2): After a restart of the sensor, Presence may show the old value until the presence changes. Update the firmware.
Verification status
Tested with Home Assistant 2026.10.2 and sensor firmware KL LD 1.1.3 and KL 3.2.3.