Introduction

Wi-Fi, traditionally used to connect smart home devices, can now sense whether anyone is inside a room. This article explores how Wi-Fi can detect human presence and its practical applications.

Wi-Fi has a weird new smart-home use case: detecting people

How Does Wi-Fi Detect Presence?

Wi-Fi doesn't track phones or analyze connection logs. Instead, it observes how a human body changes radio waves moving through a room. This technology is no longer a lab experiment, as researchers have used Wi-Fi for various applications, including activity recognition and human identification.

The CSI Metric

The metric that maps this is called Channel State Information (CSI). On an ESP32, CSI describes the channel's frequency response across the individual subcarriers used by an OFDM Wi-Fi transmission. It provides much more detailed information than a simple signal strength indicator, including amplitude and phase-related channel data. Espressif exposes APIs that let compatible ESP32 chips collect CSI whenever packets are received, turning an otherwise simple Wi-Fi microcontroller into a basic radio-sensing node.

Practical Applications

Software can compare these measurements over time. A stable CSI pattern suggests that the environment is relatively still, while a changing pattern can indicate movement. With sensitive hardware and suitable processing, recurring micro-movements such as breathing can support stationary presence detection. The system isn't identifying a connected device carried by someone; it's detecting the physical effect of a body on a radio channel.

CSI vs. mmWave

Wi-Fi sensing and mmWave often solve the same smart-home problem, but they're not the same thing. A mmWave presence sensor is a purpose-built radar, usually operating at 24, 60, or 77 GHz. It transmits a signal and studies its reflections to estimate motion and, depending on the hardware you have, details such as range, velocity, and angle. Its sensitivity to tiny movements makes it useful for keeping the lights on while someone sits at a desk. CSI sensing, on the other hand, uses ordinary Wi-Fi signals in the 2. 4 GHz or 5 GHz bands. These lower-frequency signals generally travel farther and penetrate common obstacles more readily, so a pair of nodes can sense across furniture or walls. That eliminates line-of-sight placement, but it also makes boundaries less precise. A person walking in a hallway may disturb a link intended to cover the living room. Current ESP32 boards also have limited antenna and channel capabilities, so claims about exact localization, pose detection, or reliable people counting should be treated differently from straightforward motion and occupancy detection.

TOMMY: A Solution for Home Assistant Users

TOMMY packages CSI sensing into something resembling the average smart-home product. A zone needs at least two supported ESP32 devices on the same Wi-Fi band, positioned at least one meter apart. The devices exchange small packets, and the receivers extract CSI from those transmissions. TOMMY's server then analyzes the data collectively and exposes the zone to Home Assistant or a Matter-compatible platform as a sensor. If you've already stacked your home with ESPHome hardware, this is especially useful. TOMMY supports the original ESP32, C3, C5, C6, S2, and S3 families. A board can run dedicated TOMMY firmware, but the external ESPHome component can add sensing without removing the device's existing job. This means all your existing ESP32-based smart devices can be transformed into presence detection nodes without adding any new hardware.

Technical Considerations

There are technical catches, though. The ESPHome build must use ESP-IDF because CSI support depends on it, and TOMMY changes the relevant SDK configuration options. Its external component is downloaded from the local TOMMY server during compilation, so that server must be available. On mesh Wi-Fi, nodes belonging to one zone must connect to the same access point, which may require pinning them to a specific BSSID. Only the ESP32-C5 and C6 can detect stationary presence. 4 GHz and 5 GHz bands, respectively, are optimal for stationary presence. The developer recommends a mesh topology, where nearly every device transmits for fuller coverage, and a hold time of around 10 seconds.

Conclusion

Wi-Fi CSI is a complementary technology to PIR and mmWave rather than a universal replacement. It makes more sense when broad coverage, hidden nodes, through-wall detection, low hardware cost, and ESPHome reuse matter more. Nothing visibly senses the room. The same radios that already carry your sensor readings and automation commands become the sensor. With realistic expectations and careful placement, Wi-Fi can tell a smart home not only that there are connected devices, but also that somebody is actually there.

  • CSI (Channel State Information): Describes the channel's frequency response across the individual subcarriers used by an OFDM Wi-Fi transmission, providing much more detailed information than a simple signal strength indicator, including amplitude and phase-related channel data. - ESP-IDF: The development framework used by ESP32 for CSI support. - TOMMY: A solution that packages CSI sensing into something resembling the average smart-home product, supporting the original ESP32, C3, C5, C6, S2, and S3 families. - ESPHome: A platform that can be used to add sensing capabilities to ESP32 devices without removing their existing jobs. - Stationary Presence: Detection of a person's presence without movement, requiring devices with specific capabilities such as the ESP32-C5 and C6. - ESP32-C5 and C6: The optimal devices for detecting stationary presence, capable of supporting two or more devices on the 2. 4 GHz band and four or more devices on the 5 GHz band.

Comments