Custom intergration for DHL packages
Main that I use is the intergration for PostNL made by Arjenbos. https://github.com/arjenbos/ha-postnl
In the comments from many people they add DHL Support also. So I did filter a lot and got it up and running.
-
First off all you need to get the postnl intergration up and running:
-
Then you need to add some stuff in your configuration and sensor file. See the my files.
-
To get the DHL Auth_token:
- I manually get the cookie and use the command_line function instead:
- Login to https://my.dhlecommerce.nl/account/sign-in
- Visit https://my.dhlecommerce.nl/receiver-parcel-api/parcels and verify that you see the JSON output.
- Open Developer Tools (usually F12) and get the X-AUTH-TOKEN cookie: Application → Storage → Cookies.
- Copy the value at X-AUTH-TOKEN
- I manually get the cookie and use the command_line function instead:
- See the 3 card codes https://github.com/csfolmer/Homeassistant/tree/main/DHL_support/card_files
- add on for my google calendar is the automation "Sync packages to calendar automation"