Automating USPS Mail Notifications with YAML

Hey everyone! I’ve been diving into automating my smart home setup, and I wanted to share a fun project I recently completed. I’ve set up an automation that triggers events based on USPS email notifications, and it’s been working like a charm!

Here’s the setup: I created two automations. The first one checks for the ‘Mail Was Delivered’ email and turns on a specific light bulb in a vibrant color to let us know we’ve got mail. It stays on for 10 minutes before turning off automatically. The second automation monitors the USPS daily digest email, which lets us know if there’s mail expected later in the day. This one toggles a different light scene, giving us a subtle reminder to keep an eye out for our packages.

I’ve included the YAML code for reference, but I’d love to hear if anyone else has implemented similar automations or has suggestions for improvements. For example, I’m thinking of adding a notification sound or maybe integrating it with my smart speaker for an even more seamless experience.

If you’re interested in trying this out, just make sure to adjust the email subject lines and light settings to match your setup. It’s a small but incredibly useful automation that adds a bit of convenience to daily life. Cheers! :rocket: