Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPS Logger Not Updating in 0.107.0 #32947

Closed
gregg098 opened this issue Mar 18, 2020 · 4 comments
Closed

GPS Logger Not Updating in 0.107.0 #32947

gregg098 opened this issue Mar 18, 2020 · 4 comments

Comments

@gregg098
Copy link

The problem

GPS Logger no longer updates after upgrade to 0.017.0

Environment

  • Home Assistant release with the issue: 0.107.0
  • Last working Home Assistant release (if known): 0.106.x
  • Operating environment (Hass.io/Docker/Windows/etc.): Docker (not Hass.io)
  • Integration causing this issue: GPS Logger
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/gpslogger/

Problem-relevant configuration.yaml

All configuration through the front end. No special configuration entries

N/A

Traceback/Error logs

2020-03-18 12:10:12 ERROR (MainThread) [homeassistant.util.logging] Exception in _async_receive_data when dispatching 'gpslogger_tracker_update': ('xxx_phone', (<lat>, <long>), 89.0, <some info>, {'speed': 0.0, 'direction': 0.0, 'altitude': <alt>, 'provider': 'gps', 'activity': ''})
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/gpslogger/device_tracker.py", line 177, in _async_receive_data
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 297, in async_write_ha_state
    self._async_write_ha_state()  # type: ignore
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 320, in _async_write_ha_state
    state = self.state
  File "/usr/src/homeassistant/homeassistant/components/device_tracker/config_entry.py", line 105, in state
    self.hass, self.latitude, self.longitude, self.location_accuracy
  File "/usr/src/homeassistant/homeassistant/components/zone/__init__.py", line 102, in async_active_zone
    zone.attributes[ATTR_LATITUDE],
KeyError: 'latitude'

Some information scrubbed for privacy

Additional information

Verified the correct Cloud webhook URL
This is happening to both my phone and my wife's phone
Verified all settings in GPS Logger are per the integration web page. Here is my HTTP Body setting

latitude=%LAT&longitude=%LON&device=gregg_phone&accuracy=%ACC&battery=%BATT&speed=%SPD&direction=%DIR&altitude=%ALT&provider=%PROV&activity=%ACT 
@gregg098
Copy link
Author

I went ahead and removed the integration, restarted Home Assistant, then re-added the integration and updated the webhook URL in my GPS Logger app. Same error.

@geekofweek
Copy link
Contributor

Seems similar to this error #32943

@gregg098
Copy link
Author

@geekofweek Yep think it is similar. Something broke a lot of device trackers since the latest release candidate the other day.

@dshokouhi
Copy link
Member

Looks like this is a zone issue to temporarily resolve it try adding default_config or configuring a zone in your configuration.yaml

I am going to close this in favor of #32943 as we have more info about the issue there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants