mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-26 02:37:03 +00:00
Add heading (#10690)
This commit is contained in:
parent
22aebe52bf
commit
b1c046eecd
@ -10,15 +10,16 @@ ha_iot_class: Cloud Polling
|
|||||||
|
|
||||||
The `google_maps` platform allows you to detect presence using the unofficial API of [Google Maps Location Sharing](https://myaccount.google.com/locationsharing).
|
The `google_maps` platform allows you to detect presence using the unofficial API of [Google Maps Location Sharing](https://myaccount.google.com/locationsharing).
|
||||||
|
|
||||||
## Configuration
|
## Setup
|
||||||
|
|
||||||
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 first need to create an additional Google account and share your location with that account. This integration will use that account to fetch the location of your device(s).
|
||||||
|
|
||||||
1. You have to setup sharing through the Google Maps app on your mobile phone. You can find more information [here](https://support.google.com/accounts?p=location_sharing).
|
1. You have to setup sharing through the Google Maps app on your mobile phone. You can find more information [here](https://support.google.com/accounts?p=location_sharing).
|
||||||
2. You need to use the cookies from that account after you have properly authenticated which you can retrieve with either [Export cookies](https://addons.mozilla.org/en-US/firefox/addon/export-cookies-txt/?src=search) for firefox (make sure that "Prefix HttpOnly cookies" is unchecked) or [cookies.txt](https://chrome.google.com/webstore/detail/cookiestxt/njabckikapfpffapmjgojcnbfjonfjfg?hl=en-US) for chrome.
|
2. You need to use the cookies from that account after you have properly authenticated which you can retrieve with either [Export cookies](https://addons.mozilla.org/en-US/firefox/addon/export-cookies-txt/?src=search) for Firefox (make sure that "Prefix HttpOnly cookies" is unchecked) or [cookies.txt](https://chrome.google.com/webstore/detail/cookiestxt/njabckikapfpffapmjgojcnbfjonfjfg?hl=en-US) for Chrome/Chromium.
|
||||||
- *Note:* Make sure to use the `.com` TLD (e.g.: maps.google.com), otherwise the cookie won't be able to provide a valid session.
|
3. Save the cookie file to your Home Assistant configuration directory with the following name: `.google_maps_location_sharing.cookies.` followed by the slugified username of the NEW Google account. Make sure to use the `.com` TLD (e.g., maps.google.com), otherwise the cookie won't be able to provide a valid session.
|
||||||
3. Save the cookie file to your Home Assistant configuration directory with the following name: `.google_maps_location_sharing.cookies.` followed by the slugified username of the NEW Google account.
|
- For example: If your email address was `location.tracker@gmail.com`, the filename would be: `.google_maps_location_sharing.cookies.location_tracker_gmail_com`.
|
||||||
- For example: if your email was `location.tracker@gmail.com`, the filename would be: `.google_maps_location_sharing.cookies.location_tracker_gmail_com`.
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
To integrate Google Maps Location Sharing in Home Assistant, add the following section to your `configuration.yaml` file:
|
To integrate Google Maps Location Sharing in Home Assistant, add the following section to your `configuration.yaml` file:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user