Plugin PostNL Package Tracking

Python and python framework

Moderator: leecollings

Post Reply
User avatar
madpatrick
Posts: 902
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2026.1
Location: Netherlands
Contact:

Plugin PostNL Package Tracking

Post by madpatrick »

Hi all,

I'd like to announce the first release (v1.0.0) of a new plugin: PostNL Package Tracking. It shows your incoming and outgoing PostNL shipments (Track & Trace) from your own PostNL account directly in Domoticz.

GitHub: https://github.com/MadPatrick/domoticz_postnl

What it does
Logs in to your PostNL account (jouw.postnl.nl) and reads your tracked shipments
Creates Text devices with your incoming, delivered and sent packages, one line per package, for example: [06/08] bol: In transit 11:00-13:30
Also creates a "Packages in transit" counter and a "Delivered Today" switch
Shows delivered packages for a configurable number of days
Device text in English or Dutch
Configurable poll interval (minimum 15 minutes)

Requirements
  • - A PostNL account
    - Python module requests (pip3 install requests)
    - Domoticz with Extended Plugin Settings
Installation
Clone or copy the plugin into your Domoticz plugins folder
Restart Domoticz
Add hardware "PostNL Package Tracking" and enter your PostNL e-mail address and password

Important notes
PostNL has no public API. The plugin uses an unofficial, reverse-engineered login flow (based on the Toon app "postnl"). If PostNL changes their login process, the plugin may stop working until it is updated.
Please don't poll too often, to avoid your account being flagged.
Your credentials are only sent to PostNL itself.

Dashticz users
I have also built a matching PostNL widget for Dashticz, which shows incoming and sent packages in one tile.

This is the first release, so expect some rough edges. I would really like your feedback:

Does the login work for you?
Are there shipment types or statuses that are shown wrong or not at all?
Bugs, errors in the Domoticz log, or anything that is unclear

I'm also open to ideas for extensions: more languages, other devices or notifications, or anything else you'd like to see. Let me know here or open an issue on GitHub.

Thanks, and happy tracking!
-= HP server GEN11 =- ZwaveJS-=- Domoticz v2026.2 -=- Dashticz =-
-= Checkout https://github.com/MadPatrick for the plugins =-
User avatar
gizmocuz
Posts: 3086
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Plugin PostNL Package Tracking

Post by gizmocuz »

Nice! :mrgreen:
Quality outlives Quantity!
User avatar
madpatrick
Posts: 902
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2026.1
Location: Netherlands
Contact:

Re: Plugin PostNL Package Tracking

Post by madpatrick »

Can you added to the wiki for me
-= HP server GEN11 =- ZwaveJS-=- Domoticz v2026.2 -=- Dashticz =-
-= Checkout https://github.com/MadPatrick for the plugins =-
User avatar
waltervl
Posts: 7041
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: Plugin PostNL Package Tracking

Post by waltervl »

Added to the wiki (with a lot of other plugins published the last weeks)
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
madpatrick
Posts: 902
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2026.1
Location: Netherlands
Contact:

Re: Plugin PostNL Package Tracking

Post by madpatrick »

I've release v1.1.0 with the addition of DHL eCommerce
So the name of the app is not correct any more, but it is what it is :)

With the coming Black Friday it can be handy to have both
-= HP server GEN11 =- ZwaveJS-=- Domoticz v2026.2 -=- Dashticz =-
-= Checkout https://github.com/MadPatrick for the plugins =-
Tukker
Posts: 679
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Re: Plugin PostNL Package Tracking

Post by Tukker »

This plugin will be very handy when it combines even more delivery firms.
NL package tracking?
Nice work @madpatrick
Bugs bug me.
User avatar
gizmocuz
Posts: 3086
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Plugin PostNL Package Tracking

Post by gizmocuz »

Maybe rename the plugin and also use .gitignore to ignore the __pycache__ folder in your git
Quality outlives Quantity!
User avatar
madpatrick
Posts: 902
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2026.1
Location: Netherlands
Contact:

Re: Plugin PostNL Package Tracking

Post by madpatrick »

I’ve added DPD to the plugin

Unfortunately i’m not able to test since i don’t have a DPD account nor a packages coming soon.
-= HP server GEN11 =- ZwaveJS-=- Domoticz v2026.2 -=- Dashticz =-
-= Checkout https://github.com/MadPatrick for the plugins =-
Post Reply