Skip to content
ha-parcel-integrationsPublic

Repository files navigation

Hermes Parcel Tracker

Release Downloads Marketplace License

📦 Part of ha-parcel-integrations, a family of package-tracking integrations for Home Assistant that all publish the same parcel format, statuses and events, so they plug into cross-carrier automations and the optional Parcel Aggregator. Browse the other carriers on the website.

💬 Questions or feedback? Join the discussion on the Home Assistant community.

A custom Home Assistant integration that tracks your Hermes (Germany, "Hermes Paket") parcels, from either of two sources:

  • Tracking codes — no account needed; you enter the tracking number yourself, just like on the myhermes.de tracking page.
  • Hermes account — log in with your Hermes account and your incoming parcels appear on their own, no codes to type.

For tracking codes: Most codes are 14 digits; some carry a single leading letter (e.g. H1003660779926301068) — enter it exactly as shown, including that letter.

ℹ️ Status vocabulary still growing

The endpoint is live and keyless, and unknown or badly-formatted numbers are handled correctly. The success payload and status vocabulary come from three independent sources that agree, confirmed against a real parcel. Any status we do not map reports unknown (never a wrong status) and logs a one-shot warning with a ready-made issue link — please report it so the mapping can be completed.

⚠️ The account source is unverified and may break

The Hermes account source talks to the interface Hermes' own mobile app uses. It is not a public API: Hermes can change or withdraw it without notice, and the account source would then stop working until the integration is updated. It has been confirmed against one real account only. The expected delivery window is always empty for account parcels until a real parcel proves it. The tracking code source is unaffected.

Contents

Features

  • Track any number of Hermes parcels by tracking code — no account needed
  • Or add a Hermes account and have its incoming parcels discovered automatically
  • Per-parcel sensor with the canonical status (registered / in_transit / out_for_delivery / delivered / …), the carrier's own status text and a tracking deep-link
  • Summary sensors: incoming parcels, next delivery, recently delivered parcels
  • Read-only Deliveries calendar with the expected delivery windows
  • hermes.track_parcel / hermes.untrack_parcel services, so a dashboard button can add a parcel
  • A contents field on every parcel, shown as the calendar event title: what an account parcel's sender wrote on the label, or your own text set with hermes.update_contents
  • Events + device triggers for no-code automations (parcel registered, status changed, delivered, delivery time changed)
  • Opt-in per-parcel status history
  • Manual refresh button and a diagnostic last-update sensor

Requirements

  • Tracking codes: a Hermes parcel and its tracking code (from the shipping confirmation email or the missed-delivery card) — no account needed
  • Hermes account: your Hermes account username and password. Note the username — the email address does not work as a login

Installation

Marketplace (recommended)

  1. Open the Marketplace and search for Hermes.
  2. Install it and restart Home Assistant if it asks you to.

Or click the button below to open it directly in the Marketplace:

Open your Home Assistant instance and open a repository inside the Marketplace.

Manual

Copy custom_components/hermes into your config/custom_components/ folder and restart Home Assistant.

Configuration

Open your Home Assistant instance and start setting up a new integration.

Or set it up by hand: add the integration via Settings → Devices & Services → Add Integration → Hermes and choose a source.

Tracking codes — there is nothing to fill in: the hub is created immediately. Then add parcels via the integration's Configure dialog, the hermes.track_parcel service, or a dashboard button. The tracking code is on your shipping confirmation email or the missed-delivery card. Only one tracking hub can exist.

Hermes account — enter your account username and password. Only the login tokens are stored, never the password; if Hermes stops accepting them you are asked for the password again. You can add more than one account, and an account can sit next to the tracking hub. An account has no tracked-parcel list — its parcels come from your account — so its Configure dialog offers settings only, and the track_parcel / untrack_parcel services only ever act on the tracking hub (update_contents works for accounts too).

On an account, contents is the description the sender put on the label, when the sender filled one in. A tracking code never carries it. Text you set with hermes.update_contents always wins, and it works for tracking-hub and account parcels alike.

Parcels from a tracking code carry the sender when Hermes names one. The integration also reads the delivery window Hermes forecasts — a time span on a delivery day, or the moment a parcel becomes collectable at a PaketShop — but no parcel has been seen with one filled in yet, so expect it to stay empty until someone reports otherwise. The receiver, the PaketShop's own name and address, the weight and the dimensions are not on this route, so those fields stay empty.

Parcels from an account carry the sender (the shop or person who sent it), the receiver's first name when Hermes provides it, and — for a parcel routed to a PaketShop — that shop's name and address as the pickup point. Hermes does not report a weight, dimensions or an expected delivery window for account parcels, so those fields stay empty.

Options

Open Configure on the integration entry:

Section Option Default Description
Parcels Add / remove — Manage the tracked tracking codes (tracking hub only). Changes apply immediately, no restart.
Delivered parcels Filter by / amount last 7 days How long delivered parcels stay visible on the delivered sensor.
Parcel history Include status history off Adds a history attribute per parcel with each status update.

Dynamic polling

Instead of polling Hermes at the same rate around the clock, the integration adjusts its own cadence to what your tracked parcels are actually doing:

  • Quiet hours — no polling between 00:00–06:00 local time, aside from one catch-up check at each end of that window (around midnight and around 6 AM).
  • Hot (every 15 minutes) — as soon as a tracked parcel is out_for_delivery, starting an hour before its expected delivery time (or immediately if no time is known).
  • Mid (every 45 minutes) — any other in-progress parcel.
  • Fully stopped — nothing is tracked, or every tracked parcel has been delivered. Adding a parcel back (via the options dialog, the hermes.track_parcel service, or a dashboard button) resumes polling immediately.
  • A small, fixed per-hub offset is added on top, so not every Hermes hub out there polls at exactly the same second.

This is not user-configurable — it is the only polling behaviour for tracking codes. A Hermes account polls its whole inbox in one request every 45 minutes and never suspends.

Removal

Standard HA removal applies: Settings → Devices & Services → Hermes → ⋮ → Delete. Nothing is stored on Hermes's side.

Sensors

Entity Description
sensor.hermes_incoming_parcels Number of active tracked parcels, full list under the parcels attribute
sensor.hermes_parcel_<code> One per tracked parcel; state is the canonical status, attributes carry the full normalised parcel
sensor.hermes_next_delivery Earliest expected delivery moment across all active parcels
sensor.hermes_en_route_to_pickup_point Incoming parcels routed to a pickup point that have not arrived there yet
sensor.hermes_awaiting_pickup Incoming parcels that are ready to collect at a pickup point
sensor.hermes_delivered_parcels Recently delivered parcels (see the retention option)
calendar.hermes_deliveries Read-only calendar of expected deliveries, no extra API calls
sensor.hermes_last_successful_update Diagnostic: when Hermes was last polled successfully

Entities of an account entry are named after the account, e.g. sensor.hermes_<username>_incoming_parcels.

A delivered parcel moves from its per-parcel sensor to the delivered sensor automatically.

A Deliveries calendar entity is also created, showing expected delivery windows for active parcels — read-only, no extra API calls.

A Refresh button entity forces an immediate poll, without waiting for the next scheduled poll.

Next expected update

The diagnostic Next expected update sensor estimates when the next automatic refresh is due, so a dashboard can tell current data from a stalled integration. It is unknown when polling is disabled or before the first successful poll; allow a small grace period, since the time is an estimate.

Parcel status reference

The status field is the carrier-agnostic enum shared by the whole integration family:

Status Meaning
registered Announced / received by Hermes
in_transit In the sorting network
out_for_delivery With the courier today
at_pickup_point Waiting for you at a pickup location
delivered Delivered
returning Going back to the sender
problem Hermes reports an exception
unknown Not yet scanned, or a status we have not mapped yet

The carrier's own human-readable text is always available as raw_status.

Events

The integration fires these on the event bus (also available as device triggers on the Hermes device):

Event When
hermes_parcel_registered A new parcel appears in the active list
hermes_parcel_status_changed A parcel's canonical status changes (old_status / new_status in the payload), except the final hop to delivered
hermes_parcel_delivered A parcel is delivered
hermes_parcel_delivery_time_changed The expected delivery window changes

Every payload is the full normalised parcel plus the hub's device_id. Events are suppressed on the first refresh after start-up.

Services

Service Fields Description
hermes.track_parcel tracking_code, contents (optional) Start tracking a parcel, and optionally set what is in it
hermes.untrack_parcel tracking_code Stop tracking a parcel
hermes.update_contents tracking_code, contents (empty clears it), config_entry_id (optional) Set what is in a parcel, in your own words. It goes to every hub or account that lists the code, or to the one named by config_entry_id; it titles the calendar event and shows on the next-delivery sensor

Examples

Ready-to-paste automations and dashboard snippets live in examples/, including tracking a new parcel straight from a dashboard.

Community Lovelace cards

Third-party cards that work with this integration's sensors:

Debugging

logger:
  logs:
    custom_components.hermes: debug

Troubleshooting

  • A parcel shows unknown — Hermes has not scanned it yet (their API answers 404 until the first scan), or the number is wrong. It will pick up automatically once scanned.
  • Account: "Hermes refused this request" — the Hermes gateway rejected the request before it checked your login, so signing in again will not help. The cause is not knowable from the response alone (a rotated app key, a network/region block and a transient refusal all look identical), so enable debug logging and open an issue with the logged gateway response if it persists.
  • Account: a parcel shows unknown with no details — Hermes lists some old parcels without any status information.
  • A status logs "Unrecognised Hermes status" or "Unrecognised Hermes account status" — please open an issue with the logged line so the mapping can be extended.

Related integrations

This integration is part of ha-parcel-integrations — a family of parcel-carrier integrations that all publish the same canonical parcel format, statuses and events.

Disclaimer

This is an independent, community-built project. It is not affiliated with, endorsed by, sponsored by, or supported by Hermes, Home Assistant, or any other third party referenced in this project. Please don't contact Hermes for support with this integration.

All third-party trademarks, trade names, product names, logos, and other brand assets are the property of their respective owners. References to them are solely to identify the relevant carrier or service and do not imply affiliation, sponsorship, or endorsement. Nothing in this project grants or implies any licence or right to use third-party brand assets.

This integration may rely on public, unofficial, or undocumented carrier interfaces, accessed with your own account or API key where required. These may change or be withdrawn without notice and may be subject to Hermes' terms. Data is sent only to Hermes' own services or those of its group; this project operates no servers of its own. You are responsible for ensuring that your use complies with applicable law and those terms. Use is at your own risk; see the licence for warranty limitations.

This integration uses the same public tracking endpoint as the Hermes consumer website.

Contributing

Pull requests and issues are welcome. Please open an issue before submitting a large change.

License

MIT

Releases

Sponsor this project

Used by

Contributors

Languages