📦 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 Amazon orders. Sign in to your own Amazon account once, and every shipment of your recent orders is imported automatically — no tracking codes to enter. Add the integration once per Amazon country and account you shop with.
Built on the ha-parcel-integrations format: it publishes the same canonical parcel format, statuses and events as the other carrier integrations, so it plugs straight into the Parcel Aggregator and cross-carrier automations.
- Features
- Requirements
- Installation
- Configuration
- Options
- Removal
- Sensors
- Parcel status reference
- Delivery photo
- Stops away
- Live driver tracking
- Events
- Examples
- Debugging
- Troubleshooting
- Related integrations
- Disclaimer
- Credits
- Contributing
- License
- Auto-imports every shipment of your recent orders — no per-parcel setup
- One entry per Amazon country and account, each with its own sign-in, so two people in a household can each add their own account on the same Amazon
- Amazon Business accounts too (seen on amazon.fr): every order of the account from the last three months, whoever placed or paid for it
- Per-parcel sensor with the canonical status (
registered/in_transit/out_for_delivery/delivered/ …), Amazon's own status text and a link to the tracking page - The delivery carrier Amazon names (for example Dragonfly or DHL) on every parcel
- Hands parcels over to the matching carrier integration when you have it set up, for a delivery window, pickup point and full history (see Hand-off to carrier integrations)
- Summary sensors: incoming parcels, next delivery, recently delivered parcels
- Read-only Deliveries calendar
- Amazon's proof-of-delivery photo as an image entity, for parcels Amazon's own fleet delivers (see Delivery photo)
- How many stops the driver still has before your parcel, while Amazon's own fleet is on its way (see Stops away)
- Opt-in: the driver on Home Assistant's map, updated every minute while Amazon's own fleet delivers your parcel (see Live driver tracking)
- Events + device triggers for no-code automations (parcel registered, status changed, delivered)
- Opt-in per-parcel status history
- Manual refresh button and a diagnostic last-update sensor
- Home Assistant 2025.12 or newer
- An Amazon account for the country you want to follow. You sign in on Amazon's own page in your browser, so your password never goes through Home Assistant.
- A browser on any device to complete that sign-in once (including any verification Amazon asks for).
- Open the Marketplace and search for Amazon.
- Install it.
- Restart Home Assistant.
Or click the button below to open it directly in the Marketplace:
Copy custom_components/amazon_orders into your config/custom_components/ folder and restart Home Assistant.
Or set it up by hand: add the integration via Settings → Devices & Services → Add Integration → Amazon.
- Pick the Amazon country you shop on.
- Open the sign-in link shown in your own browser. It is Amazon's sign-in for the Alexa app. That is expected: Home Assistant signs in as an Alexa device, so it gets a lasting sign-in without ever seeing your password.
- Sign in with the account's current login email and complete any verification Amazon asks for. An old email may still log in on Amazon's website, but the sign-in then registers nothing: the "Home Assistant Parcels" device never appears and the orders come back empty.
- You end up on a page whose address starts with
https://www.amazon.com/ap/maplanding, even if you shop on another country's Amazon. It may look blank or like an error, but that page is the goal. Copy its full address from the address bar and paste it back into Home Assistant straight away.
A device named "your name's Home Assistant Parcels" then appears in your Amazon account under Manage Your Content and Devices. That is this integration. Removing it there signs Home Assistant out, and Home Assistant then asks you to sign in again.
Add the integration again to follow another country or another Amazon account. Entries are named after the account, so two accounts on one country stay apart. If Amazon stops accepting the stored sign-in, Home Assistant asks you to repeat these steps.
Each sign-in, whether for a second country or a fresh one after reauth, adds another (numbered) "Home Assistant Parcels" device to the device list in your Amazon account; the old ones can be removed there.
Only shipments of recent orders are followed: those still on their way, and those delivered in the last week. To keep the load on Amazon low, at most ten shipments are read per update, so a very large number of open orders catches up over several updates.
Open Configure on the integration entry:
| Section | Option | Default | Description |
|---|---|---|---|
| Delivered parcels | Filter by / amount | last 7 days | How long delivered parcels stay visible on the delivered sensor. Shipments delivered more than a week ago are not read from Amazon. |
| Parcel history | Include status history | off | Adds a history attribute per parcel with each status update. |
| Carrier integrations | Hand off parcels to carrier integrations | on | Passes parcels to the carrier's own integration. See below. |
| Live driver tracking | Follow the Amazon driver on the map | off | Adds a driver tracker per parcel, updated every minute while Amazon's own fleet delivers it. See Live driver tracking. |
Polling isn't one of these settings: the integration polls on a dynamic, status-driven schedule with nothing to configure.
Amazon only knows what you ordered. The carrier that delivers the parcel knows
much more: the delivery window, the pickup point, the full tracking history.
So when a carrier has its own integration in the
ha-parcel-integrations
family and you have it set up, this integration hands the parcel over to it and
stops listing it, so you do not see it twice. Today that covers
DHL (the dhl integration), Colis Privé, Dragonfly, La Poste,
DPD (a myDPD account for the Netherlands, France or another country DPD's
own app covers; DPD Germany stays listed here, and no repair notice asks you to
add DPD), bpost
(a bpost hub set up for your postal code; with only a My bpost account the
parcel stays listed here as well) and USPS (a USPS entry set up with API
Tracking; with only Informed Delivery the parcel stays listed here, and no
repair notice asks you to add it).
On amazon.fr, a tracking page sometimes names no courier at all. When its tracking number has the Colissimo shape (a digit, a letter, then 11 digits), the parcel is shown as La Poste's, but it stays here: a guess is never handed over. A page that names La Poste itself is handed over like any other. The log says once that the courier was guessed, so you can tell us if it was right.
- It is on by default and can be turned off under Configure; the last step of adding the integration asks about it too. Turning it off lists those parcels here again; they also stay in the carrier integrations.
- If the carrier integration is not set up, the parcel simply stays here, and a repair notice links to that carrier's page so you can add it. You can ignore the notice.
- Parcels from other carriers, Amazon's own deliveries and shipments without a tracking number are never handed over, and neither are parcels that are already delivered.
- If a carrier integration refuses a tracking number (for example because it has more than one account to choose from), a warning in the log says so, and the parcel stays listed here. Add the number to that integration by hand if you want it tracked there.
- The parcel's
contents(the item titles, or your own text fromamazon_orders.update_contents) goes along, so the carrier integration shows what is inside. A change made here after the hand-over does not follow; set it in the carrier integration instead. - Once handed over, a parcel belongs to the carrier integration, which also follows a return and removes the parcel after its own retention period.
Polling isn't a setting here — 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), so an overnight update is never missed.
- Hot (every 15 minutes) — while any tracked parcel is out for delivery today, starting an hour before its delivery window opens (or immediately if no window is known yet).
- Normal (every 45 minutes) — for anything else still on its way.
- Idle (every 2 hours) — with nothing on its way, since every update signs in again and reads your orders page. It never fully stops: that's also how a new shipment on your account gets discovered.
- A small, fixed per-hub offset is added on top, so not every Amazon hub out there polls at exactly the same second.
When the tracking page predicts a delivery window (amazon.fr shows one for a
parcel out for delivery, for example "14:00 - 16:30"; amazon.de writes
"Ankunft heute 7h – 13h", or "Now arriving today 3 pm - 6 pm" in English), it fills planned_from /
planned_to and the delivery calendar. When the order line only names a day
("Arriving tomorrow", "Arriving Oct 27-29", "Arriving 20 November",
"Arriving Wednesday", "Arriving now", "Zustellung: Freitag", "Llega hoy", "Llega mañana", "Llegará el 27 de noviembre",
"Wordt bezorgd tussen 3 december en 5 december"), the window is that whole day, or
the whole span of days, shown in the calendar as an all-day event, until a
timed window replaces it. An order line with
times ("Arriving today 6 pm – 10 pm", "Now arriving today 2 PM - 4 PM") gives
that window when the parcel has no tracking page of its own yet. An overnight
window ("Arriving overnight 1 AM – 6 AM") is placed in the coming night.
Without either, a parcel that is out for
delivery is treated as "hot" and polled every 15 minutes until it is delivered.
Standard HA removal applies: Settings → Devices & Services → Amazon → ⋮ → Delete. Your stored sign-in is removed with the entry.
| Entity | Description |
|---|---|
sensor.amazon_orders_incoming_parcels |
Number of active shipments, full list under the parcels attribute |
sensor.amazon_orders_parcel_<code> |
One per shipment, named after its tracking id; state is the canonical status, attributes carry the full normalised parcel |
sensor.amazon_orders_next_delivery |
Earliest expected delivery moment across all active parcels |
sensor.amazon_orders_en_route_to_pickup_point |
Incoming parcels on their way to a pickup point that have not arrived yet |
sensor.amazon_orders_awaiting_pickup |
Incoming parcels that are ready to collect at a pickup point |
sensor.amazon_orders_delivered_parcels |
Recently delivered parcels (see the retention option) |
calendar.amazon_orders_deliveries |
Read-only calendar of expected deliveries, no extra API calls |
image.amazon_orders_delivery_photo_<code> |
One per delivered parcel with a photo in the delivered list (see Delivery photo) |
sensor.amazon_orders_last_successful_update |
Diagnostic: when Amazon was last polled successfully |
A delivered parcel moves from its per-parcel sensor to the delivered sensor automatically.
Each parcel's contents shows the titles of its order lines; the amazon_orders.update_contents action replaces that with your own text for a tracking code (an empty text clears it); it also titles the calendar event and shows on the next-delivery sensor. With several accounts it goes to every account that lists the code; name one with the optional config_entry_id (needed for a code no account lists yet).
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. See Polling diagnostics.
The status field is the carrier-agnostic enum shared by the whole integration family:
| Status | Meaning |
|---|---|
registered |
Amazon says the order has not been dispatched yet |
in_transit |
In an Amazon or carrier facility, or on the way between them |
out_for_delivery |
With the courier today |
delivered |
Delivered, including left in the letterbox or collected from an Amazon Locker (amazon.fr's "Prélevé le …", which also sets pickup). A shipment Amazon cannot track (such as a letter sent without tracking) counts as delivered on its promised day once that day is more than 3 days past |
unknown |
A status we have not mapped yet; it is logged once as a warning. An order line with no tracking whose wording is not recognised is unknown too, and is not counted as incoming |
Amazon also reports other situations (a parcel waiting at a pickup point, a return, a delivery problem), but none of those have been seen on a real parcel yet, so they are not mapped. If your parcel shows unknown, the warning in the log names what Amazon said.
Order-line wording is recognised in English, Dutch, French, German, Spanish, Italian, Swedish and Polish. The English wording is confirmed against other tools' sources, the main Dutch wording against real orders on amazon.com.be the main French wording against real orders on amazon.fr and "Llega hoy", "Llega mañana", "Llegará …" and "Entregado" against real orders on amazon.es; the rest are best guesses, so the first time one is used the log asks you to confirm it. Cancelled, returned and refunded lines are not shown.
Amazon's own human-readable text is always available as raw_status.
Amazon writes the tracking timeline in the language of your account. English, Dutch, German and French timeline wording is mapped; another language's timeline still gives the right parcel status (that comes from a language-independent code), but the individual history entries come back without one, and the log names each unmapped line so it can be added.
When Amazon's own fleet delivers a parcel it usually takes a photo of where it left it. The integration shows that photo as an image entity, served by Home Assistant behind its own sign-in. Use it on a dashboard like any image entity, or in a notification.
The entity exists and holds the photo by the time the amazon_orders_parcel_delivered event fires, and the event names it in raw.delivery_photo_entity_id (null when there is no photo), so an automation can use it right away:
image: >-
{% set photo = trigger.event.data.raw.delivery_photo_entity_id %}
{{ '/api/image_proxy/' ~ photo if photo else '' }}A ready-to-paste automation is in examples/automations/notify_with_delivery_photo.yaml.
Things to know:
- Only Amazon's own fleet. A parcel carried by Dragonfly, DHL or Colis Privé has no photo and no entity.
- It lasts as long as the parcel is in the delivered list (see the retention option). The entity then goes away.
- The photo has to be on the tracking page at the moment the parcel reads as delivered. Amazon Business parcels that are delivered don't load that page, so they usually have no photo.
While Amazon's own fleet has a parcel on its way to you, the tracking page counts the driver's remaining stops. The parcel sensor carries that number as raw.stops_away (0 when Amazon says your parcel is the driver's next stop, null when Amazon shows no count), for example for a notification when the driver is close:
triggers:
- trigger: template
value_template: >-
{{ (state_attr('sensor.amazon_orders_parcel_<code>', 'raw') or {}).get('stops_away') in [0, 1, 2, 3] }}Things to know:
- It is as fresh as the last poll. Out-for-delivery parcels are polled every 15 minutes, so a driver can pass a few stops in between. With live driver tracking on, the driver's tracker has a fresher count (
stops_remaining, every minute), so the two can differ for a while. - A change in the count fires no event, only the sensor updates.
- Only the German, English and French wording is read so far ("8 Stopps entfernt", "Du bist der nächste Halt", "8 stops away" on amazon.de, "5 livraisons avant la vôtre." on amazon.fr). Other wording is logged once as a warning, so it can be added.
Turn on Follow the Amazon driver on the map in the options, and each parcel
that Amazon's own fleet has out for delivery gets a device_tracker for its
driver (for example device_tracker.amazon_amazon_fr_driver_<code>). It asks
Amazon's live map for the driver's position every minute, the way the tracking
page does, and the tracker shows the driver on Home Assistant's map. Its
attributes say which parcel it follows (barcode), the stops left before yours
(stops_remaining), whether yours is the next stop (next_stop) and when the
position was taken (located_at).
For a notification when the driver is close, combine it with the Proximity integration or a zone, or watch for any driver whose next stop is yours:
triggers:
- trigger: template
value_template: >-
{{ states.device_tracker
| selectattr('attributes.next_stop', 'defined')
| selectattr('attributes.next_stop')
| list | count > 0 }}Things to know:
- Off by default. Each check is one more request on your Amazon account. It only runs while a parcel is out for delivery with Amazon's own fleet, and stops once nothing is.
- Only Amazon's own fleet. A parcel that DHL, DPD or another carrier delivers has no live map on Amazon.
- The tracker comes and goes with the delivery. It appears when the parcel is out for delivery, is unavailable until the live map has a position, and is removed once the parcel is no longer out for delivery.
- The delivery ends the tracking. When the live map says delivered, the integration reads your orders straight away, so the parcel's delivered event and photo come within a minute instead of at the next poll.
- The route is recorded like any device tracker's, so the map card can
draw it (
hours_to_show). The recorder's retention decides how long it is kept. - It steps back when Amazon refuses. If Amazon throttles or refuses the live map, tracking waits for the next account poll before asking again.
- Seen on amazon.fr only so far. Another storefront may not offer the live map; the tracker then stays unavailable.
The integration fires these on the event bus (also available as device triggers on the Amazon device):
| Event | When |
|---|---|
amazon_orders_parcel_registered |
A new parcel appears in the active list |
amazon_orders_parcel_status_changed |
A parcel's canonical status changes (old_status / new_status in the payload), except the final hop to delivered |
amazon_orders_parcel_delivered |
A parcel is delivered |
Every payload is the full normalised parcel plus the hub's device_id. Events are suppressed on the first refresh after start-up.
Ready-to-paste automations and dashboard snippets live in examples/, such as notifying you when a parcel is out for delivery.
Third-party cards that work with this integration's sensors:
logger:
logs:
custom_components.amazon_orders: debug- Setup keeps asking me to sign in again — Amazon ended the stored sign-in (for example after a password change or a security check). Follow the sign-in steps again; nothing else needs to change.
- I don't end up on a
maplandingpage — finish every step Amazon shows (verification code, passkey, puzzle) in the same browser tab. If you land on another Amazon page, open a fresh sign-in link from Home Assistant and try again, if needed in a private window. - Setup works but every sensor stays at 0, and no "Home Assistant Parcels" device shows up in my Amazon account — you probably signed in with an old login email that Amazon still accepts on its website. Remove the entry and add it again with the account's current login email.
- The pasted address is rejected — copy the whole address, including everything after the
?, and paste it straight away. If it still fails, open a fresh sign-in link; each link is meant for one sign-in. - A parcel shows
unknown— Amazon said something we have not mapped yet. The log line "Unrecognised Amazon status" names it: please open an issue with that line. - An order shows up as a parcel named after a shipment code — that order line has no tracking page yet, so it is keyed on Amazon's shipment code until a tracking id appears.
- Nothing is imported — only orders from the last few months show on Amazon's orders page, and only recent shipments are followed. Check the log for a warning that no order lines were recognised: it also appears when you simply have no recent orders, but otherwise Amazon may have changed the page.
- A Business parcel is missing — only the first page of the Business order list is read (the newest orders of the last three months, ordered by you). If Amazon shows more cards than could be read, or a card names no order, the log says so once.
- A delivered parcel has the wrong delivery day — when Amazon's wording for the delivery day is not recognised, the day the parcel was first seen as delivered is used, and the log names the wording once so it can be added.
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.
- Parcel Aggregator rolls every installed carrier up into one set of sensors.
- Browse the organisation for the current list of supported carriers.
This is an independent, community-built project. It is not affiliated with, endorsed by, sponsored by, or supported by Amazon, Home Assistant, or any other third party referenced in this project. Please don't contact Amazon 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 Amazon's terms. Data is sent only to Amazon's 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 reads the Amazon website with your own signed-in account and may break when Amazon changes it.
The Amazon sign-in and device-registration flow is adapted from alexapy by Keaton Taylor and Alan Tse (Apache-2.0), the library behind Alexa Media Player. Thank you to its maintainers for working out and maintaining that flow. See NOTICE for the licence details. The suite disclaimer above applies to these projects too.
Pull requests and issues are welcome. Please open an issue before submitting a large change.
Amazon's wording lives in one file per language in
custom_components/amazon_orders/account/locales/
(de.py, fr.py, nl.py, …). To add a phrase your account shows, or a
whole language, change only that file. Put wording you saw on your own
account under confirmed, and wording you expect but have not seen under
plausible.