What Zigbee2MQTT really exposes for radar sensors
Zigbee2MQTT publishes a fixed set of attributes, and for a radar occupancy sensor that set is far smaller than the radar data itself. The bridge does not forward clusters; it forwards whatever the device converter in the bridge defines as exposes.
This guide uses the official Zigbee2MQTT device page for the SONOFF SNZB-06P and the official component documentation for the LD2410 and LD2450 modules. It is not a bench test.
The four exposes on the SNZB-06P page
The official page lists exactly four:
| Expose | Type | Direction | Range or values |
|---|---|---|---|
| occupancy | binary | read | true or false |
| occupancy_timeout | numeric | read and write | 15 to 65535 |
| occupancy_sensitivity | enum | read and write | low, medium, high |
| illumination | enum | read only | dim, bright |
Two details matter more than the list.
The sensitivity expose is a three-step enum, not a number. Any metre figure for those steps that appears in a vendor app or a shop page is not part of the bridge contract; the bridge only guarantees that three named levels can be selected.
Illumination is updated when occupancy is detected, not on a schedule. It is a dim or bright category, not a lux reading, so it cannot drive a light-level automation that expects a measurement.
The timeout is the device-side hold time: after motion stops, occupancy stays true for that many seconds before clearing. It is not a freshness timer for the bridge.
Timeout is not availability
These two numbers are routinely confused, and the confusion produces false alarms in both directions.
- Occupancy timeout is stored in the sensor. It defines how long the presence state remains true.
- Availability is a bridge feature. Zigbee2MQTT publishes online or offline to a separate topic, using a ping and a timeout for mains-powered devices and a longer silence window for battery devices.
The documented defaults are 10 minutes for an active device and 1500 minutes, about 25 hours, for a passive one, and the timeout persists across bridge restarts. Per-device overrides exist, so one sensor can be given a shorter threshold without changing the whole network.
That is why a value that has not changed for an hour proves nothing: occupancy false is a legitimate state, and old data is not the same as a dead device.
What is missing from the list, and why
There is no distance gate, no per-gate energy, no target coordinate, no zone and no point cloud. Four reasons:
- The device is a finished Zigbee product with a small cluster set, not a radar development board.
- The bridge only exposes clusters that its converter handles.
- The SNZB-06P uses 5.8 GHz microwave sensing, which is not mmWave radar; the signal chain that would produce gates is not the one in an L2 module.
- Gate-level data has no standard Zigbee cluster to travel in, so even a device that computed it would need a vendor-specific attribute.
Comparing three depths of exposure
| Device and path | Presence | Distance or gates | Coordinates | Notes |
|---|---|---|---|---|
| SNZB-06P over Zigbee2MQTT | occupancy, timeout, sensitivity | none | none | Room-level trigger, four exposes |
| LD2410 over ESPHome | moving, still, either target | moving, still and detection distance; per-gate energy in engineering mode | none | Also exposes per-gate thresholds, max distance gates and a light threshold |
| LD2450 over ESPHome | presence plus target counts | distance per target | X and Y per target, up to three targets, plus per-zone counts | Needs a recent module firmware |
The comparison explains a common disappointment: a user buys a finished Zigbee sensor, then discovers that the automation they designed needs gate energy. The sensor is not faulty, the output class is different.
Getting gate data into MQTT anyway
If the automation genuinely needs gates or coordinates, the path changes rather than the bridge:
- Put an LD2410 or LD2450 on a host MCU, parse the UART frames, and publish your own MQTT topics. ESPHome does this over Wi-Fi and documents the entity set.
- Keep the payload schema under your control, because the module does not define one. Publish gate energy per gate, not a single sensitivity number.
- Record the firmware version in the payload or the topic, since gate counts and ranges differ between module families.
A vendor gateway can also expose a subset of radar data, but treat its feature list the same way: only what the gateway publishes is usable, and a vendor app screen is not a published interface.
A check that takes two minutes
- Open the exact device page on the Zigbee2MQTT site and read the exposes list.
- Write down the attribute your automation needs.
- Publish a get request to the device topic with that property name.
- If the reply does not contain it, the bridge will not publish it, whatever the vendor app shows.