Jump to content

Email notifications


Techman

Recommended Posts

The following program is run if a door event is triggered. Email 1 is always received, however Email 2 is intermittent, sometimes it shows up sometimes it doesn't. The emails are sent to two different ISP's. There is nothing in the error log showing any mail server issues. How does the ISY process multiple emails sent at the same time? Do I need a longer wait time between notifications? Currently running 4.2.3, I also had this issue with the previous release

 

 

If

-No conditions

 

Then

Send Notification to 'Email 1' content 'Door Open'

Wait 2 seconds

Send Notification to 'Email 2' content 'Door Open'

 

Else

No action

Link to comment

I reversed them a while ago and the issue always seemed to be with email that was in second position. Do you have any idea how the outgoing emails are processed?

 

I currently have email 1 in group id 1 and email 2 in group id 2. At one point I had them under the same group ID and still had an issue.

Link to comment

Since the notification is the same for both, why not just include both addresses in the Email 1 group and send once ?

 

-Xathros

Link to comment

Telnet to your ISY

Advanced Configuration Guide

 

You may be running into a few things.

 

From the above two links we know the ISY as an adjustable cap on the number of emails sent per minute @ 60.

 

The below program (each one is a different email/isp) results in a lot of throttling by the ISY I can tell there is throttling simply because that variable is part of the email, and rather than each email having an incremented value I actually ended up with most the emails having the value of 80:

If
  - No Conditions - (To add one, press 'Schedule' or 'Condition')

Then
       Repeat 20 times
          $Int_17 += 1
          Send Notification to 'Admin' content 'Program Status'
          $Int_17 += 1
          Send Notification to 'Backup1' content 'Program Status'
          $Int_17 += 1
          Send Notification to 'Backup2' content 'Program Status'
          $Int_17 += 1
          Send Notification to 'Backup3' content 'Program Status'

Else
  - No Actions - (To add one, press 'Action')


 

A wait time of 1-2 seconds after every variable change made every 2-3 emails share the same value.

 

At this time the different email services decided it was time to significantly throttle my messages. I started receiving them several minutes apart.

 

All in all, it does not look like I never recieved an email.

 

I do what Xathros suggests for my notifications when I want them to go to more than one place. They are in a group (such as the wife and me, or that and our cells) and I tend not to have issues with it.

Link to comment

Interesting results. I knew things got queued up on the ISY but that test really shines a light on it.

 

-Xathros

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...