Geofencing in a smart home: setup and fixes
Updated
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. Links to Amazon on this page are affiliate links: buying through them costs you nothing extra.
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.
- A button or NFC tag. A smart button at the door with “leaving” and “home” scenes is the most reliable option and costs $10 to $25.
- 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.
Shop by 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
Typical price: $10–$25
See options on AmazonPresence when phones are unreliable
What to look for: mmWave or PIR presence sensor with a no-motion timer, local control, works with your hub
Typical price: $20–$50
See options on AmazonDoor opening confirms the house is empty
What to look for: contact sensor on the main door, long battery life, local automation support
Typical price: $10–$25
See options on AmazonFrequently 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.