moralmunky / Home-Assistant-Mail-And-Packages

Home Assistant integration providing day of package counts and USPS informed delivery images.
MIT License
581 stars 73 forks source link

Add Sensor for delivered USPS mail. #915

Open ClaymoreTech4 opened 2 weeks ago

ClaymoreTech4 commented 2 weeks ago

USPS added the ability to receive an email once mail was delivered.

USPS started new service to receive and email once mail is delivered, below is a screenshot to set it up and the email you receive once you mail is delivered.

It would be fantastic to have a sensor to show Mail delivered to be able to run automations.

Thank you

Screenshot_20240620-105431.png

MAIL DELIVERY NOTIFICATION

 MAIL

View Dashboard

Your mail has been delivered today, June 18!

Please note that Mail Delivery Notifications are not assurances that a specific mailpiece visible in your Informed Delivery Daily Digest Email or Dashboard has been delivered.

We value your feedback as we seek to continuously improve the accuracy of this feature.  After checking your mailbox today, please tell us about your experience with this notification:

 

You subscribed to this feature with USPS® Product Technology Innovation, 475 L'Enfant Plaza SW, Washington, DC 20260. If you no longer wish to receive Mail Delivery Notifications, you can click here to unsubscribe.

If you need assistance, please email questions or concerns to USPSInformedDeliveryQuestions@usps.gov.

Copyright© 2024 United States Postal Service®. All Rights Reserved. The Eagle Logo is among the many trademarks of the U.S. Postal Service® . This is an automated email, please do not reply to this message. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please delete. Any other use of the email by you is prohibited.

USPS.com | Privacy Policy | FAQs

firstof9 commented 2 weeks ago

What's the from address and the subject of the email? This option isn't yet available in my area so I cannot test.

ClaymoreTech4 commented 2 weeks ago

markup_1000006571.png

firstof9 commented 2 weeks ago

Notes:

    "usps_mail_delivered": {
        "email": [
            "USPSInformedDelivery@usps.gov",
            "USPSInformeddelivery@email.informeddelivery.usps.com",
            "USPSInformeddelivery@informeddelivery.usps.com",
            "USPS Informed Delivery",
        ],
        "subject": ["Your Mail Was Delivered"],
    },

Binary Sensor:

    "usps_mail_delivered": BinarySensorEntityDescription(
        name="USPS Mail Delivered",
        key="usps_mail_delivered",
        device_class=BinarySensorDeviceClass.UPDATE,
    ),
firstof9 commented 2 weeks ago

Please try 0.3.29b0.

ClaymoreTech4 commented 1 week ago

Installed, Will let you know.

firstof9 commented 1 week ago

Please note the sensor is disabled by default, so you'll need to enable it.

ClaymoreTech4 commented 1 week ago

Yesterday I installed and enabled the sensor before the mail was delivered. The Binary Sensor did not update. Unfortunately I will be out of town starting tomorrow with a mail hold until 07-08-24. Thank you

firstof9 commented 1 week ago

If you can get some debug logs that'd be a big help debugging.

ClaymoreTech4 commented 1 week ago

No problem, I turned on debugging. How often does the integration check gmail?

firstof9 commented 1 week ago

That's user configurable. The default is every 30 mins.

github-actions[bot] commented 1 day ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.