A custom component that integrates with Matkahuolto to retrieve information about coming and recently delivered packages. The big idea of this integration is that one does not have to manually add packages in order to track them, but the list is updated automatically by retrieving tracking data from the user's account.
- Add this repository to HACS custom repositories
- Search for Matkahuolto package tracking in HACS and install with type integration
- Restart Home Assistant
- Enter your access and refresh tokens and configure other settings as you wish
- Download source code from latest release tag
- Copy custom_components/matkahuolto_tracking folder to your Home Assistant installation's config/custom_components folder.
- Restart Home Assistant
- Configure the integration by adding a new integration in settings/integrations page of Home Assistant
- Enter your access and refresh tokens and configre other settings as you wish
This guide is done using Google Chrome. If you use some other browser, adjust accordingly.
- Go to matkahuolto.fi and log out if you are already logged in
- Open developer console by pressing F12
- Open network tab
- Enter auth to filter field
- Log in to your matkahuolto.fi account
- Click the auth request that should now have appeared to the request list
- Open response tab of the request
- Copy the access token and refresh token values from the response to the integration configuration. Note: Do NOT include the quotation marks around the token values.
| Name | Type | Requirement | Description | Default |
|---|---|---|---|---|
| username | string | Required | Username of your Matkahuolto account (your email) | |
| access_token | string | Required | Access token of your login to Matkahuolto | |
| refresh_token | string | Required | Refresh token of your login to Matkahuolto | |
| language | string | Required | Used language (fi or en) | en |
| prioritize_undelivered | boolean | Required | Toggle this if you want undelivered packages to be shown first, when there are more than the maximum allowed amount of packages available | true |
| max_shipments | int | Required | Maximum number of packages to retrieve | 5 |
| stale_shipment_day_limit | int | Required | After how many days a stalled shipment gets hidden? Sometimes shipments stay in "in delivery" state indefinitely | 15 |
| completed_shipment_day_shown | int | Required | After how many days are completed deliveries hidden? | 3 |