Something with your states must be tripping up the card. I’ll see if I can reproduce with those states.
Can you provide a dump of your aftership states here or DM them to me so I can test?
No, it doesn’t
If you click on an entity in the states view, the dump of the json object will then be at the top of the page
Now i get it, i get a “4” value in State, an then this:
{
“attribution”: “Information provided by AfterShip”,
“intransit”: 4,
“trackings”: [
{
“name”: “Sensores Presión”,
“tracking_number”: “RU375144085NL”,
“slug”: “postnl-international”,
“link”: “https://track.aftership.com/postnl-international/RU375144085NL”,
“last_update”: “2019-08-12T00:19:07+00:00”,
“expected_delivery”: null,
“status”: “InTransit”,
“last_checkpoint”: {
“slug”: “postnl-international”,
“city”: null,
“created_at”: “2019-08-12T00:19:02+00:00”,
“location”: null,
“country_name”: null,
“message”: “The item is on transport to the country of destination”,
“country_iso3”: null,
“tag”: “InTransit”,
“subtag”: “InTransit_007”,
“subtag_message”: “Departure Scan”,
“checkpoint_time”: “2019-08-11T17:28:00”,
“coordinates”: [],
“state”: null,
“zip”: null
}
},
{
“name”: “Carcasa Exterior”,
“tracking_number”: “RB772559558SG”,
“slug”: “singapore-post”,
“link”: “https://track.aftership.com/singapore-post/RB772559558SG”,
“last_update”: “2019-08-01T11:06:24+00:00”,
“expected_delivery”: null,
“status”: “InTransit”,
“last_checkpoint”: {
“slug”: “singapore-post”,
“city”: null,
“created_at”: “2019-08-01T11:06:19+00:00”,
“location”: “AR”,
“country_name”: “Argentina”,
“message”: “Arrival at Destination Post (Country: AR)”,
“country_iso3”: “ARG”,
“tag”: “InTransit”,
“subtag”: “InTransit_004”,
“subtag_message”: “Arrived at destination country”,
“checkpoint_time”: “2019-07-12T00:00:00”,
“coordinates”: [],
“state”: null,
“zip”: null
}
},
{
“name”: “Cámara Domo”,
“tracking_number”: “RU927334903CN”,
“slug”: “china-post”,
“link”: “https://track.aftership.com/china-post/RU927334903CN”,
“last_update”: “2019-08-09T17:12:03+00:00”,
“expected_delivery”: null,
“status”: “InTransit”,
“last_checkpoint”: {
“slug”: “china-post”,
“city”: null,
“created_at”: “2019-07-17T10:40:39+00:00”,
“location”: “布宜诺斯艾利斯”,
“country_name”: null,
“message”: “发送到境外海关部门”,
“country_iso3”: null,
“tag”: “InTransit”,
“subtag”: “InTransit_001”,
“subtag_message”: “In Transit”,
“checkpoint_time”: “2019-07-15T07:01:00”,
“coordinates”: [],
“state”: null,
“zip”: null
}
},
{
“name”: “Cámara SXJ02ZM”,
“tracking_number”: “RU374543890NL”,
“slug”: “postnl-international”,
“link”: “https://track.aftership.com/postnl-international/RU374543890NL”,
“last_update”: “2019-08-07T22:47:50+00:00”,
“expected_delivery”: null,
“status”: “InTransit”,
“last_checkpoint”: {
“slug”: “postnl-international”,
“city”: null,
“created_at”: “2019-07-12T22:42:44+00:00”,
“location”: null,
“country_name”: null,
“message”: “The item is being processed by customs”,
“country_iso3”: null,
“tag”: “InTransit”,
“subtag”: “InTransit_006”,
“subtag_message”: “Customs clearance started”,
“checkpoint_time”: “2019-07-12T09:01:00”,
“coordinates”: [],
“state”: null,
“zip”: null
}
}
],
“unit_of_measurement”: “packages”,
“friendly_name”: “aftership”,
“icon”: “mdi:package-variant-closed”
}
I would, but now I have a different error. The aftership component has an error when starting up. It was working fine and I would have been able to get a dump for you, but now something else… hmm…
This is the error if anyone has an idea, but I’ll try and work this out elsewhere and not take this off topic…
aftership: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 291, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 417, in async_device_update
await self.async_update()
File "/usr/src/homeassistant/homeassistant/components/aftership/sensor.py", line 184, in async_update
else track["checkpoints"][-1]
IndexError: list index out of range
Ok, got it working. I manually set a package as delivered as it wasn’t updating from the courier. I just deleted it, rebooted HA and the sensor is working again.
I’ll PM you a dump of the data now.
any news on this?
Thanks for everyone’s patience. I haven’t been doing much coding in my free time this summer but am starting to get back into the swing of things. Version 1.1.1 has now been released and should address the empty card due to null location’s for packages in transit or with location’s that failed to be properly parsed by my capitalization function.
Thanks!! How do we apply the fix?
Depends on how you installed. If via hacs, just upgrade. If manually, grab the new version from GitHub
Thanks a lot, working like a charm!!!.
It shows my actual shippings, but when i press the “+” button to add a new shipment nothing happens.
The delete feature seems to have stopped working after the last few updates.
Still not working for me. Aftership updated to 1.1.8, restarted RaspPi, popups in chrome browser are enabled for Home Assistant. I can manually delete a tracking number with a service call in dev tools, so that part is working. The pop up notice to delete a tracking entry does not appear anymore with a long press as in previous versions of this card, the only action available is to the aftership web site to view the package tracking details.
I’ll double check later, but make you’ve cleared your browser cache. There is an issue with iOS for all hold actions right now as well, in case you are using it.
I have the same problem, Installed from HACS with last version, press the “+” button and nothing happens, I can see the orders added from the aftership website.
Is there any special way to add it?
Thanks
Dear Ian,
I want to understand if there is a known issue with this card with regards to how the text is showing in the card.
When there is long text in the card:
- on computer, when resizing the browser window, the text does not properly resize (or truncate)
- on iPhone within the IOS app, the text does not properly resides inside the card
In attachment a few screenshots of the browser views (wide window and narrow window) and the IOS app view.