Lovelace Aftership Card

Known by me, I don’t think there is a github issue on it. I doubt I’ll fix it, at least anytime soon :slight_smile: Probably just need to mess around with text overflow: https://www.w3schools.com/cssref/css3_pr_text-overflow.asp

Thx for the clarification, Ian !

Hey am I missing something or does this card not show the expected delivery date? I see it in the data from the sensor, but it’s not included on the card.

I don’t know much about .js but I was hoping to add that information in, so I looked at the code for the card and it already has a line talking about “expected_delivery” so that makes me think it should be showing somewhere.

I also see a line about “days until delivery” but I don’t see that anywhere on the card either…

1 Like

It is shown on hover

So it is! Thank you. Any thoughts about making it more prominent? Maybe under the icon of the van or something? Personally that’s the information I’m most interested in.

I’m not against but probably won’t do the change. PRs welcome

Is there anything going on with the Aftership sensor ?
I am on HA 106.5 and the sensor is not getting created.

In the logs, I see following error:

020-03-10 15:09:11 ERROR (MainThread) [homeassistant.components.sensor] aftership: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 312, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 474, 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]

Thx for confirming

just installed the sensor with this card, works great!

Not working since a couple of days ago any changes ?

just added this to my setup and it seems to be working (tested by adding a new package to track).

A basic question about the sensor: Is there a possibility to automatically add tracking numbers to Aftership or do I need to add every tracking number manually?

Thanks for adding the slug field for carriers. Aftership has a .csv file for a list of carriers and the correct slug abbreviation. Any way this could be integrated into the card either as a drop down menu or search box for the correct slug to use. [AfterShip_Courier_csv](https://docs.aftership.com/couriers/download)

I tried to add this custom card to, but I have some problem that my aftership sensor is no working (following error: No tracking data found. Check API key is correct: {'code': 403, 'message': "You don't have permission to access AfterShip API. Select a plan at https://admin.aftership.com/settings/billing to get access to premium features", 'type': 'Forbidden'}
and if I check on their site https://www.aftership.com/pricing/ the free plan has no tracking api available. so is the aftership integration not working anymore (for free)?
what could be an alternative? also with this nice lovelace custom card?
thanks for your help

1 Like

hey @Scoobydoofus if you’re still interested, I’m also wanting this information at a glance and not just a hover. I’ve finally sat down and looked at it and after learning a bit of js, I was able to change some stuff around. I’m trying to figure out what to display (for example, the last location update time doesn’t need to be below the expected delivery date). If you have any suggestions of what data to show, feel free to share. I’ll figure out where to post the .js once I’m done with it.

Also, note that getting HA/browser to reload a new .js file is quite not fun.

Good morning dear friend,
Have you done any tests recently? has the API become paid?
Anyone still using Aftership? or everyone went to 17Track?
Thanks for your advices.