Geofencing in a smart home: setup and fixes
Geofencing runs your smart home when phones arrive and leave. Learn how it works, set it up for a whole household, fix the usual failures and use a back-up trigger when location is not reliable.
As an Amazon Associate we earn from qualifying purchases. Product links on this page are affiliate links: buying through them costs you nothing extra and does not change what we recommend.

ecobee Smart Thermostat Essential
Best for: Homes with a C-wire, or owners ready to add ecobee’s Power Extender Kit.
- Lower entry price into the ecobee app and schedules
- ENERGY STAR certification, which some utility rebates require
- No C-wire? Budget for the separate Power Extender Kit
- No remote room sensor in the box
Name, photo and listed features checked on Amazon.com on November 14, 2026. We have not tested it; see how we choose.
In short: Phone geofencing works at the scale of the house: it knows when you arrive or leave, not which room you are in. For room-level presence, often called indoor geofencing, use sensors in the rooms themselves.
What geofencing does, and what it does not
A geofence is a virtual circle around your home. When your phone crosses it, the phone’s operating system notices and tells the app, which runs an automation: lock the door, set the thermostat to away or turn off lights. It does not follow you on a map. Google’s help pages say the Nest app defines a large area around the home, called a geofence, that acts like a home zone, and that the phone’s OS only notifies the app when you enter or exit it.
The weakness is timing. Phones batch location updates to save battery, so triggers can arrive a few minutes after you cross the line. Home Assistant’s documentation says that iOS significant-change updates are coarse, described by Apple as changes of 500 meters or more, and that background updates typically arrive every one to three minutes. Treat geofencing as approximate, not instant.
Set it up properly
- Set the home location in the app to your exact address. Check the pin on the map, not just the address text.
- Grant location permission to the smart home app: “Always” on iPhone, “Allow all the time” on Android, and precise location on. Google’s help article lists Location Services set to “Always” and Background App Refresh as requirements on iOS.
- Keep cellular data and Wi-Fi on. Google notes that presence features use cellular and Wi-Fi data as well as GPS, and that a cellular data cap can stop the phone from reporting location.
- Turn off battery saving for the app, and don’t force-quit it. Google says force-quitting the Home app can disable presence-based automations.
- Add every household member and have each of them accept location sharing in their own phone.
- Create the automation with the condition “everyone is away” for departure and “anyone arrives” for arrival.
Why it fails: symptoms and fixes
| What happens | Likely cause | Fix |
|---|---|---|
| Nothing triggers | Location set to “While using the app”, or background app refresh is off | Set location to Always and turn on background refresh |
| Home switches to Away while you are inside | Weak GPS or a Wi-Fi network the phone does not trust | Keep Wi-Fi on, set high accuracy and check the home pin |
| Triggers 10 minutes late | Phone batches updates; battery saver or a low-power mode | Disable battery restrictions for the app; add a delay in your logic |
| Triggers only for one person | Another phone has location off or an old app version | Check every member’s permissions; update the app |
| Triggers when you pass by | Radius too large for a dense neighborhood or a short block | Reduce the radius if the app allows it, or require two signals |
| Fails after an update | Permissions reset; OS changed background rules | Reopen the app and re-grant location access |
Home Assistant’s companion app adds limits worth knowing. Android allows up to 100 geofences and ignores zones beyond that, and trigger ranges create extra fences, so a long list of zones can quietly stop working. The default required accuracy is 200, and the setting controls how many location reports are accepted, so a poor signal can mean skipped updates.
Multiple people and the rules
- Everyone away, anyone home. Use “last person leaves” for turning things off and “first person arrives” for turning them on. Otherwise one partner leaving can turn off the lights on the other.
- Kids and phones without data plans. A phone that is off or in airplane mode counts as away. Don’t rely on a child’s tablet.
- Single phone systems. Google recommends using only one phone for Home/Away Assist in the Nest app; presence-based automations in the Google Home app expect each member’s phone. See Google Home presence sensing.
- Guests. They are invisible to geofencing. Pair presence with a door sensor or motion if you want the house to stay on when a guest is home alone.
Radius, delay and the logic that stops false alarms
Large radius means earlier arrival triggers and more false triggers. A radius of a few hundred yards works in many suburbs; a dense block may need a smaller radius or a different trigger. Add a delay of five to ten minutes before “everyone left” runs so a trip to the mailbox doesn’t turn off the heat. Google’s help page notes that a manual switch to Away while you are still home can take about five minutes to settle, so expect short lags.
Do not auto-unlock a door on arrival unless you accept the risk of a phone glitch, a stolen phone or a misread location. Arrival can turn on lights, set the thermostat and disarm cameras, while a tap or a keypad code unlocks the door. See smart lock settings for renters for auto-lock delays.
Alternatives when location is not reliable
- Wi-Fi presence. Your phone joining the home network is a quick signal. Some routers and hubs track devices; phones with random Wi-Fi addresses may need a setting changed.
- Door and motion sensors. Treat the house as away when no motion has been seen for an hour and the front door has opened and closed.
- Schedules. A time-based routine is predictable for jobs and school runs.
- Voice. “Goodbye” or “I’m home” routines on a smart speaker give manual control.
Privacy: phone location is sensitive data. Home Assistant lets you send either exact location or “Zone Name Only”, and says data is sent directly to your home. With cloud platforms, review who in the household can see location and delete members who leave. For ideas on which routines are worth building, see smart home routines that are actually useful.
Indoor geofencing: room-level presence
| Method | How it works | Good for |
|---|---|---|
| mmWave presence sensor | Detects small movements, even someone sitting still | Office, living room lights that should stay on |
| PIR motion sensor | Detects movement through a room | Hallways, closets, quick on and off |
| Bluetooth beacons or phone tracking | Estimates which room a phone or tag is in | Experiments, with uneven reliability |
| Door and occupancy combinations | A door opens, then motion confirms someone entered | Bathrooms, garage |
Start with one room where lights turning off on you is a real annoyance, and compare mmWave presence and PIR motion sensors before buying several.
More questions
What is indoor geofencing?
It is room-level presence detection: knowing which room is occupied, rather than whether you are home. It usually relies on presence or motion sensors, not phone GPS.
Read next
Products that match each need
Reliable leave and arrive button
What to look for: smart button with single, double and long press, works with your ecosystem (Matter or Zigbee), replaceable battery

Presence when phones are unreliable
What to look for: mmWave or PIR presence sensor with a no-motion timer, local control, works with your hub

Door opening confirms the house is empty
What to look for: contact sensor on the main door, long battery life, local automation support

Frequently asked questions
Why does geofencing not work on my smart home app?
Usually the phone does not allow constant background location, or battery saver is limiting it. Set location to Always, enable precise location and background refresh, and keep cellular data and Wi-Fi on.
How accurate is smart home geofencing?
It is approximate. Operating systems batch updates, so triggers can arrive minutes after you cross the boundary, and iOS significant-change updates can be coarse (500 meters or more, as Apple describes it). Add a delay to your automation.
How do I make geofencing work with multiple people?
Add each person’s phone, have each approve location access, and use conditions like “everyone is away” to turn things off and “anyone arrives” to turn them on.
Is it safe to unlock the door with geofencing?
It adds risk. A misread location, a lost phone or a glitch could unlock the door when you are not there. Use arrival to turn on lights and the thermostat, and unlock with a keypad, tap or key.
Sources
- Google Nest Help — About Home/Away Assist and presence sensing
- Google Nest Help — Nest phone location not working
- Home Assistant Companion App — Location
- Federal Trade Commission — Securing your internet-connected devices at home
- Amazon.com listing: ecobee Smart Thermostat Essential - WiFi Thermostat, Energy Star Certified (ASIN B0DT9MC2Z9), checked November 14, 2026
- Amazon.com listing: SONOFF Zigbee Switch, SNZB-01P Wireless Push Button (ASIN B0CL9JTMWF), checked November 14, 2026
- Amazon.com listing: Aqara Presence Sensor FP2 Plus Aqara Hub M1S Gen 2 (2.4 GHz Wi-Fi Required) (ASIN B0CVVSRRY6), checked November 14, 2026
- Amazon.com listing: Eve Door & Window (Matter) – Smart Contact Sensor for Doors & Windows (ASIN B0BZSY26WP), checked November 14, 2026
Product names, photos and listed features were checked on the Amazon.com product pages on November 14, 2026. Prices and availability change; the retailer page is always the reference.
Related pages
KitWater leak protection kit for a houseFive leak sensors, an automatic shutoff valve and a hub: the shopping list to catch leaks early and stop them before they flood the floor, with…
GuideWildfire smoke: keeping indoor air cleanerDuring wildfire smoke, a sized air cleaner, MERV 13 filters and a closed-up room can lower indoor particles. Follow the EPA’s steps for CADR, HVAC…
ComparisonSmart bulbs vs smart switches: cost, wiring and useSmart bulbs are plug-and-play and give color; smart switches keep the wall switch working and control any bulb. See the cost per room, wiring needs,…
CalculatorUPS runtime calculator: how long will it run your router?Add up the watts of your modem, router and hub, enter your battery size, and see how long a UPS or power station keeps you online. Switch to sizing…
KitVacation home monitoring kitLeak and freeze sensors, a power-loss alert, cameras, a router on a UPS and cellular backup: the kit that lets you watch an empty home or second home…
GuideHow to choose smart bulbsBase size, lumens, color temperature, Wi-Fi, Zigbee or Thread: the short checklist that decides which smart bulb works in your lamp, your fixture and…