Contents
What the sensor sends and accepts via MQTT, and what it returns via HTTP. The guides for the individual smart home systems refer to this page; current as of firmware 4.2.8.
In all examples, <Hauptthema> stands for whatever is entered on the sensor under
Connections → Main topic, without the angle brackets: with main topic zisterne that gives stat/zisterne/REL_LEVEL.
Settings on the sensor
Sensor web interface → Connections:
| Field | Value |
|---|---|
| Connection type | MQTT Broker |
| Server | Name or IP address of the broker |
| Port |
1883 (with encryption, usually 8883) |
| Login / Password | only if the broker requires them |
| Client id | unique per device; only letters, digits, _
|
| Main topic | freely selectable; we recommend only letters, digits, _
|
| Publish interval | Interval of the complete status message, factory default 5 min |
| Encryption | TLS, if the broker requires it |
| Home Assistant | MQTT Discovery (only for systems that understand it) |
The sensor is always an MQTT client (MQTT 3.1.1). It needs a broker: either the one on your hub or one of your own (e.g., Mosquitto).
What the sensor sends
All messages are retained: anyone who connects later immediately receives the latest value.
Individual values: stat/<Hauptthema>/…
Plain text, one value per topic. Sent when the connection is established and afterward whenever the value changes.
| Topic | Meaning | Example |
|---|---|---|
stat/<Hauptthema>/REL_LEVEL |
Fill level in %; with tank geometry, the volume fraction; for horizontal cylinders, spheres, and tables, with one decimal place | 50 |
stat/<Hauptthema>/LEVEL |
Fill height in cm | 75.0 |
stat/<Hauptthema>/FILLING |
Volume in liters; without tank geometry: empty | 2250.0 |
stat/<Hauptthema>/DISTANCE |
Distance sensor → surface in cm | 105.0 |
stat/<Hauptthema>/ALERT |
MIN, MAX or empty (no alert) |
MIN |
stat/<Hauptthema>/PROBLEM |
Sensing element returns nothing |
True / False
|
stat/<Hauptthema>/OUT_OF_RANGE |
Measured value outside the tank |
True / False
|
stat/<Hauptthema>/STRENGTH |
Signal strength of the sensing element | 1200 |
stat/<Hauptthema>/MINI, MAXI
|
Alert limits in % |
0, 100
|
stat/<Hauptthema>/HYST_MIN, HYST_MAX
|
Hysteresis in percentage points | 0 |
stat/<Hauptthema>/ALERT_MIN, ALERT_MAX
|
Alert switched on/off |
True / False
|
stat/<Hauptthema>/TOP2SURFACE, TOP2BOTTOM
|
Distances full / empty in cm |
30, 180
|
stat/<Hauptthema>/READ_INTERVAL |
Update interval in s | 5 |
Peculiarities that cause integrations to fail:
-
Boolean values are written
TrueandFalse(capital first letter), nottrue/ON/1. -
ALERTis an empty message when there is no alert. An empty retained message deletes the stored value at the broker; some systems then keep showing the old value. - A measured value that is not currently available is also sent empty.
-
The temperature is not available under
stat/, only in the JSON (see below).
Complete status: tele/<Hauptthema>/STATE
JSON, every Publish interval seconds and on the command UPDATE:
{"rel_level": 50, "level": 75.0, "filling": 2250.0, "distance": 105.0,
"temperature": 12.5, "strength": 1200, "problem": false, "out_of_range": false,
"mini": 0, "maxi": 100, "hyst_min": 0, "hyst_max": 0,
"alert_min": true, "alert_max": true,
"top2surface": 30, "top2bottom": 180, "read_interval": 2,
"mqtt_publish_interval": 30, "wifi_on": "0:00", "wifi_off": "0:00",
"powersave": false, "name": "Zisterne", "ip": "192.168.1.50", "signal": -52,
"boot": "21.11.2026 13:16", "version": "4.2.8 / 1.21.0 (S3) - LiDAR",
"language": "EN"}
- In the JSON, boolean values are true JSON values (
true/false). -
alertappears only in the JSON, while an alert is active ("MIN"/"MAX"); without an alert, the field is absent. The same applies to measured values that currently do not exist. -
signalis the Wi-Fi signal strength in dBm. - In the wake cycle of power saving mode,
sleepis added: seconds until the next wake-up.
Availability: tele/<Hauptthema>/LWT
Online after connecting, Offline as the Last Will (keepalive 15 s) when the connection drops. In power saving mode, the sensor logs off properly before going to sleep, so it stays Online, even though it is asleep.
What the sensor accepts: cmnd/<Hauptthema>/…
| Topic | Value |
|---|---|
cmnd/<Hauptthema>/UPDATE |
any value; immediately triggers a STATE message |
cmnd/<Hauptthema>/MINI, MAXI
|
0…100 (%) |
cmnd/<Hauptthema>/HYST_MIN, HYST_MAX
|
0…100 (percentage points) |
cmnd/<Hauptthema>/ALERT_MIN, ALERT_MAX
|
ON / OFF
|
cmnd/<Hauptthema>/TOP2SURFACE, TOP2BOTTOM
|
LiDAR 10…1200, radar 15…4000 (cm) |
cmnd/<Hauptthema>/READ_INTERVAL |
1…60 (s) |
cmnd/<Hauptthema>/MQTT_PUBLISH_INTERVAL |
1…86400 (s) |
cmnd/<Hauptthema>/WIFI_ON, WIFI_OFF
|
HH:MM (also HH:MM:SS); the sensor rejects other values. Up to firmware 4.2.8, a plain number or ON/OFF terminated the application, and the sensor restarted |
cmnd/<Hauptthema>/POWERSAVE |
OFF, with the retain flag |
Send numbers without a unit and without decimal places. The sensor discards invalid values; for limits, hysteresis, alert switches, distances, and
READ_INTERVAL it reports back the value that remains valid under stat/… (example: MINI is set to 20, MINI 150 → stat/…/MINI 20). It does not acknowledge the other commands; their value appears in the next STATE. In addition, TOP2SURFACE must be smaller than TOP2BOTTOM, and between MINI and MAXI
there must be room for the hysteresis. The alert switches accept, besides
ON/OFF also True/False. Commands must not be sent retained (exception:
POWERSAVE), otherwise the broker repeats them on every login.
Home Assistant Discovery
With the Home Assistant switch turned on, the sensor publishes 22 entries under homeassistant/<Art>/<Client Id>_<Name>/config (retained): 11 sensor,
2 binary_sensor, 7 number, 2 switch. Systems that read the Home Assistant discovery format create the device from them on their own.
Without MQTT: HTTP
http://<IP des Sensors>/measurements returns the measured values as JSON, without a broker:
{"rel_level": 50, "level": 75.0, "filling": 2250.0, "distance": 105.0,
"temperature": 12.5, "strength": 1200, "problem": false,
"out_of_range": false, "alert": "-"}
Here, alert is always included, without an alert as "-". A measured value that does not currently exist also arrives as the text "-" (e.g., filling without tank geometry): anyone querying it should therefore check whether a number came back. If, on the sensor under
System the Authentication switch is on, the credentials go onto the address:
/measurements?login=<Login>&password=<Passwort> (or HTTP Basic Auth). Nothing can be configured via HTTP. In power saving mode, the sensor responds only while it is awake.
Verification status
Applies to sensor firmware 4.2.8 and newer.