Enable tracking in the Home Assistant app through Settings

Device tracking in the Home Assistant mobile app sends your phone's location to your Home Assistant instance so you can see where household members are and automate actions based on location. To turn it on, open the Home Assistant app, tap the menu icon (three horizontal lines) in the bottom right, and select Settings.

In Settings, scroll down and tap Companion App. You'll see a section called Location with a toggle for Send Your Location. Tap the toggle to turn it on. The app will then ask for permission to access your device's location — tap Allow or Allow While Using App depending on your preference.

Once enabled, your phone's location updates automatically at intervals you set. The default is every 5 minutes when the app is open and every 30 minutes when it's closed, but you can adjust these in the same Location section by tapping Update Interval.

Key Takeaways

  • Location tracking is turned on through Settings > Companion App > Location > Send Your Location toggle.
  • Your phone will ask for location permission; choose "Allow While Using App" or "Allow Always" depending on how often you want updates when the app is closed.
  • Update intervals default to 5 minutes when the app is open and 30 minutes when closed, and you can change both in the Location settings.
  • Once enabled, your location appears as a device in Home Assistant and can be used in automations, scripts, and presence detection.
  • Location data stays on your Home Assistant instance and is not sent to external servers unless you have remote access configured.

Grant location permission to your device

After you toggle on Send Your Location, the app requests permission from your phone's operating system. On Android, you'll see a prompt asking whether to allow location access. Choose Allow All the Time if you want location updates even when the app is closed, or Allow Only While Using the App if you prefer updates only when you actively use Home Assistant.

On iOS, the permission prompt offers Allow Once, Allow While Using App, or Don't Allow. For continuous tracking, select Allow While Using App. iOS also requires you to enable location services globally in Settings > Privacy > Location Services before the Home Assistant app can access your location.

If you deny permission initially, you can grant it later by going to your phone's Settings app, finding Home Assistant, and changing the location permission from Never or Only While Using to the setting you prefer.

Adjust update frequency based on your needs

The default update intervals work for most setups, but you may want to change them depending on how you use location data. If you have automations that trigger when you arrive home, a 5-minute update interval when the app is open ensures faster detection. If you're concerned about battery drain, increasing the interval to 10 or 15 minutes reduces how often your phone checks its location.

To change intervals, go to Settings > Companion App > Location and tap Update Interval. You'll see two separate settings: one for when the app is active and one for when it's in the background. The background interval only applies if you granted Allow All the Time permission on Android or Allow While Using App on iOS with background refresh enabled.

Keep in mind that more frequent updates use more battery. If you notice your phone draining faster after enabling tracking, try increasing the interval to 15 or 30 minutes and see if that balances accuracy with battery life.

See your location appear in Home Assistant

Once tracking is enabled and your phone has sent its location, a new device appears in Home Assistant under the name of your phone. You can find it in Settings > Devices & Services > Devices, or by searching for your phone's name in the Home Assistant interface. The device shows your current latitude and longitude, and Home Assistant automatically creates a zone for your home based on your configuration.

Your location is stored as an entity with the format device_tracker.phone_name. You can view this entity in Developer Tools > States to see the raw location data, including accuracy and the timestamp of the last update. This entity is what you reference in automations and templates if you want to trigger actions based on where you are.

Use location data in automations and presence detection

Once your location is being tracked, you can build automations that respond to where you are. For example, you might turn on lights when you arrive home, or send a notification when someone leaves the house. In the automation editor, create a trigger using Zone and select your phone's device tracker. Choose whether you want the automation to fire when you enter or leave a zone.

Home Assistant also uses location data for presence detection, which determines whether anyone is home. If you set up multiple household members with tracking enabled, Home Assistant can automatically set a person entity to "home" or "away" based on whether any tracked device is inside your home zone. This is useful for automations that should only run when nobody is home, like arming a security system.

You can also use location in templates and conditions. For instance, a script might check if you're within 1 kilometer of home before sending a reminder, or a template sensor might display which zone each family member is in on your dashboard.

Troubleshoot location updates that aren't working

If your location isn't updating or appears stuck in one place, first check that location permission is granted. Go to your phone's Settings app, find Home Assistant, and confirm the location permission is set to Allow While Using App (iOS) or Allow All the Time (Android). On iOS, also verify that Location Services is turned on globally in Settings > Privacy > Location Services.

Next, check that the Home Assistant app has permission to use your phone's location in the background. On Android, go to Settings > Apps > Home Assistant > Permissions > Location and select Allow All the Time. On iOS, go to Settings > Home Assistant > Location and select While Using the App, then enable Background App Refresh in Settings > General > Background App Refresh.

If updates are still not working, try closing and reopening the Home Assistant app, or restarting your phone. You can also check the app's notification log to see if there are any error messages. If the issue persists, verify that your Home Assistant instance is running and that the Companion App integration is loaded by checking Settings > Devices & Services > Integrations for Mobile App.

Understand privacy and data storage for location tracking

Location data collected by the Home Assistant mobile app is sent directly to your Home Assistant instance and stored locally on your server. It is not sent to Nabu Casa, Home Assistant's cloud service, unless you have explicitly enabled cloud access and configured remote connection through their servers. If you only access Home Assistant on your local network, your location data never leaves your home network.

You can view and delete location history through Home Assistant's history feature. Go to Settings > System > Logs & Debugging > History Statistics to see how long location data is retained. By default, Home Assistant keeps history for 10 days, but you can adjust this in your configuration. If you want to stop sharing location, simply toggle off Send Your Location in the app settings, and no further updates will be sent.

Frequently Asked Questions

Does location tracking drain my phone's battery?

Location tracking does use battery, but the impact depends on your update interval and how often the app runs in the background. Using a 30-minute update interval instead of 5 minutes significantly reduces battery drain. Disabling background location updates when you're home also helps, since Home Assistant can detect your presence through your home Wi-Fi connection.

Can I track multiple family members' phones?

Yes. Each person installs the Home Assistant app on their phone, enables location tracking in their own Settings > Companion App > Location, and grants location permission. Each phone appears as a separate device in Home Assistant, and you can use all of them in automations and presence detection.

What happens if I don't grant location permission?

If you deny location permission, the toggle for Send Your Location remains off and your phone's location is not sent to Home Assistant. You can grant permission later by changing it in your phone's Settings app, then toggling Send Your Location back on in the Home Assistant app.

Can I use location tracking without internet access?

Yes, as long as your phone and Home Assistant instance are on the same local network. Location updates are sent over your home Wi-Fi and do not require an internet connection. If you access Home Assistant remotely over the internet, location data is sent through your configured remote connection method.

How accurate is the location data?

Accuracy depends on your phone's GPS, Wi-Fi, and cellular signal. In urban areas with strong signals, accuracy is typically within 5 to 20 meters. In rural areas or indoors, accuracy may be 50 to 100 meters or worse. Home Assistant displays the accuracy value for each location update, which you can view in Developer Tools > States.