Google Maps device tracking does not work in 0.89.1

I did a force-reinstall of my Hassio 0.89.1 But still my GoogleMaps sharing device does not work. Anyone an idea?

The cookie file is created:

mrt 10 13:33 [email protected]

The configuration is:

device_tracker:
  - platform: google_maps
    username: '[email protected]'
    password: 'secret'
    max_gps_accuracy: 200

The errror message:

2019-03-10 13:36:30 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform google_maps Traceback (most recent call last): File "/mnt/disk1/homeassistant/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 "/mnt/disk1/homeassistant/lib/python3.6/site-packages/homeassistant/components/device_tracker/google_maps.py", line 46, in setup_scanner scanner = GoogleMapsScanner(hass, config, see) File "/mnt/disk1/homeassistant/lib/python3.6/site-packages/homeassistant/components/device_tracker/google_maps.py", line 67, in __init__ self._update_info() File "/mnt/disk1/homeassistant/lib/python3.6/site-packages/homeassistant/components/device_tracker/google_maps.py", line 79, in _update_info for person in self.service.get_all_people(): File "/mnt/disk1/homeassistant/lib/python3.6/site-packages/locationsharinglib/locationsharinglib.py", line 439, in get_all_people people = self.get_shared_people() + [self.get_authenticated_person()] File "/mnt/disk1/homeassistant/lib/python3.6/site-packages/locationsharinglib/locationsharinglib.py", line 400, in get_shared_people for info in output[0]: TypeError: 'NoneType' object is not iterable

Just want to confirm I’m having the same issue following upgrade to 0.89.1.

this has been happening on and off since september, I’m using a fix posted in this thread.

It’s supposed to have been incorporated in the base code but each release I try without the patch and it fails. Seems to be related to authentication.

I changed the file, based on your solution, add the ‘import re’ in top of file.

/homeassistant/lib/python3.6/site-packages/locationsharinglib/locationsharinglib.py

  • Replace the def _authenticate() function
  • Remove the google cookie file
  • Restart HassIO

Still got that error

I cannot help you with a fix, but can say it’s working for me with 89.1 and has been working for several months without issues over several updates. I do remember that it was a pretty big pain to get it working the 1st time though. Seemed like it was never going to work, and then just started working.

I created a gmail account just for my HA instance, and then share my location to that account, not sure if that helps or not, but thought I’d share anyway