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

I do like his icons, think I’ll add them to my card :smiley:

I really like the card that combines all the sensors as well as the gif so I’ve been trying to figure out how to add the amazon sensor to it.

Add a feature request to the card’s github?

1 Like

Slimmed mine down now:

1 Like

Oh i like that! Those icons are excellent

UPS, FedEx and the USPS are from the reddit post, I added in 2 amazon icons, one with black background, one with white (as shown).

Here’s a link to them.

Card config if you’d like as well:

type: vertical-stack
  - type: horizontal-stack
      - entities:
          - entity: sensor.mail_usps_mail
            name: USPS Mail
          - entity: sensor.mail_packages_in_transit
            name: Packages in Transit
          - entity: sensor.mail_packages_delivered
            name: Packages Delivered
          - entity: sensor.mail_updated
          - entity: input_select.notify_select
        show_header_toggle: false
        type: entities
  - type: glance
      - entity: sensor.mail_ups_packages
        image: /local/icons/ups.png
      - entity: sensor.mail_fedex_packages
        image: /local/icons/fedex.jpeg
      - entity: sensor.mail_usps_packages
        image: /local/icons/usps.png
      - entity: sensor.mail_amazon_packages
        image: /local/icons/amazon-wh.png
    show_name: false

Wow Thanks I will definitely be stealing some of that:)

Very nice - I as well have copied this setup. The icons are a very nice touch!


1 Like

how much effort does it take to integrate other parcel services?
I am living in germany and would want to integrate DHL, GLS, DPD and Hermes. I already created a feature request for this, before I was pointed to this integration.

What can I do to support?

We’d need to know what the emails look like (and the delivery service would need to support sending out status emails like “out for delivery”).

As fuzzymistborn stated, we’d need to know what the email body contains, along with the email address they’re coming from. Feel free to submit a features request issue on the github repo with the relevant information, redact any personal info like your address and what not.

love the card…, how do i get mail pictures to show up?
i do have this in my configuration.yaml

  - platform: local_file
    file_path: /config/images/mail_and_packages/mail_today.gif
    name: mail_usps

You’d use a picture-entity card, unless you’re using the card moralmunky created.

any examples?

Sure thing this is my default card setup:

aspect_ratio: 50%
camera_image: camera.mail_usps
camera_view: live
entity: camera.mail_usps
show_name: false
show_state: false
type: picture-entity

how do i know if its pulling images from my gmail account? i dont think it is… i have 4 mail pieces coming today but it says idle

Need to know your info screen from Home Assistant.



Home Assistant 0.110.0

Path to configuration.yaml: /config

Developed by a bunch of awesome people.

Published under the Apache 2.0 license
Source: serverfrontend-ui

Built using Python 3, Polymer, Icons by Google and

Frontend version: 20200519.0 - latest

System Health

arch x86_64
dev false
docker true
hassio true
installation_type Home Assistant Supervised
os_name Linux
os_version 5.5.8-Unraid
python_version 3.7.7
supervisor 223
timezone America/Los_Angeles
version 0.110.0
virtualenv false


dashboards 1
mode yaml
resources 10
views 2

Ok check the directory /config/images/mail_and_packages/mail_today.gif for the image file. If it’s a random jumble of letters and numbers you’ll either need to uncheck the random feature or use this automation:

- alias: 'Update USPS Mail Camera'
    - platform: state
      entity_id: sensor.mail_usps_mail

    - service: local_file.update_file_path
        entity_id: camera.mail_usps
        file_path: >
          {% if state_attr('sensor.mail_usps_mail','image') == None  %}
          {% else %}
          /config/images/mail_and_packages/{{ state_attr('sensor.mail_usps_mail','image') }}
          {% endif %}