Easily track all your package/parcel!

Big disclaimer, I made this with ChatGPT so YMMV.

I made a card which allows you to add the tracking, zipcode and name for the package.

Step 1:
Make 3 text helpers:

  • Tracking ID (input_text.tracking_id)
  • Zipcode (input_text.zipcode)
  • Package Name (input_text.package_name)

Step 2:
Make an automation with:

alias: Track Package Automation
trigger:
  platform: state
  entity_id: input_text.tracking_id
condition: []
action:
  - service: parcelsapp.track_package
    data:
      tracking_id: "{{ states('input_text.tracking_id') }}"
      zipcode: "{{ states('input_text.zipcode') }}"
      name: "{{ states('input_text.package_name') }}"

Step 3
Make a card with:

type: vertical-stack
cards:
  - type: entities
    entities:
      - entity: input_text.tracking_id
        name: Tracking ID
      - entity: input_text.zipcode
        name: Zipcode
      - entity: input_text.package_name
        name: Package Name
  - type: button
    name: Track Package
    tap_action:
      action: call-service
      service: automation.trigger
      service_data:
        entity_id: automation.track_package_automation

I’m new with HA. So if there is there is a better way, please let me know.

1 Like

Seems like this is a good service (market competition is always healthy), but I don’t understand the package count restriction.

I have absolutely zero need to track freight lines, air/cargo shipments, or massive amounts of outbound packages.

However, I am a consumer that shops online a lot, and we definitely get more than 10 shipments/packages per month.

Therefore, it seems unfair to penalize a non-enterprise user for this service by package number - it should instead be restricted by type of package being tracked and/or direction of the package, as well as if the user is an individual / SMB / enterprise.

Bottom line: I want to track the major package carriers in Home Assistant (DHL/FedEx/USPS/UPS/Amazon) without a restriction on the number of packages (or an arbitrarily high number that a consumer wouldn’t normally hit like 25 or 50).

I just can’t justify another subscription in my life, for the sole purpose to track packages in HA.

1 Like

I think you are complaining to the wrong people. I think 30 per month would be reasonable, but you need to tell the people who run parcelsapp.com.

1 Like

Ah, my apologies, I should have clarified a few things…

  1. I thought the author of that website was on this thread, based on reading through it, but I could be mistaken!

  2. This was also a general “Where are the good, free (or very cheap/PAYG) parcel tracking APIs for consumers/end users that work with HA?” sort of post. Everything I’ve read suggests that these integrations are all for commercial/industrial applications, not end users. It seems to be a very difficult landscape to navigate!

17track works.

note that I got a response from the developer of parcelsapp, noting that he had to stop the free tier for now.
So I guess this integration does not work for the free tier for now.

That would explain things. I have been meaning to investigate a few problems.

Sigh back to 17track.

This is disappointing news. I was hoping to find an alternative to 17track, as its updates are often delayed.

Hello :slight_smile:

Have you try this app ? It’s only for iphone but i’m looking for integration ahah

Sorry, i found it :smiley:

Check PostNL Integration

For postnl (and dhl)

it seems this is not working with numeric only tracking numbers (DPD)
do you have any idea on how to fix it?

@le.storm1er maybe you can help?
maybe fixing the method in coordinator.py to better handling jinja templating?
i can give you a tracking number that works when calling the service from dev tools, but doesn’t work when putting it in a text helper and use it in an automation.

I use Parcel as well. I wrote the developer asking them to consider making a hook or API for Home Assistant, but they were indifferent at the time.

EDIT: Actually, the API for Parcel is available, and a Home Assistant integration is available!

I started using this integration from few days. and don’t have any problem with numeric only tracking ID (in my case it’s GLS)

I am looking at using 17track, or parcelsapp in some automations. Namely a TTS notification when a parcel is delivered. (Sick of porch pirates)

My issue is two pronged, 17track integration cannot be registered any more, seems to need to use the API Key now. parcelsapp for the life of me I cannot figure out how to add tracking numbers onto my account.

Can anyone point me in the right direction for this…

Greg

  1. 17track HA integration has already updated the code to fix the login issue … it will be available with next HA Core Release (planned for 2nd July)

  2. To add a tracking with Parcelsapp you need to use the HA Action (parcelsapp.track_package) from HA Developer Tools (it’s not saved in your account… it is just added in HA)

  3. To remove tracking you need to create a card with the following code

type: custom:auto-entities
card:
  type: entities
  title: Package Removal
  state_color: true
filter:
  include:
    - domain: sensor
      entity_id: sensor.parcelsapp_tracking_*
      options:
        type: custom:button-card
        show_icon: false
        tap_action:
          action: call-service
          service: parcelsapp.remove_package
          service_data:
            tracking_id: |
              [[[ return entity.attributes.tracking_id ]]]
          confirmation:
            text: Are you sure you want to delete this package?
        name: |
          [[[
            return `<b>${entity.attributes.name}</b> - <span style="color: #2196f3;">${entity.attributes.tracking_id}</span>`;
          ]]]
        styles:
          card:
            - padding: 8px
            - justify-content: flex-start
            - text-align: left
          name:
            - justify-self: start
            - text-align: left
            - font-size: 14px

Made an account on parcelsapp.com and got an api key at Parcels App Dashboard.

When entering the api key in the integration it returns ‘invalid api key’, no confirmation email either for over an hour…

Are free users banned?

Don’t think the free tier is working any more.

Mine still works, but I registered it ages ago.