I use MQTT and owntracks, but there are latency issues, where the device still reports that I am at work while at home, so I want to add an additional tracker for the same device, I settled on google maps and followed these instructions https://www.home-assistant.io/components/device_tracker.google_maps/ in configuration I have:
Log Details (ERROR)
Sun May 20 2018 09:02:23 GMT+0200 (South Africa Standard Time)
Error setting up platform google_maps
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/locationsharinglib/locationsharinglib.py”, line 99, in _populate
self._latitude = data[1][1][2]
TypeError: ‘NoneType’ object is not subscriptable
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.
Yes I did, it did not work, what worked was when I deleted the second device tracked via google maps and deleted the cookie file, I can now see one instance of google maps tracking which is great, I had to authenticate the use of HA, now I’m struggling with the second device, no error, yet it does not appear on HA.
#tracks all phones via MQtt
- platform: owntracks
#tracks my main phones using maps
- platform: google_maps
username: !secret spare_email_address
password: !secret spare_email_password
#tracks my spare phones using maps
- platform: google_maps
username: !secret email_address
password: !secret email_password