Corner Presence Box: 24 GHz Radar, 60 GHz Radar and PIR on One ESP32-C3

Corner Presence Box: 24 GHz Radar, 60 GHz Radar and PIR on One ESP32-C3. AutoMatter

A builder on the Home Assistant community forum has posted a corner presence box that tries to solve the oldest complaint about presence sensing: lights that stay off on someone sitting still, or stay on in an empty room. It is a one-off DIY project, not a product, and it is early. Here is what it does and what an installed system can learn from it.

What was built

One XIAO ESP32-C3 board runs three sensors that fail in different ways: a Panasonic PIR (fires only for a warm body moving), an HLK-LD2412 24 GHz radar (moving or still, longer reach) and an HLK-LD6002B 60 GHz radar (very small movement like breathing, up to about 3 m). A temperature and humidity sensor and a lux sensor ride along. Everything sits in a printed two-piece case that fits a 90 degree corner and tilts down toward the room.

The builder’s reasoning is that one radar cannot tell a person from a curtain in a breeze, and two radars of the same type get fooled by the same curtain. Version 2 paired two 24 GHz radars in one box, and the LD2412’s still readings maxed out. Version 3 uses two different bands so they cannot clash.

The logic, and the change made today

The decision logic runs on the ESP, not in Home Assistant, so an HA restart never loses the timers. Home Assistant just receives one Occupied binary sensor, which goes into the area’s group.

  • Becoming occupied: originally only the PIR could do it. After the first day of data the builder switched to any two of the three sensors agreeing within 5 seconds, because a PIR can fire for someone walking past a doorway outside the room.
  • Staying occupied: any one sensor holds it, so sitting still or sleeping is fine.
  • Becoming empty: all three clear for a hold time, 5 minutes by default and adjustable from HA. The lights then go off 3 minutes after the group clears.
  • Alarm output: a separate signal that is on only when the PIR and a radar agree within 10 seconds.

The builder reports that across ten walk-ins the room came on at most 3 seconds after the first sensor fired. On the first night in a dining room, none of the sensors fired between the room emptying at 11 pm and someone getting up before 6 am, which is what you want from an empty room. That is one box and one night, so treat it as a promising start, not a track record. The builder is asking whether anyone has run a 24 plus 60 GHz pair for months.

What it means for an installed system

You do not need to build this to use the idea. The useful lesson is about voting. If your current presence sensor flips lights on for a hallway passer-by, look at whether your setup can require two different sensor types to agree before turning on, while letting either one hold the light on. Mixing technologies matters more than doubling up on one.

A few practical points:

  • This is an ESPHome build, so it needs ESPHome 2026.8 or newer for the LD6002B component. It is Wi-Fi based, so it carries the usual Wi-Fi trade-offs, and it needs regular power.
  • The case dimensions and sensor window thicknesses follow the radar maker’s numbers, according to the builder. Plastic in front of a radar matters, so do not swap in an arbitrary enclosure.
  • The builder tuned the LD2412 by listening to an empty room and setting each gate threshold above the empty-room peak. Expect to tune any radar in your own room.
  • The wiring needs care, including power conditioning for the 60 GHz radar and pin choices that avoid boot-time noise. We are not repeating pin or voltage details here. Take them from the builder’s full write-up and the radar maker’s documents.

Buy, build or wait

If you install for clients, this is a design to watch, not a part to specify. It has one unit, one night of data and a rule that changed within hours of the first post. If you are a tinkerer with ESPHome experience, it is a well-documented starting point. If you just want better lighting automations, try the two-of-three logic with sensors you already own before buying anything new.

Sources