Home Assistant Community

17Track.net

#61

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

#62

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 !

#63

@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
#64

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
#65

@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) ?

#66

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
#67

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):

2 Likes
#68

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?

#69

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.

#70

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

#71

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.

#72

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
    show_archived=self._show_archived)
  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__
    self.__attrs_post_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