google_maps platform allows you to detect presence using the unofficial API of Google Maps Location Sharing.
You first need to create an additional Google account and share your location with that account. This platform will use that account to fetch the location of your device(s). You have to setup sharing through the Google Maps app on your mobile phone. You can find more information here.
This platform will create a file named
.google_maps_location_sharing.cookies where it caches your login session.
Since this platform is using an unofficial API with the help of locationsharinglib, Google seems to block access to your data the first time you’ve logged in with this platform. This issue can be fixed by logging in with your new account and approving your login on the Device Activity page.
To integrate Google Maps Location Sharing in Home Assistant, add the following section to your
# Example configuration.yaml entry device_tracker: - platform: google_maps username: YOUR_USERNAME password: YOUR_PASSWORD
(string)(Required)The email address for the Google account that has access to your shared location.
(string)(Required)The password for your given username.
(float)(Optional)Sometimes Google Maps can report GPS locations with a very low accuracy (few kilometers). That can trigger false zoning. Using this parameter, you can filter these false GPS reports. The number has to be in meters. For example, if you put 200 only GPS reports with an accuracy under 200 will be taken into account - Defaults to 100km if not specified.