Ah, darn – I see what’s happening. I’ve updated my instructions: at the moment, you need to manually edit the config_entries.py file within the Home Assistant package (homeassistant/config_entries.yaml) and add seventeentrack to the FLOWS list (around line 129):
i followed your instructions, but got the folowing error:
Log Details (ERROR)
Mon Jun 04 2018 20:11:53 GMT+0200 (Central Europe Daylight Time)
Error loading custom_components.sensor.seventeentrack. Make sure all dependencies are installed
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.6/site-packages/homeassistant/loader.py”, line 86, in get_component
module = importlib.import_module(path)
File “/srv/homeassistant/lib/python3.6/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 978, in _gcd_import
File “”, line 961, in _find_and_load
File “”, line 950, in _find_and_load_unlocked
File “”, line 655, in _load_unlocked
File “”, line 678, in exec_module
File “”, line 205, in _call_with_frames_removed
File “/home/homeassistant/.homeassistant/custom_components/sensor/seventeentrack.py”, line 9, in
from homeassistant.components.seventeentrack.const import (
ModuleNotFoundError: No module named ‘homeassistant.components.seventeentrack’
@tielemans.jorim Apologies, but I’m not a Hass.io authority. Recommend you reach out on the Discord forum and see if someone there can tell you where to find this file.
OK so I added ‘seventeentrack’ to config_entries.yaml and indeed I am now seeing the configuration UI.
However, after selecting the “Account” method and entering my information, after a few seconds this log message was displayed:
2018-06-05 07:01:43 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry chris@<redacted>.com for seventeentrack
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/homeassistant/config_entries.py", line 186, in async_setup
result = await component.async_setup_entry(hass, self)
File "/root/.homeassistant/custom_components/seventeentrack/__init__.py", line 59, in async_setup_entry
await hass.async_add_job(seventeentrack.update)
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/root/.homeassistant/custom_components/seventeentrack/__init__.py", line 125, in update
self.update_ad_hoc()
File "/root/.homeassistant/custom_components/seventeentrack/__init__.py", line 135, in update_ad_hoc
self.ad_hoc_packages = self._client.track.find(*self.tracking_numbers)
File "/root/.homeassistant/deps/lib/python3.6/site-packages/py17track/track.py", line 26, in find
raise InvalidTrackingNumberError('Invalid data')
py17track.exceptions.InvalidTrackingNumberError: Invalid data
Thanks! Your logs are confusing: it looks like you’re trying the “Account” method, but the exception is thrown because it can’t find a tracking number (indicative of the “Ad Hoc” method). I just pushed a new __init__.py to my fork that includes some extra logging; could you replace yours with that one, make sure your logging is set to DEBUG, and post the results here?