This is a European-focused fork of the original
Mail and Packages integration.
It improves package tracking for EU carriers and fixes limitations in the original integration.
- Correos (API-based tracking)
- DHL (email parsing support)
- GLS / CTT / others (via email parsing)
- Add tracking codes manually
- Stored persistently in Home Assistant storage
- Packages remain visible even after:
- rescans
- clearing input fields
- restarts
- No more disappearing packages after rescans
- Works independently from email presence
- Better handling of multi-carrier environments
- Active packages
- In transit
- Delivered
- Per carrier + total overview
Before installing this integration, make sure you have:
- Home Assistant running
- An email account accessible via IMAP
- Shipment notification emails being sent to that email account
- (For Gmail) an app password if 2FA is enabled
-
Open HACS in Home Assistant
-
Go to Integrations
-
Click the ⋮ menu (top right) → Custom repositories
-
Add this repository
- Category: Integration
-
Search for Mail and Packages (EU Fork)
-
Click Install
-
Restart Home Assistant
-
Download the latest release from this repository
-
Extract the contents
-
Copy the folder:
custom_components/mail_and_packagesinto your Home Assistant configuration folder:
/config/custom_components/mail_and_packages -
Restart Home Assistant
- Go to Settings → Devices & Services
- Click Add Integration
- Search for Mail and Packages
- Enter your IMAP email settings
- Select the carriers/sensors you want to enable
- Finish setup
This fork supports manual tracking codes via a Home Assistant helper.
Create a helper:
-
Type: Text
-
Entity:
input_text.correos_tracking
You can enter:
- Correos tracking codes
- DHL tracking codes
Then run the service:
mail_and_packages.force_scan
to refresh package data instantly.
- Correos manual tracking uses the Correos API
- DHL is currently supported via email parsing
- Manual tracking codes are stored persistently
- Tracking remains active even after clearing the helper input
- Install the integration
- Connect your IMAP email account
- Enable the carriers you use
- Add the example dashboard YAML
- Optionally create
input_text.correos_tracking - Run
mail_and_packages.force_scan
A ready-to-use Lovelace example dashboard is available here:
Original integration:
- Focused mainly on USPS / US carriers
- Relies heavily on email presence
- No persistent manual tracking
This fork:
- Focused on EU logistics
- Adds persistent tracking
- Improves reliability for daily usage
The integration connects to your email (IMAP) and:
- Parses shipment emails from supported carriers
- Extracts tracking info and status
- Combines with manually added tracking codes
- Updates Home Assistant sensors
All processing is local (no external services)
- Runs fully local in Home Assistant
- No external APIs required (except optional carrier APIs like Correos)
- Files in
/wwwmay be publicly accessible (see HA docs)
See original documentation: https://github.com/moralmunky/Home-Assistant-Mail-And-Packages/wiki
-
Original project:
https://github.com/moralmunky/Home-Assistant-Mail-And-Packages -
This fork builds upon that work and extends it for EU usage
If you encounter issues or have feature requests: Open an issue on this repository
If this project helps you:
- Star the repo
- Report issues
- Suggest improvements



