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

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
User avatar
McMelloW
Posts: 434
Joined: Monday 20 November 2017 17:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.1
Location: Harderwijk, NL
Contact:

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

Post 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    
}
Greetings McMelloW
User avatar
gizmocuz
Posts: 2712
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

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

Post 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?
Quality outlives Quantity!
User avatar
McMelloW
Posts: 434
Joined: Monday 20 November 2017 17:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.1
Location: Harderwijk, NL
Contact:

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

Post 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?
Greetings McMelloW
User avatar
gizmocuz
Posts: 2712
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

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

Post 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
Quality outlives Quantity!
User avatar
McMelloW
Posts: 434
Joined: Monday 20 November 2017 17:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.1
Location: Harderwijk, NL
Contact:

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

Post 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.
Greetings McMelloW
User avatar
McMelloW
Posts: 434
Joined: Monday 20 November 2017 17:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.1
Location: Harderwijk, NL
Contact:

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

Post 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.
Greetings McMelloW
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest