Curious Minds

Clear answers to science and history questions

Why Home Assistant Shows Someone Home When They're Away

· 7 min read · Science

Home Assistant most often shows someone as home when they are away because the device tracker it relies on has not updated its location, or because the integration is using an unreliable presence source such as a router-based connection or a phone that is asleep. In practice, the platform is only as accurate as the last signal it received, so a stale GPS fix, a delayed router poll, or a misconfigured zone can all leave the state stuck on "home" long after the person has left.

How Presence Detection Works in Home Assistant

Home Assistant does not track people directly. It tracks devices and network connections, then maps them to a person entity. Each person can have multiple device trackers attached, and the person's state is derived from those trackers according to a merge rule. Common tracker types include:

  • GPS-based trackers such as the official Home Assistant companion app, which reports location periodically or on significant movement.
  • Router and DHCP trackers that mark a device home when it holds a lease or is visible on the local network, and away when it disappears.
  • Bluetooth trackers that detect proximity to a Bluetooth adapter or beacon.
  • Manual or input helpers that a user toggles by hand or via an automation.

The person entity combines these. By default, if any attached tracker reports home, the person is considered home. That single rule explains a large share of false "home" states: one stale or overly optimistic tracker can override several accurate ones.

Why the State Gets Stuck on Home

Several distinct mechanisms can leave a person marked home after they leave. They are worth separating because the fix differs for each.

  1. Stale GPS data. Phone operating systems throttle background location updates to save battery. If the companion app has not received a new fix, the last known location may still fall inside the home zone, so the tracker keeps reporting home.
  2. Router polling delays. Many routers report connected devices only every few minutes, and some keep a device listed for a while after it disconnects. A phone that leaves the Wi-Fi may still appear connected until the next poll or until the lease expires.
  3. Zone size and GPS accuracy. The home zone has a radius, often 100 metres by default. A GPS fix with poor accuracy can place someone inside that circle even when they are a street or two away. Accuracy circles of 50–100 metres are common in urban areas and indoors.
  4. Multiple trackers with an OR rule. If a person has both a phone tracker and a router tracker attached, and the router still lists the phone, the person stays home regardless of GPS.
  5. Sleeping devices and battery optimisation. Aggressive battery management on some phones pauses background apps entirely. The app may not report a new location until the phone is unlocked or the app is opened.
  6. Integration errors or authentication problems. A tracker that has lost its connection to its cloud service may freeze at its last known state rather than switching to unavailable.
  7. Manual overrides. A person entity can be set manually, and some automations or scripts set presence directly. A forgotten manual set or a misbehaving automation can pin the state to home.

Device Trackers Compared

Different tracker types fail in different ways, which is why combining them thoughtfully matters more than adding more of them.

  • Companion app GPS: Accurate outdoors and works anywhere, but depends on the phone's background location permissions and can lag when the phone is idle.
  • Router/DHCP: Very reliable for detecting arrival, since joining Wi-Fi is immediate. Departure detection is slower because routers poll and leases linger.
  • Bluetooth: Good for room-level or close-proximity detection, but range is short and walls reduce reliability.
  • Cloud integrations: Services that report device location can be accurate but introduce a dependency on an external account and its update frequency.

A common misconception is that adding more trackers always improves accuracy. In Home Assistant's default merge behaviour, more trackers can actually increase false "home" results, because any one optimistic source wins. The better approach is to choose trackers whose failure modes complement each other and to configure the merge rule deliberately.

Configuring Zones and the Person Merge Rule

The home zone is defined by latitude, longitude and radius. Shrinking the radius makes the zone stricter and reduces false positives from imprecise GPS, but it can also cause false "away" states if accuracy is poor. A radius of 50–100 metres is typical; very small radii are only sensible with accurate GPS and good signal.

Home Assistant also lets you control how a person's state is derived from multiple trackers. Rather than the default any-tracker-wins behaviour, you can require all trackers to agree, or use a template or automation to apply your own logic. For example, you might treat the person as home only if the GPS tracker says home and the router confirms the phone is connected. This reduces false home states at the cost of occasionally showing away when one source fails.

It also helps to review which trackers are attached to each person. A tracker belonging to a device that stays at home, such as a tablet or a spare phone, will always report home and will keep the person home permanently under the OR rule.

Common Problems and Fixes

When a person is shown home while away, work through these checks in order:

  • Open the person entity and inspect each attached tracker's current state and last-updated time. A tracker that has not updated for hours is the likely culprit.
  • Check the companion app's location permissions, background refresh settings, and battery optimisation exclusions on the phone.
  • Verify the home zone radius and compare it with the reported GPS accuracy.
  • Look for router integrations that keep devices listed after disconnect, and consider reducing their consider-home timeout if the integration offers one.
  • Search your automations and scripts for anything that sets the person or a tracker state directly.
  • Confirm the integration has not lost authentication, which can freeze a tracker at its last value.

If the problem is intermittent, log the tracker states over a few days. Patterns often reveal whether the delay is tied to phone sleep, router polling, or GPS accuracy.

Improving Reliability Without Constant GPS

Battery life and privacy are legitimate concerns, so not everyone wants continuous high-accuracy GPS. Practical compromises include:

  • Using router presence for arrival and GPS for departure, combined through a template.
  • Increasing the location update interval in the companion app and relying on significant-motion updates.
  • Adding a Bluetooth beacon at the entrance for fast, low-power arrival detection.
  • Accepting a short delay on departure in exchange for reliable arrival, which suits many automations better than the reverse.

It is also worth setting expectations: no presence system is perfect. Phones sleep, routers poll slowly, and GPS drifts. The goal is a system whose errors are predictable and whose automations tolerate a few minutes of uncertainty.

Frequently Asked Questions

Why does my phone still show as home after I leave?

Most often the companion app has not received a fresh location update because the phone is idle or battery optimisation is limiting background activity, so the last known position still falls inside the home zone. Checking the tracker's last-updated time usually confirms this.

Does the home zone radius affect accuracy?

Yes. A larger radius means more locations count as home, so someone just outside the house may still register as home. A smaller radius is stricter but can produce false away states when GPS accuracy is poor.

Can multiple trackers make presence less accurate?

They can. Under the default rule, if any tracker reports home the person is home, so one stale or optimistic tracker can override accurate ones. Configuring the merge rule or removing unnecessary trackers usually helps.

Why does my router still list my phone after I leave?

Many routers poll connected devices periodically and keep entries for a while after disconnect, and DHCP leases can persist. This delays departure detection even though the phone has left the network.

How can I tell which tracker is causing the problem?

Open the person entity and review each attached tracker's state and last-updated timestamp. The tracker that still reports home with an old timestamp is the one to investigate first.

Is it normal for presence to lag by a few minutes?

Yes. Background location throttling, router polling intervals, and GPS update frequency all introduce delay. A lag of several minutes on departure is common and usually acceptable for most automations.

In this article
  1. How Presence Detection Works in Home Assistant
  2. Why the State Gets Stuck on Home
  3. Device Trackers Compared
  4. Configuring Zones and the Person Merge Rule
  5. Common Problems and Fixes
  6. Improving Reliability Without Constant GPS
  7. Frequently Asked Questions