Presence detection

Also known as: geofencing

On this page 7

Presence detection is the set of techniques a smart home uses to determine whether people are at home, away, or in a particular room, so that automations can react to their arrival, departure or occupancy. In home automation, it is one of the most valuable triggers, because it lets the house act on actual presence instead of fixed schedules.

Presence detection works at two levels. Home-level presence, often implemented through geofencing on a smartphone, answers whether anyone is home. Room-level presence uses sensors to tell whether a specific space is occupied, even when people sit still.

How presence detection works

Presence detection works by collecting signals that correlate with a person’s location and converting them into a simple state such as home or away. Each signal has its own delay and error rate, so robust systems combine several sources and apply rules to reach a decision, a technique often called sensor fusion.

Geofencing uses the phone’s location services to detect when it crosses a virtual boundary around the home, typically with a radius of 100 to 300 m. Network-based methods check whether a phone is connected to the home Wi-Fi, while Bluetooth Low Energy beacons and millimeter-wave radar sensors provide room-level detail.

The table below compares the main presence detection methods.

MethodDetectsTypical delayMain weakness
GeofencingPhone entering or leaving an areaSeconds to a few minutesBattery saving delays location updates
Wi-Fi connectionPhone on the home networkSeconds to minutesPhones sleep and drop Wi-Fi
Bluetooth beacon or tagPhone or tag near a receiverA few secondsRange varies with walls and bodies
PIR motion sensorMovement of warm bodiesUnder one secondMisses people sitting still
mmWave radar sensorMovement and micro-motion, such as breathingUnder one secondCan react to fans or curtains
Door and lock eventsEntry and exit actionsInstantDoes not identify who is present
Presence detection methods compared

Home-level and room-level presence

Home-level and room-level presence answer different questions and suit different automations. Home-level presence drives away mode, security arming and heating setbacks, while room-level presence controls lights, ventilation and media in the occupied space.

LevelQuestion answeredTypical automations
Home levelIs anyone homeAway mode, alarm arming, heating setback
Person levelWhich person is homePersonal scenes, notifications, welcome messages
Room levelIs this room occupiedLights, fans, room heating
Zone levelWhere in the room is someoneDesk lamp, sofa lighting, bed sensors
Levels of presence detection and their uses

Distinguishing motion from presence is the key technical point at room level. A passive infrared sensor detects motion, so lights switch off while someone reads quietly. Presence sensors based on 24 GHz or 60 GHz radar detect small movements such as breathing and keep the room marked as occupied.

Designing reliable presence rules

Reliable presence rules combine fast signals for arrival with conservative logic for departure. Arrival should be detected early, for example from geofencing or the front door opening, while departure should be confirmed by several signals and a delay of 5 to 15 minutes to avoid false away states when a phone briefly loses Wi-Fi.

  • Use an “anyone home” group so the house enters away mode only when every tracked person has left.
  • Add hysteresis: require a longer time to switch to away than to switch to home.
  • Pair geofencing with a local signal such as Wi-Fi, Bluetooth or a door sensor.
  • Handle guests and pets, who carry no phone and may trigger motion sensors.

The following decision table matches common goals with an appropriate detection strategy.

GoalRecommended methodReason
Heat the home before arrivalGeofencing with a large radiusGives time for the heating to respond
Arm the alarm on departureGeofencing plus door and Wi-Fi checksAvoids arming with people inside
Keep office lights on while seatedmmWave presence sensorDetects stillness that PIR misses
Turn on hallway lights at nightPIR motion sensorFast, cheap and battery friendly
Choosing a presence detection strategy

Presence detection is one type of trigger in an automation rule, alongside time-based, device-state and manual triggers. Compared with a time-based automation, it adapts to irregular routines; compared with a smart button, it requires no action from the user. Platforms such as Home Assistant, Apple Home, Google Home and Samsung SmartThings all expose presence as a trigger, but they differ in how they combine signals.

Presence-based rules are more efficient but less predictable than schedules. A heating schedule always runs at 06:30, while a presence-based setback saves energy on irregular days yet depends on the phone sharing its location correctly.

Presence detection also overlaps with away mode, but the two are not the same. Away mode is a state of the home that bundles several actions, such as arming the alarm, lowering heating and simulating occupancy with lights. Presence detection is the input that decides when to enter or leave that state. Many households combine both: presence switches the mode automatically, while a smart button or app toggle lets anyone override the decision manually when the detection is wrong.

Privacy and common failures

Presence data is highly sensitive personal information, because it records when each household member is home. Systems that process presence locally reduce exposure, while cloud platforms store location history that users should review. Every household member should agree to be tracked and know how to opt out.

SymptomLikely causeFix
House switches to away while occupiedPhone lost Wi-Fi or locationAdd departure delay and a second signal
Arrival detected too lateSmall geofence or delayed location updatesEnlarge radius, allow background location
Lights turn off during readingPIR sensor sees no motionUse a radar presence sensor
Phantom occupancyRadar reacts to fans or petsReduce sensitivity, exclude zones
Typical presence detection failures

The simple explanation

Presence detection is how a smart home knows whether someone is there. It may notice that your phone has come close to the house, that your phone has joined the home Wi-Fi, or that a sensor sees someone moving in the room.

With that knowledge, the home can act on its own: warm up before you arrive, switch off lights when everyone has left, or keep a reading lamp on while you sit still. It works like a thoughtful housemate who notices when you come and go.

How it is used in practice

A couple who work irregular shifts set up presence detection with geofencing on both phones, Wi-Fi checks and a door contact sensor. The heating drops to 17 degrees Celsius when both are away for more than ten minutes and returns to 21 degrees when either phone enters a 500 m geofence.

In the home office, a 60 GHz radar sensor keeps the lights on during long video calls, where a motion sensor previously switched them off every few minutes. Over the winter, the couple avoids heating an empty home on most workdays without ever touching the thermostat.