From radar UART frames to Home Assistant entities

A radar module speaks frames over UART; Home Assistant speaks entities. ESPHome is the layer between, and the configuration depends on the module family.

These notes compare the official ESPHome component documentation with the module datasheets. They are editorial integration guidance, not bench measurements.

Start with the UART, because it is not universal

Both component pages require a UART and document the same electrical settings: parity NONE and stop bits 1. Those two are not optional, and a module that answers nothing is often wired to a UART configured differently rather than to a dead board.

The baud rate is where the documentation disagrees:

Two official sources therefore give two different defaults for the LD2410 name. Check the part marking and the firmware version on the board, then set the rate that board actually uses. Do not copy a configuration from another 24 GHz module.

A working skeleton looks like this, with the rate set to what the module documents:

uart:
  id: radar_uart
  tx_pin: GPIO17
  rx_pin: GPIO16
  baud_rate: 256000
  parity: NONE
  stop_bits: 1

ld2410:
  id: radar
  uart_id: radar_uart

Software serial is the usual cause of a parser that works for a minute and then reports garbage: at 256000 baud the bit timing is tight, and the component documentation recommends hardware pins for exactly that reason.

What LD2410 exposes

The component publishes presence as binary sensors for a moving target, a still target and either target, plus an OUT-pin state where the board has one. It publishes moving distance, still distance, detection distance and moving or still energy as sensors.

Engineering mode is the useful part. It exposes the energy of each distance gate, so a host can see which slice of range is producing a trigger instead of guessing a global sensitivity value. The documentation is explicit that engineering mode costs more resources and is not recommended when it is not needed, which in practice means: enable it for tuning, disable it for the installed device.

The number entities are the control surface: a timeout, a light threshold, the maximum move and still distance gates, and a move and still threshold for each of the nine gates. Those are the same values a vendor app edits, exposed as Home Assistant entities.

What LD2450 exposes

The LD2450 component publishes the same three presence states and adds target counts: presence target count, still target count and moving target count. Per-target X, Y and speed sensors are available for up to three targets, and three zones can each report their own target counts.

Two consequences:

A zone count is a count, not an identity. Two targets in zone 1 means the module counted two, not that it tracked the same two people across a doorway.

What a pre-flashed kit changes

The Seeed MR60FDA2 and MR60BHA2 kits ship with a XIAO ESP32C6 running ESPHome and a radar UART at 115200. Adopting the host is fast, but Seeed states that the radar raw data and algorithms are non-open source. You can configure the host entities; you cannot change the radar signal processing.

That boundary is worth writing down before a project depends on it. A kit that reports a fall event is not a platform for building a different fall detector.

Check the entity list before designing an automation

The automation needs The entity to look for Available on
Lights on while someone is present Presence or either-target binary sensor All three families
Ignore a fan or vent Per-gate energy plus per-gate thresholds LD2410
Direction-aware logic Per-target X and Y LD2450
Count people in an area Zone target counts LD2450
Fall alarm A fall event from kit firmware MR60FDA2
Breathing or heart rate Vital-sign entities from kit firmware MR60BHA2

If the row you need is missing, the module family is wrong for the job, and no amount of YAML will add the entity.

Verify the integration, not the build

A successful compile proves the configuration parses. It does not prove the module answers. Three checks in order:

  1. Watch the raw sensors change when a person moves; a distance that never changes means the UART is silent or the wrong rate.
  2. Toggle engineering mode and confirm per-gate energy appears; no energy means the module does not support that mode or is not the family you configured.
  3. Restart the host with the module unplugged and confirm the entities go unavailable rather than showing the last value forever.

The third check is the one that prevents an automation from acting on a stale reading after a cable fault.

Related reading