Home Assistant release with the issue:
0.98 and 980b2
-->
Last working Home Assistant release (if known):
0.980b1
Operating environment (Hass.io/Docker/Windows/etc.):
Hass.io, Docker Ubuntu 14.8
Component/platform:
Google maps location sharing
Description of problem:
98.0b1 working great but 98.0b2 and 0.98 Google location or battery info are not updating, will only update on a restart. No errors in logs.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
```- platform: google_maps
**Traceback (if applicable):**
Additional information:
While I can confirmed this was an issue after upgrading to 0.98.0, I generated a new cookie and restarted HA and all worked for the first initial poll. Tracking would not update after the one instance. Definitely an issues here.
Having the same problem, I have a combination of Google maps and Fritz box WiFi tracking and presence was completely off. Did a rollback to 0.97.1
Have the same issue. For me it's a big problem as phone Wifi disconnects for ~25 minutes to save battery and GPS was used to "cover" not_home parts
I did exactly the same as @WedHumpDay. Whole house went dark when my daughter went to bed because apparently my wife and I weren't home... :laughing:
I haven't seen any errors related to google_maps in the log file either.
For some reason, it doesn't update unless you manually add a scan interval. Adding
scan_interval: 180
fixes it.
I already had a scan_interval in place. But this does not help. I enabled some debugging for the locationsharinglib.Service and saw, that the issue is because the library tries to also add the authenticated user itself to the result. And this fails. I removed it, the error in the logs is gone, but the component is still only updated once...
@lweberru I added scan_interval=60 and it now seems to be updating. Not sure if that's why but it seems to be worth a try for those that don't have it.
I already tried 2 different scan_interval levels, does not change anything. I saw in the logs, that the issue is perhaps the authenticated_user itself but even I removed it, it is still not running multiple times, so there are multiple issues with this service I fear.
Same problem here, no error logs. updating device track only on restart.
Setting scan_interval helped in my case
Setting scan_interval helped in my case
what value did you define?
scan_interval isnt working on my end. Will be rolling back (restoring snapshot prior upgrade).
Update: Rolled Back to 0.79.x and working again.
scan_interval: 60 worked for me.
Whom from development taking this action item on?
On version 0.98.1, Hassio. Same issue. Manually setting a scan interval (I used "60") does seem to resolve.
I have the same issue. Rollback to 0.79.1
might be related: https://github.com/home-assistant/home-assistant/pull/26165
I found the issue but not sure how to submit for the fix
components/google_maps/device_tracker.py
Line 55
From
self.scan_interval = config.get(CONF_SCAN_INTERVAL) or timedelta(60)
To
self.scan_interval = config.get(CONF_SCAN_INTERVAL) or timedelta(seconds=60)
Temporary work around add scan_interval
- platform: google_maps
username: your_gmail
scan_interval: 60
Most helpful comment
For some reason, it doesn't update unless you manually add a scan interval. Adding
scan_interval: 180
fixes it.