I’ve also added a camera component that works off the image_path config from the sensor.
All that is needed is - platform: mail_and_packages in the cameras config.
Correct you can still use the local_file camera to display it as well, but for ease of use I cobbled one together specifically for the mail_and_packages
Can’t figure out how to modify the lovelace to display the camera instead of whatever else it’s using, but the camera seems to load up just fine/i can see it in the states page in dev-tools.
Working great guys… we will see how it goes with tomorrow’s mail… now if we could just add amazon packages (most of mine come from amazons delivery service now)
… although it does not look like the tracking number is in the emails which I guess would be the only way to know it’s an amazon delivery ?
I noticed my FedEx packages didn’t work when I had some FedEx stuff show up between Fri and Sat. I mentioned it in the GitHub and I think it might be the subject line. All the other functions work great!
I also noticed a FedEx package not showing up as “In Transit” (delivery still couple days out). I don’t see anything in sensor.py to look for “Your package is on its way” though either.
Also anyone else getting duplicate mail sensors? I have 2 for almost all of them… but could also be something I missed from @moralmunky original mail component?
I just installed this platform and had a couple issues with it correctly identifying FedEx packages and generating the mail images from Informed Delivery. I believe I’ve tracked it down to two things:
FedEx Packages
The subject line that I received in my e-mail from FedEx reads “Your package is scheduled for delivery today” but the sensor is coded to look for “Delivery scheduled for today”. (I updated the variable on my system.)
USPS Informed Delivery
The sensor correctly identified the number of mailpieces but did not generate the GIF. It appears that an additional space is required between GIF_MAKER_OPTIONS and all_images. When executing the command in the sensor, the word “background” becomes part of the filepath.
This is working for me except for the images of the mail. I am not sure if its scraping the images at all or if its failing to save to the directory? Im trying to run this in hassos.
The path from what I can tell should be /config/www/mail_and_packages/ for my setup.