Hi all,
I’m having problems with the Google Maps Location Sharing component.
Edit: I should mentions that I’m running the latest HA 0.76 on hass.io
Edit 2: I have tried deleting the cookies file below, and rebooting at which point the error message I was getting changes to: Could not open pickle file, either file does not exist or no read access.
and then returns to the one included below after a reboot (once the cookie file has been created).
I’ve followed the component instructions correctly as far as I can tell, and it seems to have made an .google_maps_location_sharing.cookies
file, but I’m getting an error in my HA logs:
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 183, 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 44, in setup_scanner
scanner = GoogleMapsScanner(hass, config, see)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/google_maps.py", line 63, in __init__
hass.config.path(CREDENTIALS_FILE))
File "/usr/local/lib/python3.6/site-packages/locationsharinglib/locationsharinglib.py", line 370, in __init__
cookies_file=cookies_file)
File "/usr/local/lib/python3.6/site-packages/locationsharinglib/locationsharinglib.py", line 194, in __init__
if cookies_file and self._validate_cookie(cookies_file):
File "/usr/local/lib/python3.6/site-packages/locationsharinglib/locationsharinglib.py", line 221, 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
The instructions say:
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.
But when I visit the device activity page, there are no listings for my HA instance.
Something has gone awry here, anyone know of any solutions?