Home Assistant Community



Same question, didn’t find the solution to display each sensor created by package ID :confused:


Hello ! Thank you for this component ! Perfect time ! :slight_smile:
However, like others, it’s complicated to manage each package in a view. Is it possible to put entities in a sub domain (eg. sensor.17track.*) ?
I have the same error than above:
Entity id already exists: sensor.XXXXXX. Platform seventeentrack does not generate unique IDs

Thank you again !


@marcb and @minims see https://github.com/home-assistant/home-assistant/issues/18840 - there is a PR already merged adding more “sane” entity names.

1 Like

Hi, having the same error every 10 minutes,

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 343, in _async_add_entity
    raise HomeAssistantError(msg)
homeassistant.exceptions.HomeAssistantError: Entity id already exists: sensor.un591019467cn. Platform seventeentrack does not generate unique IDs

@maxandersen - It’s great thanks.
Can you also please make a UI to show all packages in a table like this:
https://github.com/tr1plus/ha-aftership (including the last update date) ?


Having it all in one sensor would work too and is easily manageable especially if one is planning to display it in a table like what is used in https://github.com/custom-components/sensor.aftership/blob/master/custom_components/sensor/aftership.py
I am using it already with a custom:list-card - works beautifully

17 track.net - packages in table

Hi all – FYI, this PR adds the desired functionality mentioned by several people above (e.g., a JSON attribute that shows packages for each summary sensor):


I’m using Hass on Ubuntu (not Hass.io) and I don’t have 17track component in Integration Panel. I’d like to manage my tracking numbers like in #14 post. Any suggestions how to do it?


Since this is a sensor platform and not a standalone component, you won’t see anything in the Integrations Panel. You’ll need to follow the documentation and modify your configuration.yaml file.


Hi @bachya,
Is it possible to show all the packages in a table with their status (without lovelace) ?


Hello, while I looked for 17track API, I saw this API https://market.mashape.com/apidojo/17track. You may be interested in it. Give it a try.


Hi, I am getting this error now:

ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform seventeentrack
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 126, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=hass.loop)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 416, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/seventeentrack/sensor.py", line 78, in async_setup_platform
    await data.async_update()
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/seventeentrack/sensor.py", line 285, in _async_update
  File "/usr/local/lib/python3.7/site-packages/py17track/profile.py", line 87, in packages
    packages.append(Package(package['FTrackNo'], **kwargs))
  File "<attrs generated init b8f065d2d53bade8cb38c947eb77a096f9d6ea7f>", line 12, in __init__
  File "/usr/local/lib/python3.7/site-packages/py17track/package.py", line 272, in __attrs_post_init__
    self, 'destination_country', COUNTRY_MAP[self.destination_country])
KeyError: 9009