USPS, FedEx, UPS Custom UI Card & Lovelace (Updated 2-29-2020, Newer version available)

@codypet2002 line 130 of the mail_package.yaml explains that the line 133 needs to be changed to the path of the GIF that is defined in and created by the mail.py on line 41, IMAGE_OUTPUT_PATH.

In my case I keep all my file paths in my secret.yaml. Since you do not have a “USPS_camera” entry in the secret file it is giving you the error.

@Bartem I do not manage the UPS component nor do I have the skills to fix it. You can submit the issue on git hub in the main Hass repository. I am considering just adding those in the mail.py and forget about the component.

Ok I did not realize it was just using the already built in ups component… but I guess I should have by the setup… thanks

I added the path to 131 and not 133. I don’t know why I got so confused. That said, now I get this error.

Integration not found: packages

packages: !include_dir_named includes/packages

The above is what is in my config.yaml file.

The packages must be configured under the homeassistant: area at the top of the config. Like so as described in the Packages docs

homeassistant:
  packages: !include_dir_named packages

It doesn’t have to be the first item under it but must come after homeassistant: and before any other none indented items.

Trying to move this forward and create simplicity. My first attempt at a custom component. Fully functional, I just don’t know how to get configuration option from the yank to pass into the component so the code has to be edited with email details.

Looks like this component is causing asyncio issues and the event loop eventually halts. What is your approach to testing this…perhaps without home assistant? Is there a driver example?

@ [moralmunky is this still working in lieu of the recent deprecation of the USPS, FEDEx, and UPS components? I like the way you have it it is very nice.

The linked forum thread:

is likely going to be your best option going forward.

Thanks for the information. I checked that out yesterday but I was not sure it would working in a HASSIO in Proxmox using the command line.

It’s a custom component, works with all versions of Home Assistant installs.

Ah cool I will check it out then, 17Track.net is just not cutting it.

1 Like

I’ve got everything installed and working except the lovelace card. I have the individual sensors but no lovelace and it breaks the lovelace page when I try to save the custom card. Any ideas where to go? Running Hassio in Docker with an Ubuntu machine.

Many hours later and a few days…:wink:
had not added a camera to the configuration.yaml file (see below)
Also I was using Apple email and could not for the life of me figure out why it wouldn’t work and I switched to Google email and an app specific password and no issues. If anyone can get an apple IMAP email and app specific password to function I’d love to learn how.

camera:
platform: mail_and_packages

markpuls: Can you quickly write up the changes you did? I just switched to hassio and I have the same behavior. Adding the camera does not help.

Edit: I think I got it. It look reading a lot of threads to know you need to do the setup via the integrations menu in configuration

I followed Adrian’s YouTube channel/video @ https://www.youtube.com/watch?v=-sVwEco28zc
And he broke it down very nicely in steps and the only area that got me was not adding the camera integration to the configuration.yaml file. I was similar to his install being a Hassio in docker. I gave up on iCloud email address and changed everything gmail and had no problems.
Sure wish this was a supported integration with login capability- need USPS and all to have an API some day to help with that!

Finally! mystery solved- I got the GIF to work. hen adding the integration from the “configuration” left menu bar, then selecting “integrations” and selecting the “mail and packages” integration, you probably copied and pasted the if using in docker path wrong. You must include the / forward slash at the end of the path: /config/www/mail_and_packages/ DO NOT /config/www/mail_and_packages without a foward slash at the end. As soon as I did that it worked- total rookie mistake I made and haunted me for days and hours of research!

@moralmunky I got this new version setup from your redesign (https://github.com/moralmunky/Home-Assistant-Mail-And-Packages) version. Question I have is there a way to add title icons on the cards you show in the instructions? Is there a place under Lovelace section here that shows more ways to create the cards? Looking for some other ideas on lovelace cards. I would love to add the delivery companies logos next to theirs names using the FontAwesome Icons they have but only the enitry card allows you to add icons for titles no luck with other cards.

@moralmunky is working on a new custom lovelace card.
Keep your eyes on this thread for it’s release.

@gdreelin Released a new mail and packages love lace card a few days ago. I used the custom weather card as a base and built it up from there.