Core: device_tracker failed to load due to gpslogger

Created on 6 Jun 2019  路  12Comments  路  Source: home-assistant/core

Home Assistant release with the issue:
0.94.0

Last working Home Assistant release (if known):
0.93.0

Operating environment (Hass.io/Docker/Windows/etc.):

hassbian

Component/platform:

https://www.home-assistant.io/components/gpslogger/

Description of problem:
After upgrade of HA from 0.93.0 to 0.94.0 device tracker fails to load

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

device_tracker:
  - platform: gpslogger
  - platform: bluetooth_tracker

Traceback (if applicable):

Jun  6 09:56:35 hassbian hass[665]: #033[32m2019-06-06 09:56:35 INFO (Thread-21) [homeassistant.loader] Loaded device_tracker from homeassistant.components.device_tracker#033[0m
Jun  6 09:56:35 hassbian hass[665]: #033[32m2019-06-06 09:56:35 INFO (Thread-5) [homeassistant.loader] Loaded gpslogger from homeassistant.components.gpslogger#033[0m
<snip>
Jun  6 10:00:59 hassbian hass[665]: #033[31m2019-06-06 10:00:59 ERROR (MainThread) [homeassistant.setup] Error during setup of component device_tracker#033[0m
Jun  6 10:00:59 hassbian hass[665]: Traceback (most recent call last):
Jun  6 10:00:59 hassbian hass[665]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py", line 153, in _async_setup_component
Jun  6 10:00:59 hassbian hass[665]:     hass, processed_config)
Jun  6 10:00:59 hassbian hass[665]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/device_tracker/__init__.py", line 115, in async_setup
Jun  6 10:00:59 hassbian hass[665]:     legacy_platforms = await setup.async_extract_config(hass, config)
Jun  6 10:00:59 hassbian hass[665]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/device_tracker/setup.py", line 109, in async_extract_config
Jun  6 10:00:59 hassbian hass[665]:     platform.name, platform.type))
Jun  6 10:00:59 hassbian hass[665]: ValueError: Unable to determine type for gpslogger: None#033[0m
Jun  6 10:00:59 hassbian hass[665]: #033[31m2019-06-06 10:00:59 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of proximity. Setup failed for dependencies: device_tracker#033[0m
Jun  6 10:00:59 hassbian hass[665]: #033[31m2019-06-06 10:00:59 ERROR (MainThread) [homeassistant.setup] Setup failed for proximity: Could not set up all dependencies.#033[0m
Jun  6 10:00:59 hassbian hass[665]: #033[31m2019-06-06 10:00:59 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of ios. Setup failed for dependencies: device_tracker#033[0m
Jun  6 10:00:59 hassbian hass[665]: #033[31m2019-06-06 10:00:59 ERROR (MainThread) [homeassistant.setup] Setup failed for ios: Could not set up all dependencies.#033[0m
Jun  6 10:01:12 hassbian hass[665]: #033[31m2019-06-06 10:01:12 ERROR (Thread-18) [homeassistant.components.google_travel_time.sensor] Unable to find entity device_tracker.4dd0404d#033[0m
Jun  6 10:01:12 hassbian hass[665]: #033[31m2019-06-06 10:01:12 ERROR (Thread-20) [homeassistant.components.google_travel_time.sensor] Unable to find entity device_tracker.4dd0404d#033[0m



Additional information:
also integrations screen remains blank, not sure if that's related.

device_tracker

All 12 comments

I'm on 0.94, and my device tracker wont load, I got life 360

I just updated to 0.94 and get Platform not found: device_tracker.icloud3 error message in HA log file socustom_component does not load. Worked fine before update.

Do any changes need to be made to file name or location?

A sensor custom_component loads without any problems.

Remove
- platform: gpslogger
from your config

Remove
- platform: gpslogger
from your config

I can confirm that this resolved the issue for me

more like a work-around then, as I need gpslogger...

the webhook gives the device now, i had the struggle also

@MagieMalone gpslogger uses the Integrations page now. This error is because you still have the legacy component listed in your config. The fix is to remove the component, start up HA, and then re-add gpslogger as an Integration (if you have not already).

had turn off gpslogger on ur mobile device and turn it back on after restart otherwise the device is not found in the webhook.

yep, I just found out it's still loaded via integrations webhook, so it's indeed an obsoleet config, too bad it breaks HA startup like that though

I do have a problem now where the gpslogger sensor state last_updated is not showing the last updated but last HA start instead

Also having this problem https://github.com/home-assistant/home-assistant/issues/24434

@fernandex00 I assume you're referring to my custom component. For 0.94.x you need to upgrade to version 2.10.1 of the custom component. For 0.95.x life360 has been added as a standard component and you should switch to using that. See the release notes.

Closing this issue since the gpslogger device tracker is set up via integrations page from 0.94 and the config requires updating.

Was this page helpful?
0 / 5 - 0 ratings