Nice project. Thanks a lot!!!
UPDATE
Both the custom component and the card have been updated. If you plan on updating, make sure to update both.
Breaking change:
- The entities have been renamed. Please review the github repository for the correct configuration
Changes:
- Ability to see the packages you are distributing
- Sorting of packages by date
- Ability to disable the display of already delivered packages
- In case the date of a package or letter is not known, it shows âUnknownâ in the column
- Ability to change the name and icon of the card
I have made a feature request in github and added some suggestions that you can âstealâ from another project
Thanks! will definitely look in to this!
Also, for those who believe this card takes a lot of space, what you also can do is the following:
Install the pop-up card: https://github.com/thomasloven/lovelace-popup-card
Display the postNL sensors separately and on click, show the expanded information.
- icon: mdi:email
popup_cards:
sensor.postnl_letters:
title: Delivery
card:
type: "custom:postnl-card"
letters: sensor.postnl_letters
sensor.postnl_delivery:
title: Delivery
card:
type: "custom:postnl-card"
delivery: sensor.postnl_delivery
cards:
- type: glance
title: PostNL
entities:
- sensor.postnl_letters
- sensor.postnl_delivery
UPDATE
The first letter is now being displayed as an image.
Also added the option to disable this.
Requires you to update both the custom component as well as the lovelace card.
Hi,
First of all thanks for this card and component. I realy like it!
My card is running perfectly. I only have one remark:
All the icons in lovelace have the same colour, only your icons in the card are black. It would be nice if they are the same colour as all other icons.
My second question/problem is that when i click on the postnl_delivery sensor i dont see any adresses or times but only the text: object, object. It is the same for the letters.
ps, since the requirements are in the manifest.json, you have to remove it from the sensor.py. (line 13, REQUIREMENTS = [âpostnlpy==0.3.0â])
Thanks for your reply. I will check the icons.
In regards to the more info, I canât solve that. If I solve that, the card becomes obsolete and a lot of information is gone. Thatâs where this card is for. See also the pop up card above which allows you the best of both worlds.
In regards to you code remark, that is correct, but will break older HA versions. Therefore it stays for now.
Thanks again for your input!
Ok np, i understand.
Just one small thing. The delivery times from the time window should be swapped
Good one! Will fix that.
Update
The Lovelace card has been updated:
- Swapped the timing of delivery
- Added a bit more margin below the letter image
- Matched the color of the icons with the overall template
Anyone who is a master at CSS might fix the design even further. Just create a pull request to the repository. Iâm no front-end guru
This looks amazing, been doing it myself with template sensors, but this is much easier to use. Will definitely try this.
Update
Thanks all for your feedback! Iâve fixed a tiny issue with images in letters. Although I donât have the case myself and I donât have any letters anymore, I hope I didnât break anything
Additionally I added the possibility to add this card to custom updater.
I have 2 feature requests left, which are in regards of displaying less delivered packages/letters. Will fix those soon.
Afterwards I hope to update the component in HA itself, so we are rid of the custom component.
Nice, I did the latest update with the custom updater and it worked like a charm. Thanks again for your work.
There is no way to fix this @HA 0.92?
The only way I can think of that, is by making sentences of it like âPackage X is on itâs way and will be delivered at Yâ. The point is, by making it a sentence, you loose the ability to make automations based on these. I hardly believe also that HA would approve it if we would do a lot of string concatenation within the Python code itself just to make the display of this correct.
Ultimately, the creator of HA suggested to create a custom card: WIP: Expose more information about shipments by PostNL by basbl ¡ Pull Request #18334 ¡ home-assistant/core ¡ GitHub
My suggestion would be to use the combination of this card with the pop-up card, as suggested here:
In the end, Buienradar does the same with forecasts. However, nobody seems to complain about that, since the weather cards actually solve that, hiding the fact that there are objects in the background.
HI,
After having installed the Postnl component successfully, I only see 1 sensor, sensor.postnl.
The sensors you all mention in this thread, postnl_letters, postnl_delivery are not created.
Is there some specific setting I need to enter in the config?
following the docs, I have this:
sensor:
- platform: postnl
username: !secret postnl_username
password: !secret postnl_password
Sounds like we have no choiceâŚ
Nope. Config stays the same. You did something wrong with the custom component, so please review your steps again.