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

I’m on the latest version. For some reason, I’m getting the images of the mail that was delivered yesterday but getting the correct counts for what I’m getting today.

Also when I try to load the repository for the custom card I’m getting the following error: Repository structure for master is not compliant.

What are you putting into the settings?

This sounds like the old image didn’t get removed for some reason, check your home assistant log for errors.

Only seeing some errors I get each time I restart HA and systems are not all ready. Only one that looks relative to the mail integration is:

Update of sensor.mail_amazon_packages is taking over 10 seconds

I’m seeing this repeated about 7 times. I did delete today’s email from USPS and I’m getting the no mail image and all the sensors are 0. So that may have cleaned up some things.

How does the Amazon part work? Does it just check the same inbox as the rest of the methods of getting mail for anything containing amazon.com? I did receive a delivery yesterday and a couple email notices and it didn’t detect that.

Here’s the ‘How it works’. It’s looking for amazon emails within 3 days and puts the order number as an attribute into the sensor for you as well.

First off, great solution! Got it mostly working right away. However, I am missing one of the sensors…

sensor.mail_deliveries_message

Is there anything special I need to do to populate it with content, meaning do something that isn’t out of the box with a regular installation?

That’s a template sensor, please see this link in the wiki.

Duh, apologies, I think I went right over that and didn’t even realize it. Appreciate the pointer!

1 Like

Looks like it looks for [email protected] from the link. That only triggers the day it ships. Then comes from [email protected] when it arrives. They don’t send out an out for delivery email apparently.

Correct, so we look at the amazon “order has shipped” email from 3 days prior and parse the ‘will arrive’ date so if that day is today, you get a +1 package.

Using your sample notification, any reason with no new emails in my inbox, I got an alert at 12:04AM?

image

Obviously it knows there is no packages but this came out.

I get it at 12:00AM as well, I didn’t add a “after XX am” condition to my automation, yet.

After midnight the integration no longer see the previous days mail and shipping emails and all sensors reset to 0. If the trigger sensors, sensor.mail_usps_mail or sensor.mail_usps_delivering, change it will run the automation resulting in the notification. The conditions are currently only looking if those two sensors last_changed timestamp was updated in the last 15 (min?), which they would from resetting to 0.

You could add a time condition like @firstof9 suggested. You could also add all the relevant sensors to the trigger and conditions section with an OR condition where at least one sensor must be greater than 0 to continue. Regardless of the time of day you won’t get a notification unless one or more sensors changes above 0.

1 Like

For some reason I’m still seeing yesterday’s mail images instead of today’s. The only error I’m seeing is the amazon sensor.

Enable debugging and post what the logs show you.

Here it is. Also for some reason, I’m getting warnings for items taking more than 10 seconds and time out getting update data as well. FYI, there are 5 pieces of mail for today and one not scanned. piece.

2020-07-18 19:43:30 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for mail_and_packages which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-07-18 19:43:30 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-07-18 19:43:30 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for alexa_media which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-07-18 19:43:36 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Config scan interval: 0:05:00
2020-07-18 19:43:37 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Attempting to find Informed Delivery mail
2020-07-18 19:43:37 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Cleaning up image directory: /config/www/mail_and_packages/
2020-07-18 19:43:37 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Informed Delivery email found processing...
2020-07-18 19:43:38 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Extracting image from email
2020-07-18 19:43:38 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Extracting image from email
2020-07-18 19:43:38 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Extracting image from email
2020-07-18 19:43:38 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Extracting image from email
2020-07-18 19:43:38 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Extracting image from email
2020-07-18 19:43:38 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Removing duplicate images.
2020-07-18 19:43:38 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Placeholder image found using: image-no-mailpieces700.jpg.
2020-07-18 19:43:38 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Removing USPS announcement images.
2020-07-18 19:43:38 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Image Count: 6
2020-07-18 19:43:38 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Resizing images to 724x320...
2020-07-18 19:43:38 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Creating array of image files...
2020-07-18 19:43:38 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Generating animated GIF
2020-07-18 19:43:39 INFO (MainThread) [custom_components.mail_and_packages.sensor] Mail image generated.
2020-07-18 19:43:39 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Attempting to find mail from [email protected] with subject 1 Item Delivered
2020-07-18 19:43:40 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Search for [email protected] with subject 1 Item Delivered results: b''
2020-07-18 19:43:40 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Attempting to find mail from [email protected] with subject 1 Expected Delivery on
2020-07-18 19:43:41 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Searching for Your item is out for delivery in 0 emails
2020-07-18 19:43:41 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Search for [email protected] with subject 1 Expected Delivery on results: b''
2020-07-18 19:43:41 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Attempting to find mail from [email protected] with subject 1 Your UPS Package was delivered
2020-07-18 19:43:41 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Searching for Tracking Number in 0 emails
2020-07-18 19:43:41 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Search for [email protected] with subject 1 Your UPS Package was delivered results: b''
2020-07-18 19:43:41 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Attempting to find mail from [email protected] with subject 1 UPS Update: Package Scheduled for Delivery Today
2020-07-18 19:43:42 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Search for [email protected] with subject 1 UPS Update: Package Scheduled for Delivery Today results: b''
2020-07-18 19:43:42 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Attempting to find mail from [email protected] with subject 2 UPS Update: Follow Your Delivery on a Live Map
2020-07-18 19:43:42 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Search for [email protected] with subject 2 UPS Update: Follow Your Delivery on a Live Map results: b''
2020-07-18 19:43:42 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Attempting to find mail from [email protected] with subject 1 Your package has been delivered
2020-07-18 19:43:43 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Search for [email protected] with subject 1 Your package has been delivered results: b''
2020-07-18 19:43:43 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Attempting to find mail from [email protected] with subject 1 Delivery scheduled for today
2020-07-18 19:43:44 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Search for [email protected] with subject 1 Delivery scheduled for today results: b''
2020-07-18 19:43:44 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Attempting to find mail from [email protected] with subject 2 Your package is scheduled for delivery today
2020-07-18 19:43:44 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Search for [email protected] with subject 2 Your package is scheduled for delivery today results: b''
2020-07-18 19:43:44 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Attempting to find Amazon email with item list ...
2020-07-18 19:43:45 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Amazon emails found: 0
2020-07-18 19:43:45 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Amazon emails found: 0
2020-07-18 19:43:46 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Amazon emails found: 0
2020-07-18 19:43:46 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Amazon emails found: 0
2020-07-18 19:43:46 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Amazon Count: 0
2020-07-18 19:43:46 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Attempting to find Amazon email with item list ...
2020-07-18 19:43:47 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Amazon emails found: 0
2020-07-18 19:43:47 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Amazon emails found: 0
2020-07-18 19:43:47 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Amazon emails found: 0
2020-07-18 19:43:47 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Amazon emails found: 0
2020-07-18 19:43:47 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Amazon order: []
2020-07-18 19:43:47 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Attempting to find mail from [email protected] with subject 1 Delivery Notification
2020-07-18 19:43:48 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Search for [email protected] with subject 1 Delivery Notification results: b''
2020-07-18 19:43:48 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Unknown sensor type: capost_delivering
2020-07-18 19:43:48 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Attempting to find mail from [email protected] with subject 1 DHL On Demand Delivery
2020-07-18 19:43:49 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Searching for scheduled for delivery TODAY in 0 emails
2020-07-18 19:43:49 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Search for [email protected] with subject 1 DHL On Demand Delivery results: b''
2020-07-18 19:43:49 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Attempting to find mail from [email protected] with subject 1 DHL On Demand Delivery
2020-07-18 19:43:49 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Searching for has been delivered in 0 emails
2020-07-18 19:43:49 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Search for [email protected] with subject 1 DHL On Demand Delivery results: b''
2020-07-18 19:43:49 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Updated scan time: Jul-18-2020 07:43 PM
2020-07-18 19:43:50 WARNING (MainThread) [homeassistant.setup] Setup of timer is taking over 10 seconds.
2020-07-18 19:43:50 WARNING (MainThread) [homeassistant.setup] Setup of input_text is taking over 10 seconds.
2020-07-18 19:43:50 WARNING (MainThread) [homeassistant.setup] Setup of zone is taking over 10 seconds.
2020-07-18 19:43:50 WARNING (MainThread) [homeassistant.setup] Setup of group is taking over 10 seconds.
2020-07-18 19:43:50 WARNING (MainThread) [homeassistant.components.weather] Setup of weather platform openweathermap is taking over 10 seconds.
2020-07-18 19:43:50 WARNING (MainThread) [homeassistant.setup] Setup of zeroconf is taking over 10 seconds.
2020-07-18 19:43:50 WARNING (MainThread) [homeassistant.components.weather] Setup of weather platform met is taking over 10 seconds.
2020-07-18 19:43:50 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform version is taking over 10 seconds.
2020-07-18 19:43:50 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform systemmonitor is taking over 10 seconds.
2020-07-18 19:43:50 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform openweathermap is taking over 10 seconds.
2020-07-18 19:43:50 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform template is taking over 10 seconds.
2020-07-18 19:43:50 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform command_line is taking over 10 seconds.
2020-07-18 19:43:50 WARNING (MainThread) [homeassistant.components.binary_sensor] Setup of binary_sensor platform updater is taking over 10 seconds.
2020-07-18 19:43:50 WARNING (MainThread) [homeassistant.components.binary_sensor] Setup of binary_sensor platform zwave is taking over 10 seconds.
2020-07-18 19:43:50 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform mail_and_packages is taking over 10 seconds.
2020-07-18 19:43:50 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform zwave is taking over 10 seconds.
2020-07-18 19:43:50 ERROR (MainThread) [metno] https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/1.9/ returned 
2020-07-18 19:43:50 ERROR (MainThread) [homeassistant.components.met.weather] Retrying in 18 minutes
2020-07-18 19:43:50 ERROR (MainThread) [homeassistant.components.updater] Timeout fetching Home Assistant update data
2020-07-18 19:43:50 WARNING (MainThread) [aioharmony.harmonyclient] 192.168.7.38: XMPP is not enabled, using web sockets however this might not work with future Harmony firmware updates, please enable XMPP
2020-07-18 19:43:50 WARNING (MainThread) [aioharmony.harmonyclient] 192.168.7.38: XMPP is not enabled, using web sockets however this might not work with future Harmony firmware updates, please enable XMPP
2020-07-18 19:43:57 WARNING (MainThread) [aioharmony.harmonyclient] 192.168.7.38: XMPP is not enabled, using web sockets however this might not work with future Harmony firmware updates, please enable XMPP
2020-07-18 19:46:15 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Config scan interval: 0:05:00
2020-07-18 19:46:15 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Attempting to find Informed Delivery mail
2020-07-18 19:46:16 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Cleaning up image directory: /config/www/mail_and_packages/
2020-07-18 19:46:16 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Informed Delivery email found processing...
2020-07-18 19:46:16 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Extracting image from email
2020-07-18 19:46:16 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Extracting image from email
2020-07-18 19:46:16 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Extracting image from email
2020-07-18 19:46:16 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Extracting image from email
2020-07-18 19:46:16 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Extracting image from email
2020-07-18 19:46:16 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Removing duplicate images.
2020-07-18 19:46:16 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Placeholder image found using: image-no-mailpieces700.jpg.
2020-07-18 19:46:16 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Removing USPS announcement images.
2020-07-18 19:46:16 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Image Count: 6
2020-07-18 19:46:16 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Resizing images to 724x320...
2020-07-18 19:46:17 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Creating array of image files...
2020-07-18 19:46:17 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Generating animated GIF
2020-07-18 19:46:18 INFO (MainThread) [custom_components.mail_and_packages.sensor] Mail image generated.
2020-07-18 19:46:18 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Attempting to find mail from [email protected] with subject 1 Item Delivered
2020-07-18 19:46:18 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Search for [email protected] with subject 1 Item Delivered results: b''
2020-07-18 19:46:18 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Attempting to find mail from [email protected] with subject 1 Expected Delivery on
2020-07-18 19:46:19 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Searching for Your item is out for delivery in 0 emails
2020-07-18 19:46:19 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Search for [email protected] with subject 1 Expected Delivery on results: b''
2020-07-18 19:46:19 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Attempting to find mail from [email protected] with subject 1 Your UPS Package was delivered
2020-07-18 19:46:19 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Searching for Tracking Number in 0 emails
2020-07-18 19:46:19 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Search for [email protected] with subject 1 Your UPS Package was delivered results: b''
2020-07-18 19:46:19 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Attempting to find mail from [email protected] with subject 1 UPS Update: Package Scheduled for Delivery Today
2020-07-18 19:46:20 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Search for [email protected] with subject 1 UPS Update: Package Scheduled for Delivery Today results: b''
2020-07-18 19:46:20 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Attempting to find mail from [email protected] with subject 2 UPS Update: Follow Your Delivery on a Live Map
2020-07-18 19:46:20 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Search for [email protected] with subject 2 UPS Update: Follow Your Delivery on a Live Map results: b''
2020-07-18 19:46:20 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Attempting to find mail from [email protected] with subject 1 Your package has been delivered
2020-07-18 19:46:21 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Search for [email protected] with subject 1 Your package has been delivered results: b''
2020-07-18 19:46:21 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Attempting to find mail from [email protected] with subject 1 Delivery scheduled for today
2020-07-18 19:46:21 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Search for [email protected] with subject 1 Delivery scheduled for today results: b''
2020-07-18 19:46:21 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Attempting to find mail from [email protected] with subject 2 Your package is scheduled for delivery today
2020-07-18 19:46:22 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Search for [email protected] with subject 2 Your package is scheduled for delivery today results: b''
2020-07-18 19:46:22 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Attempting to find Amazon email with item list ...
2020-07-18 19:46:22 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Amazon emails found: 0
2020-07-18 19:46:22 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Amazon emails found: 0
2020-07-18 19:46:22 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Amazon emails found: 0
2020-07-18 19:46:22 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Amazon emails found: 0
2020-07-18 19:46:22 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Amazon Count: 0
2020-07-18 19:46:22 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Attempting to find Amazon email with item list ...
2020-07-18 19:46:23 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Amazon emails found: 0
2020-07-18 19:46:23 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Amazon emails found: 0
2020-07-18 19:46:23 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Amazon emails found: 0
2020-07-18 19:46:24 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Amazon emails found: 0
2020-07-18 19:46:24 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Amazon order: []
2020-07-18 19:46:24 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Attempting to find mail from [email protected] with subject 1 Delivery Notification
2020-07-18 19:46:24 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Search for [email protected] with subject 1 Delivery Notification results: b''
2020-07-18 19:46:24 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Unknown sensor type: capost_delivering
2020-07-18 19:46:24 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Attempting to find mail from [email protected] with subject 1 DHL On Demand Delivery
2020-07-18 19:46:25 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Searching for scheduled for delivery TODAY in 0 emails
2020-07-18 19:46:25 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Search for [email protected] with subject 1 DHL On Demand Delivery results: b''
2020-07-18 19:46:25 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Attempting to find mail from [email protected] with subject 1 DHL On Demand Delivery
2020-07-18 19:46:25 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Searching for has been delivered in 0 emails
2020-07-18 19:46:25 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Search for [email protected] with subject 1 DHL On Demand Delivery results: b''
2020-07-18 19:46:25 DEBUG (MainThread) [custom_components.mail_and_packages.sensor] Updated scan time: Jul-18-2020 07:46 PM
2020-07-18 19:46:25 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform mail_and_packages is taking over 10 seconds.

I’m not seeing anything there that would cause it to show old images.

OK I think I may have it figured out, could the old image be cached? Because I went directly to mail_today.gif and look at it using the file editor it is correct. So the problem is how I have the Lovelace card configured. I can’t seem to install the customer card which would probably fix the problem but I have not been able to install it, I get an error saying the master is not compliant.

below is the card I’m using which is

cards:
  - image: /local/mail_and_packages/mail_today.gif
    type: picture
  - entities:
      - entity: sensor.mail_usps_mail
        name: USPS Mail
      - entity: sensor.mail_usps_packages
        name: USPS Packages
      - entity: sensor.mail_fedex_packages
        name: FedEx Packages
      - sensor.mail_ups_packages
      - sensor.mail_packages_in_transit
      - sensor.mail_packages_delivered
      - entity: sensor.mail_updated
        state_filter:
          - operator: regex
            value: 20
    state_filter:
      - operator: '>'
        value: '0'
    type: entity-filter
title: Mail Today
type: vertical-stack

Yes the images in cards do not refresh unless you reload the page.
Usually you’ll want to setup the camera to get around that.

1 Like

Thanks, success.

1 Like