Ability to add multiple accounts
At this moment it is not possible to add a second account with the PostNL integration. When we add a second account no entities are added. When i check the logs there is an error that the sensors are already exist.
Is it possible to make something like a prefix or suffix from a name that is given in the setup of the integration?
I will add support for multiple accounts. 😄
@arjenbos thanks for the add-on for HA. Is there a timeline for support for multiple accounts?
I added multi account support and will release it as a beta release. Please test it 😄 .
After a reboot the sensors will be switched or new sensors are being created on the 2 accounts.
Account 1
Account 2
After a second reboot the sensors switched or new sensors are created. Is it possible to add the name of the integration to the sensor so each account has it's own persistant name instead of the _1, _2, _3 ...
I added multi account support and will release it as a beta release. Please test it 😄 .
Thank you for the code changes Arjen, I tested it for two accounts of PostNL and it works like a charm in Home Assistant.
Steps Taken:
- I updated the version of PostNL in the HACS store in Home Assistant
- I re-added the temporary browser extension here: https://github.com/arjenbos/ha-postnl-browser-extensions in Firefox.
- In Home Assistant > Settings > Devices & Integrations > +Integration I re-added the PostNL integration for the second account.
After a reboot the sensors will be switched or new sensors are being created on the 2 accounts.
Account 1
Account 2
After a second reboot the sensors switched or new sensors are created. Is it possible to add the name of the integration to the sensor so each account has it's own persistant name instead of the _1, _2, _3 ...
The suffix are generated by HA. I would like to remove the _1, _2, etc as well, but I assume that people need to change their lovelace, automations, etc. That's why I didn't touch the name. I do not have a proper solutions right now.
@arjenbos can you publish the 1.4.0 version? For now it's still beta.
That would be much appreciated! Would have saved me a lot of grey hairs.

