Tried adding this integration several times but it just doesn’t want to create sensors.
Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:359
Integration: Sensor (documentation, issues)
First occurred: 15:18:38 (2 occurrences)
Last logged: 15:25:27
Error while setting up postnl platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 290, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/postnl/coordinator.py", line 47, in _async_update_data
colli = track_and_trace_details['colli'].get(shipment['barcode'], {})
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
KeyError: 'colli'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 359, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/postnl/sensor.py", line 19, in async_setup_entry
await coordinator.async_config_entry_first_refresh()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 262, in async_config_entry_first_refresh
raise ex
homeassistant.exceptions.ConfigEntryNotReady: 'colli'
@Kliko could you please update to the latest beta release?
@schumi2004 ah, I see that I made a little mistake. Hopefully I fixed it. Could you please update to the latest beta release?
Both issues are related to responses from the PostNL API. For some reason the track and trace API doesn’t return any data for the track and trace codes.
I am very curious what the PostNL track and trace API returns for those barcodes. Is there a way you can send me privately more details? It’s very hard to debug without the response from the API.
The browser extension is only needed when you install the integration. You do not need to use it constantly.
I am not experienced with Opera, but the chrome extension uses a common browser API. According to this documentation Opera supports the API. So, creating an Opera extension should be possible.
Hey Home assistant enthusiasts! I’m installing the PostNL integration today and it feels like I’m almost there. I have authenticated it, and the default (small card) works. The attributes show my past parcels so I’m good from the data-fetching side.
I keep getting the ‘no card type configured’ error on my dashboard after doing all of the steps. I neither can find the card in the menu when editing the dashboard.
Had a quick go with the component and looking good so far. Have to wait till more packages arrive
Unfortunately I do not have the time (and perhaps knowledge) to manage the lovelace card. It might even be too much outdated for today’s standards of Home Assistant. Anyone is free to take over development and submit it to HACS for inclusion. Or start from scratch
I am hoping that one day we have one single card showing all packages of different vendors. I know DHL launched “Mijn DHL” a while back, long after the postNL integration and card were created. Might be interesting for someone to review if they can reverse engineer that DHL app and let it work together with the PostNL integration leading to one single source of truth regarding our packages. #wish
Really awesome that you guys got it working!
Does anyone know how to get rid of specific text + icons in the lovelace card ?
( I marked it red in the screenshot below ) TY!