I just upgraded to 0.68.1 and decided to give Google Maps Device Tracker a whirl. I followed the install directions on: Google Maps - Home Assistant
HA Version: 0.68.1
HA Install: Hass.io
Server: RaspberriPi 3
Config:
device_tracker:
platform: google_maps
username: !secret google_maps_login
password: !secret google_maps_password
Setup:
Sharing my location with a new account. Attempting to login to new account from HA. Not using 2FA.
After restarting, I got this error:
Response: [None, None, ‘0ahUKEwjFvuai9uTaAhWP0YMKHawNAhAQ8ZABCAE’, ‘h5ToWoXfAo-jjwSsm4iAAQ’, None, None, ‘CP+potcFEAAaAA==’, 1800, 1525191815054, None, None, [0]]
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/locationsharinglib/locationsharinglib.py”, line 292, in get_shared_people
people = [Person(info) for info in output[0]]
TypeError: ‘NoneType’ object is not iterable
I checked the unknown device security check as explained in the install directions, and verified with Google that it was infact me trying to login.
Restarted HA and got this error:
Error setting up platform google_maps
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/components/device_tracker/init.py”, line 184, in async_setup_platform
disc_info)
File “/usr/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/lib/python3.6/site-packages/homeassistant/components/device_tracker/google_maps.py”, line 36, in setup_scanner
scanner = GoogleMapsScanner(hass, config, see)
File “/usr/lib/python3.6/site-packages/homeassistant/components/device_tracker/google_maps.py”, line 54, in init
hass.config.path(CREDENTIALS_FILE))
File “/usr/lib/python3.6/site-packages/locationsharinglib/locationsharinglib.py”, line 184, in init
if cookies_file and self._validate_cookie(cookies_file):
File “/usr/lib/python3.6/site-packages/locationsharinglib/locationsharinglib.py”, line 211, 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 deleted the .google_maps_location_sharing.cookies file. Restarted and get the first error again. Restarted… then got the second error again.
I checked the other tread, and didn’t see any help there.
Please Help!