LockerGnomeTech news and nostalgia for today's technology professionals
Subscribe

Search

Hacks & Builds

ESPresense Turns Cheap ESP32 Boards Into Room-by-Room Trackers That Even Catch Private Apple Addresses

The open-source firmware feeds Home Assistant, Homebridge, and Domoticz over MQTT, though picking between one-node-per-room detection and a multi-node floor plan is a choice you have to make before buying hardware.

A cartoon man in glasses and a plaid shirt strides through a lamp-lit living room holding up his phone, which sends glowing Wi-Fi waves toward an oversized ESP32 development board on a table in the dark room next door.
Illustration: LockerGnome

Smart-home presence tracking usually falls apart the moment a phone randomizes its MAC address and turns your living room lights into a strobe show. ESPresense sidesteps that trap by running localized device tracking on cheap ESP32 boards rather than full Raspberry Pis, using extensive fingerprint-based IDs instead of raw MAC addresses to spot and count devices other trackers miss. For Apple gear that rotates private random addresses, the project supports IRK-based enrollment so a node can passively locate the same phone or watch without breaking privacy defaults.

Raw distance estimates bounce around like a caffeinated squirrel, so ESPresense stacks a median pre-filter in front of a 1Euro filter to smooth out jitter before reporting where a device sits. Once the nodes talk over Wi-Fi to an MQTT server, Home Assistant MQTT Discovery handles the wiring automatically, and the firmware also connects to Homebridge and Domoticz if your stack runs elsewhere. You can tune scanning, filtering, and counting logic or push settings directly over MQTT, calibrate distance scaling for your rooms, and even hang LEDs, motion sensors, or environmental sensors off the same ESP32 hardware. Optional auto-updates pull released binaries from GitHub, with a toggle to shut that off if you prefer your infrastructure frozen in amber (smart move on a Sunday night).

The catch arrives before you even order boards, because ESPresense splits into two architectures that do not mix well. If you only want room-level automations and have no use for a floor plan, mqtt_room expects a single node per room. If you want precise X,Y coordinates mapped onto a floor plan, the Companion mode demands dense coverage of five to eight or more nodes per floor with deliberate placement. The project’s own warning is blunt: “More nodes doesn’t make mqtt_room better - pick one approach and commit.” Throwing extra boards at a mqtt_room setup just burns cash and confuses your room handoffs, which is a classic homelab way to turn a simple weekend fix into a full-time hobby (ask anyone with a drawer of half-flashed microcontrollers).

Getting off the ground takes three pieces: one or more ESP nodes matched to whichever mode you picked, a trackable phone, watch, or supported beacon, and an MQTT broker already humming on your network. That strips out the proprietary hubs, cloud subscriptions, and mystery-meat vendor apps that usually turn “turn on the hallway lamp when I walk in” into a monthly relationship with a server farm in another time zone. You still have to calibrate distance scaling so your office does not steal your kitchen’s lights, because radio waves do not respect drywall nearly as much as architects do.

Expect more local smart-home gear to push this kind of signal cleanup down to the edge instead of shipping noisy raw pings up to a central server. When a tiny board can run a median pre-filter, a 1Euro filter, and MQTT discovery by itself, the pitch for pricey proprietary presence hubs starts looking like a luxury tax on people who hate soldering (or reading docs). The real trap is the human temptation to over-spec a five-node floor plan when a single room node would have kept the bathroom fan running on schedule. Still, if you want to know whether you are in the den or the kitchen without asking a cloud vendor for permission, it helps to have a little ESP.

Pick your node count once, and calibrate the drywall.

More Hacks & Builds

Every Hacks & Builds story →