Google location sharing

Hi,

Appreciate some help. I have used owntracks for some time for device tracking but would like to switch to google location sharing as i already use this on my phone.

I added a new account and shared my phone account with it. I can see my phone on google maps from my new account. I did this from the computer home assistant runs on and can see a linux login. I added the configuration to home assistant and see no errors, i see in google devices my linux box regularly connecting to the account.

What i don’t see or understand (apologies) is anything on my home assistant map screen. I expected to see the location of my phone. When im at home nmap sees my phone connect to the router and my presence is displayed.

Is any additional configuration needed? I’m assuming device tracking will work via the mac address of the phone and sync with my entry in known_hosts. Do i need to disable mosquitto on my computer (owntracks used this). I running the lastest version of home assistant.

Thanks
Matt

where are you testing from? Devices located at “home” will not show on the map. this is by design

that’s understood thanks, i’m testing whilst at work.

Do you have a tracker entity?

You should be able to see whether your google devices are discovered by ha. They should be called something like device_tracker.google_maps_xxx where xxx is a string of 20 numbers.
If not, is your additional/separate google account protected with 2FA/MFA?
For me it would not be discovered in HA until I removed that protection ( :frowning: )

2FA not enabled. I don’t see device_tracker.google* in devices discovered by ha. Any other thoughts?

what do your logs say?

On startup it shows the following

“Setting up device_tracker.google_maps”

There is nothing else related to this component as far as I can see. The cookies file is created.

Thanks
Matt

then you should see the sensor in the Development Tools > States (the <> iconed button)

i have it working by enabling “Allow less secure apps”

there was nothing in the log other than “Setting up device_tracker.google_maps”

thanks all for the help

1 Like

interesting. Thanks