June 23Jun 23 Here is the program I am running. The IF is true when it rains, and the THEN is executed correctly with the notification sent immediately... but then the same notification repeats anywhere from 2 minutes to 10 minutes later for at least 20 repeats. It does eventually stop but then it will start up again at some random time. How do I stop the repeating?Gen Sump 1 - [ID 0002][Parent 0001][Not Enabled]If'WeatherLink' Daily Rain > 0.250 InchesThenEnable Program 'Gen Sump2'Run Program 'Gen Sump2' (If)Send Notification to 'Brooke Text' content 'Rain for Gen Sump ON'Else- No Actions - (To add one, press 'Action')Note: Gen Sump 2 is a program that turns on a sump pump for a specified length of time and runs until manually disabled. It works well.
June 23Jun 23 The problem is that your If statement will test true every time the value changes. So even though the rain value stays above 0.250 inches as it increases, the program will fire when it's 0.0251, again at 0.0252, etc. To avoid that, I would use two programs. One that sets another variable as a flag (that the rain is above 0.250 inches), and another program that sends your notification. Like this:If'WeatherLink' Daily Rain > 0.250 InchesThen rain_flag = 1Else rain_flag = 0Ifrain_flag = 1ThenEnable Program 'Gen Sump2'Run Program 'Gen Sump2' (If)Send Notification to 'Brooke Text' content 'Rain for Gen Sump ON'The first program will keep setting the flag to 1 every time the rain value changes, but that doesn't matter. The second program will test true only the first time the flag is set to 1. Edited June 23Jun 23 by Guy Lavoie
June 23Jun 23 Author Thank You GuyI'll give it a try and test it this Thurs when it's supposed to rain.,
June 23Jun 23 Author Guy,I've never used variables so I'm not familiar with them. Here is what I fumbled through. Not sure how or what I've done with the "$Int" ? I just can't figure how to get simple "rain_flag = 1" using the variable input. I assume this will not work but can you guide me how to correct? Thank YouTest 1 - [ID 000A][Parent 0001]If 'WeatherLink' Daily Rain > 0.250 Inches Then $Int_1_rain_flag = 1 Else $Int_2_rain_flag = 0Test 2 - [ID 000F][Parent 0001]If $Int_1_rain_flag is 1 Then Run Program 'Gen Sump2' (If) Send Notification to 'Brooke Text' content 'Rain for Gen Sump ON' Else - No Actions - (To add one, press 'Action')
June 23Jun 23 For the purpose here, you need to use a status variable. Go into variables, click on Status at the top. Then add a variable, editing the name to what you want, then click on Save. I like to prefix the name with a "s" for atatus, such as s_rain_flag.You should then be able to select the variable when programming, such as a If variable statement. Let me know if that works.
June 23Jun 23 Author I can't find "status" at the top. Sorry to be such a pain. The only thing I see is Integer and State. Is state the same as status?
June 24Jun 24 Author Hi GuyHere is the final using "state". Tomorrow's rain should test itTest 1 - [ID 000A][Parent 0001]If 'WeatherLink' Daily Rain > 0.250 Inches Then $S_rain_flag = 1 Else $S_rain_flag = 0 Test 2 - [ID 000F][Parent 0001]If $S_rain_flag is 1 Then Enable Program 'Gen Sump2' Run Program 'Gen Sump2' (If) Send Notification to 'Brooke Text' content 'Rain for Gen Sump ON' Else - No Actions - (To add one, press 'Action')
June 25Jun 25 Author Guy,Early this morning, I started receiving text notifications as if it had rained. It had not rained at all. I checked Gen Sump2, and it was not engaged. I checked Weatherlink, and daily rain was 0. I got about 20 texts all at randon times. They stopped about 1 pm.Any ideas what might be triggering the notifications when the IF statement is false?Might it be a good idea to move the notification line to Then on Gen Sump2?
June 25Jun 25 Interesting. Well what is in the Gen Sump2 program, and why is it run as a separate program? I have not really used Run statements like that so It might be a bit foggy as to what would happen, but I cannot see why you'd get those notifications if the "if" statement never triggered. You could also try putting the notification statement before the Run line.
June 25Jun 25 Another thing: Send Notification is using a plugin, right? Are you able to send notifications ok and only once in other programs?
June 26Jun 26 Author Here is Gen Sump2:Gen Sump2 - [ID 0005][Parent 0001][Not Enabled]If From 10:00:00AM To 10:15:00AM (same day) Or From 1:00:00PM To 1:15:00PM (same day) Or From 4:00:00PM To 4:15:00PM (same day) Or From 7:00:00PM To 7:15:00PM (same day) Or From 10:00:00PM To 10:15:00PM (same day) Or From 1:00:00AM To 1:15:00AM (same day) Or From 4:00:00AM To 4:15:00AM (same day) Or From 7:00:00AM To 7:15:00AM (same day) Then Set 'Generator Sump New' On Else Set 'Generator Sump New' Off I've really do not have other active program that use notifications.Yes, the Weatherlink is a plug in. It's a Davis Instrument program that gets its info from a weather station I have. The rain is updated every 2.5 seconds The data is public. If you feel like it, go to Weatherlink.com and I think you can search for various weather stations. Mine is Spec Acres Weatherlink, chagrin Falls, OhioI would attach a screen shot but I think that is not allowed
Friday at 12:12 PM5 days Well let's back up a bit. Does the sump pump programming itself work ok? If it does, then there might be a problem with notifications itself.
Saturday at 06:44 PM4 days Author Yes, the Gen Sump2 works fine. Just so you know, the random notifications have not returned, and I have not made changes in any of the programs. The rain that came on Thursday was only .125 inches and it did not trigger anything. Keep your fingers crossed, the notification gremlin has dissolved. No rain is expected for at least another week. I'll report back when that happens and we'll see if the repeat notifications recur.
Saturday at 06:59 PM4 days Software problems rarely just "go away". What type of notification is sent? Email? Plugin driven?
Monday at 05:45 PM2 days I don't want to muddy the waters, but based on a recent personal experience, is there a chance your ISY rebooted at about the time these odd notifications started appearing?I have a program that checks for 5 exact times and turns on a device, waits a few seconds, and then turns it off. I found out by accident that if I reboot my EISY, it turns on and then off the device, even though none of those exact times matched the clock time. The "Catch up schedules are restart" setting apparently was the cause. IoX apparently uses some odd logic to determine what to "catch up" on. Perhaps it was trying to "catch up" your programs and sending unwarranted notifications.The setting is under Configuration tab > System tab. I unchecked the checkbox and rebooted my EISY and this time the program did not run unexpectedly. I'm leaving it off.Just a wild guess.Also check the INIT TO settings on your variables to make sure they are what you expect after a power failure.
10 hours ago10 hr Author Thanks Indy,The system setting was not checked so I doubt that was an issue. I used State in variables. As of today, I've received no "repeat" notifications since 6/27....But it hasn't rained, so I shouldn't be getting them. What will be interesting is will I get them when it does rain.
10 hours ago10 hr I'd try testing the notification separately. Create a separate program that just looks for a state variable being set to 1, then send that same notification. If s_test_variable = 1Then send notificationThen s_test_variable = 0Then just go into the variables tab and set it to 1. You should get one notification, and variable gets reset to 0. Test it a few times. If that looks ok, then leave the program there and if the multiple notifications ever happen again, redo this test.
8 hours ago8 hr Author Guy,I did the test 3 times and got one notification each time. So it looks like the notification is OK.
8 hours ago8 hr Ok. So leave it there for now. If/when you get several notifications when it rains, test it again.
Create an account or sign in to comment