Page 1 of 1

ERRORS are send, but notifications are NOT send by mail.

Posted: Sunday 16 June 2024 19:03
by McMelloW
Raspberry Pi 3B+ Bullseye updated today. Domoticz Build 16064

A notification send by a device SolarEdge Status causes errors Failed to send Email notification!
However after 5 error an email is send properly. Also a test mail by the test button is working OK as well.

All 3 events use the same email configuration in Domoticz. Is there a difference in an email notification alert and errors send as notification?

Anybody has a clue?

The error log with status from the error mail and the test mail

Code: Select all

2024-06-16 18:34:57.586 Status: Notification: SolarEdge Status notification!
2024-06-16 18:35:07.596 Error: SMTP Mailer: Error sending Email to: <[email protected]> !
2024-06-16 18:35:07.596 Error: libcurl: (28)
2024-06-16 18:35:07.596 Error: Operation timed out after 10001 milliseconds with 0 out of 0 bytes received
2024-06-16 18:35:07.596
2024-06-16 18:35:07.596 Error: Failed to send Email notification!
2024-06-16 18:36:11.377 Error: SMTP Mailer: Error sending Email to: <[email protected]> !
2024-06-16 18:36:11.377 Error: libcurl: (28)
2024-06-16 18:36:11.377 Error: Operation timed out after 10001 milliseconds with 0 out of 0 bytes received
2024-06-16 18:36:11.377
2024-06-16 18:36:11.377 Error: Notification failed (Email)
2024-06-16 18:37:12.183 Status: Notification sent (Email)
2024-06-16 18:45:02.141 Status: Notification: Domoticz test
The script sending the notification

Code: Select all

return
{
    
    on =
    {
        devices = { 'SE - Status'}
    },

    execute = function(domoticz, item)
       if item.text ~= 'Sleeping' and item.text ~= 'Producing' then
          domoticz.notify('SolarEdge Status notification!',
                        'SolarEdge Status is now: ' .. item.text,
                        domoticz.PRIORITY_HIGH)
        end
    end    
}

Re: ERRORS are send, but notifications are NOT send by mail.

Posted: Monday 17 June 2024 8:34
by gizmocuz
No, they are the same, same single class handling the emails
Could you try with a dummy button and a notification and test this?

Re: ERRORS are send, but notifications are NOT send by mail.

Posted: Monday 17 June 2024 12:10
by McMelloW
gizmocuz wrote: Monday 17 June 2024 8:34 No, they are the same, same single class handling the emails
Could you try with a dummy button and a notification and test this?
What I did is send a json command via the browser. This way I updated the the text device.

Code: Select all

http://192.168.xxx.xxx.:8080/json.htm?type=command&param=udevice&idx=10&nvalue=0&svalue=SolarEdgeStatusDeviceTest
In the log of the device I see the update and the change back to the real SolarEdge Status. The notification is not received by mail, but the mail with errors is received OK.
Created a new dummy Text-device, which is the same a the original and shows the same behavior as the original. The notification is not send and the notification with the errors is (of the not send notification) is received in the mail.

What about the domoticz.PRIORITY_XXX in the domoticz.notify command, does this has any influence?

Re: ERRORS are send, but notifications are NOT send by mail.

Posted: Monday 17 June 2024 17:24
by gizmocuz
Maybe you could try another mail server? Maybe it is seeing it as spam as the email would be small and text based

Re: ERRORS are send, but notifications are NOT send by mail.

Posted: Monday 17 June 2024 19:27
by McMelloW
gizmocuz wrote: Monday 17 June 2024 17:24 Maybe you could try another mail server? Maybe it is seeing it as spam as the email would be small and text based
Thanks for your reply. I will try another mail server and see what happens

Still is an odd situation. Domoticz test messages works OK (Blue Test Button) errors generated by send mail errors are send as well, But notification emails are not send.

Re: ERRORS are send, but notifications are NOT send by mail.

Posted: Tuesday 18 June 2024 12:47
by McMelloW
gizmocuz wrote: Monday 17 June 2024 17:24 Maybe you could try another mail server? Maybe it is seeing it as spam as the email would be small and text based
Changed to another email address. It seems to work OK now.

I guess it has something to do with the transition from telfort.nl ==> kpn.nl. Keep an eye on for some time.