PIR plus radar triggering: wake fast, clear slowly
PIR reacts to a sudden infrared change; radar sees small movement and still presence. Combine them with asymmetric filters instead of fighting one sensor.
The two sensors fire for different reasons
The ESPHome PIR cookbook describes a passive infrared sensor as measuring infrared light emitted by objects in its field of view. A sudden change between different parts of that area pulls the signal high. Typical modules expose two knobs: one for sensitivity and one for how long the output stays active after motion.
The AirTouch AT581x component in ESPHome describes a 5.8 GHz radar, which is microwave rather than millimetre-wave. It detects tiny movements and, compared with a PIR sensor, can detect presence continuously. The documented motivation is to turn lights on when someone enters, keep them on while that person sits still, and switch off shortly after they leave. Its settings are not kept in non-volatile memory and must be applied again on every boot.
These are different physical triggers, not two versions of the same output. A PIR can stay quiet when an occupant is still. A radar can react to small motion in its field, which is why zone-capable modules provide interference areas to mask fans, air conditioners and curtains. The hybrid pattern uses each sensor for what it sees clearly.
Make the hold asymmetric
ESPHome binary sensor filters define the timing semantics directly. delayed_on waits before publishing an ON state and discards the ON if an OFF arrives during the wait. delayed_off waits before publishing an OFF and discards the OFF if an ON arrives. delayed_on_off accepts separate time_on and time_off values. settle publishes a state immediately, then holds subsequent changes for the configured period.
A practical starting point is to let the PIR produce a fast ON with a short debounce, and let the radar hold the combined state with a longer delayed_off. The values below are configuration examples, not tested timings.
binary_sensor:
- platform: gpio
id: pir_motion
filters:
- delayed_on: 300ms
- platform: gpio
id: radar_presence
filters:
- delayed_off: 2min
Watch for a filter override that is easy to miss. The ESPHome LD2450 component adds a settle filter of 1000 ms to its presence binary sensors to avoid flooding Home Assistant with state updates. Defining any filters of your own replaces that default. If you replace it, add the settle behaviour back unless you have measured that the host can handle the update rate.
Keep zone choice out of the timing decision
If the radar exposes zones, decide which area feeds the hold before tuning delays. In the LD6002B component, detection areas are stored in the module and persist across power cycles, while interference areas mask known noise sources. An area binary sensor is cleared when the module enters unattended low-power mode, unless a target is still being tracked at that moment. That rule belongs in the integration design, because a low-power transition can otherwise look like an abrupt vacancy.
Use a single combined entity for automation and keep the raw sensor states visible for diagnostics. If the lights turn off too early, inspect the raw radar trace before increasing the hold: a masked fan or a zone boundary is a more likely cause than a filter that is too short.
Validate three transitions
Walk three cases before commissioning: a person sitting still in view, a fan or curtain moving with nobody present, and a normal exit from the room. Record the raw PIR state, the raw radar state and the combined output for each. Tune sensitivity and zones first, then the two delays. Changing a delay cannot fix a sensor whose detection area is aimed at the wrong part of the room.
No hardware was bench tested for this chapter. All timings and behaviours above come from official component documentation and must be confirmed in the target room.