Aftership Card by @myztillx
A copy of iantrich's aftership-card. Added configuration through the UI and ported to new lit version with the Boilerplate card as a template.
I am new to coding and frontend, especially Lit. I will do my best to address issue and keep this repository up to date.
Aftership Card is available as a custom repository in HACS.
- Open HACS
- Go to "Frontend"
- Click the Overflow menu (three vertical dots) in the top right
- Choose "Custom repositories"
- Repository:
https://github.com/myztillx/aftership-card
- Category: "Lovelace"
- Click Add
- Click "+" in bottom right
- Search for "aftership"
- Download repository
- See "After Installation" section
- Download
aftership-card.js
file from latest - Place
aftership-card.js
file intoconfig/www
folder.- I recommend creating another folder in
config/www
calledaftership-card
and placing it there.
- I recommend creating another folder in
- See "After Installation" section
Add reference to the card as a resource. Using UI
- Settings → Dashboard → Menu (top right 3 dots) → Resources
- Click "Add Resource" in the bottom right
- For HACS → URL:
/hacsfiles/aftership-card/aftership-card.js
- For manual → URL:
/local/aftership-card/aftership-card.js
- For HACS → URL:
- Choose "JavaScript Module"
Using YAML
resources:
- url: /hacsfiles/aftership-card/aftership-card.js
type: module
Name | Type | Requirement | Description | Default |
---|---|---|---|---|
type | string | Required | custom:aftership-card |
|
name | string | Optional | Card name / title | Aftership |
entity | string | Required | Home Assistant entity ID. | none |
Clicking on the icon opens the tracking page on aftership.com.
Holding on the icon prompts the user for tracking deletion.
UI Mode
- Search for card in UI mode (Custom: Aftership Card)
- Configure card with parameters above.
YAML mode
type: 'custom:aftership-card'
entity: sensor.aftership
name: Packages