-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sensors Not updating (Yahoo email) #64
Comments
Change the setting, for example if you filtered your emails for USPS etc into a "Mail" folder it would be |
Or just use |
Tried changing it (on the beta release) and it keeps jumping back to Mail... looks like I might have to remove and re-add. Okay, removed integration, restarted, and re-added using Should I submit a bug report for the dev branch on the configuration change not saving? |
Yes please create a separate issue report for that. Thanks. |
Okay, tried I reinstalled the 0.1.2 release and re-added the integration using just |
I've been working on a 2 step setup process to help with this kind of issue here's some screenshots of the new setup process for the next beta: First you enter your server information, then it is validated. Here you can select the folder now for what folder your emails go into for packages. I expect to be dropping this as beta 4 sometime tomorrow. |
@DeadEnded try the 0.1.3-b4 version, you should be able to select the folder where your mail resides now. |
Okay, updated, restarted, and reconfigured. |
Can you post the email address they are coming from and the subject line? |
there is one screen shot of the mail folder in the original post, here is some more detail:
USPS Email notifications
Fedex Email Notifications
Please let me know if this is the data you are looking for. |
These emails and subjects look fine, we're not tracking the exception emails, but the rest, if email from today should show up. The sensor only looks for email for today and parses them into the sensors. |
Hmm... well I guess I'm going to have to figure out a way to debug it... figure out what is causing it to fail, because the HA logs just so no mail found. |
"No mail found" is when it's looking for images in the informed delivery messages. Do you have debugging turned on for the component? I have a post explaining how to do it here: |
ok, got debug log:
So it found the informed delivery, but didn't get the image (there is 1 today) and also didn't update the sensor in HA. |
give it a few for the informed delivery email to come in, then check the log, lets see what it outputs then. |
quick update, I've been watching the sensors a few days since the last change... still nothing. The logs when I get an informed delivery are the same as above. It sees the informed delivery, but nothing is found... Not sure what is wrong... seems very odd... |
You have the debugging turned on for it still right? |
yes - looks just like the above screen shot. |
I add more debug messages to a version and have you give it a go to see what's going on. Likely sometime tomorrow. |
@DeadEnded Give this version a go with the debug on: Lots more debugging added should give us better insight into what's happening. |
Okay I updated backed up the
I believe I had 1 informed delivery of today for a packaging arriving monday... so I'll watch it for the next few days... I'll keep this thread updated. Thanks again for all the help!! |
Find the following function in the sensor.py that you just added, around line 908 or so.
Replace it with the following, you can now set the date for checking mail. Find a day you know you have informed delivery with mail images. Restart, then post the debug messages for the informed delivery with mail images.
|
Looks like the same.... I set the sensor for March 16th:
Here are the emails on that day... The informed delivery has 5 images in it. Here are the debug logs from Portainer:
Looks the exact same... doesn't seem to be finding anything... even the FedEx messages... Thanks! |
Seems like it's not processing the emails, find the line You can do the same for the line: We'll get this figured out. |
Updated to latest beta release.
I even tried a few different days that have different sets of e-mails that should work. |
Ok one more thing I can think to try. You will get a wall of text if it's reading your email message properly. You don't have to paste that here. |
Nope, no big wall-o-text. |
So "Message contents: " stays blank? |
@DeadEnded Can you post a shot of your "System Health" from Home Assistant? |
Starting to wonder if we shouldn't strip the quotes on the folders. Let me check something. |
@DeadEnded give this a shot: Reconfigure and select your "Mail" folder. |
No change. |
So the folder now shows up as "Mail" right? |
Yes, it does. |
I added a debug to this file to see what is being populated into data[0]: See what that pumps out into the log. |
Ran it with both config flow (normal and with quotes). |
That's the line. Did you get an informed delivery email today? |
I am modifying the date in the sensor.py to March 16th for all this testing. That day had an informed delivery with 5 images. |
@DeadEnded quick question, your mail folder isn't a sub folder of another folder is it? ie: |
I've done some testing on my own Yahoo Mail account, it seems that it doesn't like the "ON" part of the email search for some reason. I'm attempting to debug this. |
Here we are, @DeadEnded find the part that says:
and change to:
See if that hits on your email from the 16th. |
Success! I don't have time to look closely at the logs right now, but will post findings tomorrow. Thanks! |
Well now that I know it works, I'll fix the rest after I test tomorrow and release a beta update for some wider testing. |
Trying to setup the Mail and Packages custom component via HACS.
So far everything looks good - but for some reason the sensors are not picking up anything (aka everything is 0). I have had this going for over a week, and received multiple packages from USPS and Fedex - and sensors never tick up from 0.
Today I have a package in route via Fedex and see the email for it. I updated to the BETA just to be sure and still not seeing anything.
Here is my setup (thanks to the beta branch):
Since I am not using the INBOX, but a custom Mail folder, do I need to put it in differently? The integration says it connects successfully, so I expect that means it can reach the account. Is there something I am missing?
I did check HA logs, and all it says is
No mail found
. So no errors there.Here is my mailbox
Mail
showing the emails coming in:Thanks!
DeadEnd
PS. Saw that Amazon is going to be added - but haven’t found where to turn on email notifications… only Alexa which I don’t use. Look forward to this addition once I get it working!!
The text was updated successfully, but these errors were encountered: