Mail and Packages: Custom component for UPS, FEDEX, and USPS

It’s more of a time thing right now, thanks for offering.

1 Like

Not sure if one of HA updates broke the integration? I have not seen any of the sensors in a couple of days.

The only log entry is:

This error originated from a custom integration.

Logger: custom_components.mail_and_packages
Source: helpers/update_coordinator.py:204
Integration: Mail and Packages (documentation, issues)
First occurred: 3:05:02 AM (1 occurrences)
Last logged: 3:05:02 AM

Timeout fetching Mail and Packages (imap.gmail.com) data

I have several UPS deliveries showing in my Gmail and the sensor shows zero.

Your IMAP connection is timing out, increase the timeout setting.

Thanks.
Changed it from 90 to 120. Not sure why it is needed now? The mail came back before I changed it. The ups delivers are still not showing showing. I have 8 packages on the way.

Only the day of delivery.

Hello @firstof9
I just configured your component and have a question regarding de_post
My sensor is showing me the value 49. Is this a total value in the whole inbox? Or is there any possibility to define it should search in the last x days? If this is not the case, what would be the best way to notify me for new packages?

It should only be the current day’s mail/packages.

But it is still as high as 2 days ago. I counted the numbers of Mails with “Ein Brief kommt in Kürze bei Ihnen an” and they are exact the size as the number in the sensor. So it is not just showing the number of the current day . So it is a bug? Should I open an issue in github?

Get debug logs, and open an issue please.

Hello there! I just wanted to express my gratitude for this amazing custom component. It has been instrumental in helping me create a custom e-ink display, which allows me to keep track of all my deliveries in a more efficient manner. Thank you very much!

Had plans to pull in the image from USPS or Amazon but happy with it so far! Thanks again!!

1 Like

Wow, I love it!! How did you do it and what is it on?

Mine was working 3 days ago but now It keeps saying “unavailable” even after restarts and reconfigure? Don’t know why

1 Like

Check your home-assistant.log file for errors.

this is the error i got

Log Details (ERROR)

This error originated from a custom integration.

Logger: custom_components.mail_and_packages
Source: helpers/update_coordinator.py:262
Integration: Mail and Packages (documentation, issues)
First occurred: 8:16:31 AM (171 occurrences)
Last logged: 1:24:55 PM

Timeout fetching Mail and Packages (imap.gmail.com) data

Try increasing the IMAP timeout limit to 120

is this right for the “120”? also is the amazon forward email suppose to be in brackets?

Yes and Yes

Is there logic for not showing the Amazon cam when it’s still the default image?

Screenshot 2023-08-29 at 6.29.00 AM

I’m using a conditional to hide the Amazon cam when there are no deliveries, but this image shows up once I’m expecting a package. But I only want it to show when the package has been delivered and the delivery driver has uploaded a photo.

Now, I’m fairly certain that’s never worked because it doesn’t pick up the uploaded images, but whatever, I am curious to know what attributes I need to condition on to hide this default image.

Simple tangentially related question: Is there an easy way to have text show “1 package” and “2 packages” rather than “1 package(s)” and “2 package(s)” ?

No

At this time there is no way to detect when the image has changed.