Google Maps help

I’m trying to implement Google Maps for location tracking. I’ve created a second google account for location sharing. This new account is in my configuration.yaml file. I’ve got these errors in my log:

2018-12-03 17:44:43 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform google_maps Traceback (most recent call last): File “/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/init.py”, line 184, in async_setup_platform disc_info) File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 56, in run result = self.fn(*self.args, **self.kwargs) File “/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/google_maps.py”, line 46, in setup_scanner scanner = GoogleMapsScanner(hass, config, see) File “/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/google_maps.py”, line 65, in init hass.config.path(CREDENTIALS_FILE)) File “/usr/local/lib/python3.6/site-packages/locationsharinglib/locationsharinglib.py”, line 392, in init cookies_file=cookies_file) File “/usr/local/lib/python3.6/site-packages/locationsharinglib/locationsharinglib.py”, line 216, in init if cookies_file and self._validate_cookie(cookies_file): File “/usr/local/lib/python3.6/site-packages/locationsharinglib/locationsharinglib.py”, line 243, in _validate_cookie raise InvalidCookies(message) locationsharinglib.locationsharinglibexceptions.InvalidCookies: The cookies provided do not provide a valid session.Please authenticate normally and save a valid session again

I’ve tried to use get-maps-cookies. from this message Google Maps Location Sharing Cookie Issue, but I can’t get it to work since I’m using Docker. I’ve tried multiple google searches about this and have found nothing.

Any suggestions? Thanks!

1 Like

bumping this up.

Hi all, I have created an alpha of a cookiegetter project that drives a browser through selenium and saves the cookies. Please look at https://github.com/costastf/mapscookiegettercli/blob/master/USAGE.rst for usage (it is quite simple :slight_smile: ) and report issues at the tracker.