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

This is all I can find on that. I was able to install through HACS and update. Maybe uninstall and remove any entries for the new or old versions in Configuration > Lovelace Dashboard > Resources, then reinstall.

My resource file has been for a while

url: /hacsfiles/Home-Assistant-Mail-And-Packages-Custom-Card/Home-Assistant-Mail-And-Packages-Custom-Card.js ```
Has this changed?

Yes. It is completely rewritten.

Your docs still show the same path.

https://github.com/moralmunky/Home-Assistant-Mail-And-Packages-Custom-Card/blob/master/README.md

This is the same as what I have. I am not understanding what the resource should be changed to?

/hacsfiles/Home-Assistant-Mail-And-Packages-Custom-Card/Home-Assistant-Mail-And-Packages-Custom-Card.js

@bschatzow you are using pre-release software. Itā€™s not documented. Roll back to 0.06.

Maybe a misunderstanding. I have been using the beta pre-release for awhile. Just saw this message this week. Did something change on the pre-release that I need to add a change to use it?

I have just had to reinstall from backup my HA entire setup.
All looks as it should but the Mail Updated time is off.
It is currently 07:55 am my MST Arizona (NO DST observed) time, but the sensor shows 02:55 pm.
All other times in my system show correctly. I know that this is the 7 hour offset but how do I correct it.
Thanks

If youā€™re running the docker container you need to add to your volume mapping:

     - /etc/localtime:/etc/localtime:ro

This will map the host OS timezone inside your container.

1 Like

Iā€™m trying to set this up with my Gmail but keep receiving the ā€œUnable to connect or login to the mail server. Please check the log for details.ā€
image

In the log it shows ā€œError connecting into IMAP Server: [Errno -2] Name does not resolveā€. Any suggestions?

Yup the correct server is imap.gmail.com :slight_smile:

1 Like

Ugh! Too early in the morning for me. :grinning: Thank you!

1 Like

Iā€™ve seen some reference to combining two Amazon sensors (from two different accounts) into one sensor for my notifications. I saw reference to making a template but Iā€™m not very familiar with templates and couldnā€™t find any examples.

With the latest version of this component, giving the latest version a try again that randomizes the image names. So I have it setup for USPS mail camera, however it looks like the Amazon image is now random to and in itā€™s own amazon folder. Is this accurate? If so how do we manage that?

Yes

Thereā€™s a new camera that manages it for you :wink:

If Iā€™m now getting a No Deliveries Amazon message safe to assume itā€™s working then?

Thatā€™s the default image, so yup. :slight_smile:

So has no one combined the sensors from two Amazon accounts?

Hereā€™s an example:

- platform: template
  sensors:
    combined_amazon_delivered:
      value_template: '{{ states('sensor.mail_amazon_packages_delivered') + states('sensor.mail_amazon_packages_delivered_2') }}'
      friendly_name: 'Amazon Delivered'
      icon_template: 'mdi:amazon'
2 Likes

Thanks @firstof9,

I was just about to post this and ask if it would work. Iā€™ve seen reference to | int or | float.

Between your example, int, or float; which should I use or best?

 - platform: template
    sensors:
      combined_amazon_packages:
        friendly_name: Combined Amazon Packages
        value_template: "{{ ( states('sensor.mail_amazon_packages')|int + states('sensor.mail_amazon_packages_2')|int )| round (0) }}"
 

You only need to use int and you donā€™t need to use the round integers are whole numbers.