fastvance Posted March 6, 2014 Posted March 6, 2014 I have my ISY99 configured to send me an email based on some events. It always sends 2 copies of the email; both identical. I have upgraded to an ISY994, and it does the exact same thing. I am using the built-in email settings, as I wasn't able to get it to work with mine. Anyone know why its sending 2 copies of the email? What do I have set wrong? Thanks!
LeeG Posted March 6, 2014 Posted March 6, 2014 Post the Program sending the notification twice. It sounds like the Program is being invoked more than once. Right click on the Program name and select Copy to Clipboard. Paste in forum post.
fastvance Posted March 16, 2014 Author Posted March 16, 2014 I made a super-simple program to test the system, and found it did not send 2 copies of the email: If Time is 2:57:00PM Then Send Notification to 'Vance GMAIL' content 'Presence is AT HOME' Else - No Actions - (To add one, press 'Action') However, where I am implementing, the code is a little more complicated: If $Presence is 1 And $Presence_JUST_CHANGED is 1 Then Send Notification to 'Vance GMAIL' content 'Presence is AT HOME' $Presence_JUST_CHANGED = 0 Else - No Actions - (To add one, press 'Action') The way this works is the variable Presence indicates if we are at home or not, and it set using some other programs, based on a bunch of inputs, like time schedule, security alarm state (disarmed/home/away), motion detected in certain security alarm zones, etc. The security alarm is a Honeywell Vista which sends some X10 commands based on zone inputs. The ISY994 hears these and takes actions accordingly. Since I want for some certain things to happen "right after" the state of the Presence variable changes, I added another variable called Presence_JUST_CHANGED which is changed to 1 when the Presence state changes, and if not changed back by another program (like this one), will time-out automatically. Some how, the upper program sends 1 email like its supposed to, but the bottom program sends 2. Any ideas?
LeeG Posted March 16, 2014 Posted March 16, 2014 Look at the other Programs that are setting the Variables. The Variable combination must be set to the state that drives the Then clause twice to get two emails.
fastvance Posted March 18, 2014 Author Posted March 18, 2014 I was thinking that, but I the IF contains Presence_JUST_CHANGED=1, and the THEN changes Presence_JUST_CHANGED=0. I thought that would prevent it from running more than once.
LeeG Posted March 18, 2014 Posted March 18, 2014 It would if that is all that was happening. The Variables are being changed such that the Program is triggered twice. The test you ran confirms a Notify sends one email. The only way for two emails to be sent is to trigger the Program twice. That means that the Variables are both set to 1 two times.
Recommended Posts