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

hi,
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.

https://community.home-assistant.io/t/universal-parcel-tracking-integration/197187

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

camera:
  - 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.

Example:

image

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: server — frontend-ui

Built using Python 3, Polymer, Icons by Google and MaterialDesignIcons.com.

Frontend version: 20200519.0 - latest

System Health

arch x86_64
chassis
dev false
docker true
hassio true
host_os
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

Lovelace

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'
  trigger:
    - platform: state
      entity_id: sensor.mail_usps_mail

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

so i think i found my issue… i dont have a /config/…

i created /config/mail_and_packages/ is the path correct?

No create the directory images/mail_and_packages/ in /mnt/user/appdata/hassio/homeassistant/ which is your /config directory

ok, done now what what do i need it to say in the config for the integration?

looks sweet! i got it working, thank you! Is it possible to turn it into a popup card?

Not sure what you mean.

like if i click the mail icon or text it popups up a popup instead of the mail alwyas on the home page


like this but instead of options, the mail

You’d need to use that custom card then. The default cards don’t do that as far as I am aware.

What is the best way to get amazon tracking up and running? From what I have seen, the code seems to be configured to search for emails from amazon and has a sensor for amazon packages, but the default card doesn’t display amazon deliveries. Is there something that I need to enable in order for them to be included?

1 Like