tylermerrick Posted March 31, 2017 Share Posted March 31, 2017 I am using a SynchroLinc to detect when my sump pump comes on in the basement. Ideally I would like to have one notification when it is triggered and then an additional if it is running for more than 2 minutes, which would indicate that it isn't keeping up and may need some additional attention. I am having trouble with the following program sending 2 notifications for every time that it is triggered. When we are getting heavy rainfall this can fill up my inbox quickly. I only get the 'Sump Pump Running' emails currently. I believe the logic in the Monitor program isn't working as I understand it, and the THEN condition is evaluated even if the original condition isn't true after 2 minutes. Details below and please offer any suggestions as well. I would like to build upon this in the future once I get the kinks worked out. Variable: iSumpRunningDuration: init 0 ====================================================== Sump Monitor Program: If $iSumpRunningDuration > 0 Then Repeat Every 2 minutes $iSumpRunningDuration += 2 Send Notification to 'Family' content 'Sump Pump Running' Else Send Notification to 'Family' content 'Sump Pump Status Change' ======================================================== Sump On Program: If Status 'Power' is 100% Then $iSumpRunningDuration = 1 Send Notification to 'Family' content 'Sump Pump Running' Else $iSumpRunningDuration = 0 ======================================================== Sump Reset Program If Status 'Power' is Off Then $iSumpRunningDuration = 0 Else - No Actions - (To add one, press 'Action') Link to comment
stusviews Posted March 31, 2017 Share Posted March 31, 2017 You may want to add a Repeat statement to the Message Program. Sump On Program: If Control 'SynchroLinc' is switched On And Control 'SynchroLinc' is not switched Off Then $iSumpRunningDuration = 1 Wait 2 minutes Run Program 'Message" (If) Else $iSumpRunningDuration = 0 Message Program: If $iSumpRunningDuration > 0 Then Send Notification to 'Family' content 'Sump Pump Running' Link to comment
apostolakisl Posted March 31, 2017 Share Posted March 31, 2017 (edited) I don't think you need variables at all. Now I am taking stusviews word on this that control synchrolink terminology is correct since I don't have any of those, but it looks good to me. If control synchrolink is switched on and control synchrolink is not switched off (when pump shuts off, this line kills the "then" wait and reruns the program, which is now false causing the else to run) Then send notification pump switched on wait 2 minutes send notification pump still on after 2 minutes optional additional wait 10 minutes send notification pump still on after 12 minutes etc. Else - - - blank optional send notification pump shut off Edited March 31, 2017 by apostolakisl 1 Link to comment
stusviews Posted March 31, 2017 Share Posted March 31, 2017 apostolakisl, I do use a SynchroLinc to control lighting and device LEDs (wow, that really matters if one has a lot of visible devices) when watching a movie. 'Switched on' runs then and 'not switched off' runs Else. BTW, "Repeat 2 times," may be a bit neater than two statements Link to comment
apostolakisl Posted April 1, 2017 Share Posted April 1, 2017 BTW, "Repeat 2 times," may be a bit neater than two statements If you want the same message both times, then yes. I thought it would be nice to have the first statement say "pump turned on" and second one two minutes later to say "pump now on for 2 minutes". Link to comment
tylermerrick Posted April 3, 2017 Author Share Posted April 3, 2017 I have updated my program to what was recommended by stusviews. Thanks for the help, now I just have to wait for a little more rain to see if it triggers properly. Link to comment
mwester Posted April 3, 2017 Share Posted April 3, 2017 Please make sure you have a backup sump pump if you are using the Syncrolinc. The Syncrolinc is an "intrusive" rather than non-intrusive transformer-based current-monitoring device. More specifically, rather than using a current-sensing core that simple goes around the conductor to your sump pump, it actually inserts components into that conductor -- one of which is a fuse. That sounds nice (hey, who doesn't want a fuse?) but it basically adds another failure-point for your sump pump. I know this because I tried to use a Syncrolinc for the same purpose you describe here (except my pump was a septic tank lift pump). And I know about the fuse from experience as well. (I now use a proper non-intrusive current sensor with an IOLinc.) Link to comment
Teken Posted April 3, 2017 Share Posted April 3, 2017 Please make sure you have a backup sump pump if you are using the Syncrolinc. The Syncrolinc is an "intrusive" rather than non-intrusive transformer-based current-monitoring device. More specifically, rather than using a current-sensing core that simple goes around the conductor to your sump pump, it actually inserts components into that conductor -- one of which is a fuse. That sounds nice (hey, who doesn't want a fuse?) but it basically adds another failure-point for your sump pump. I know this because I tried to use a Syncrolinc for the same purpose you describe here (except my pump was a septic tank lift pump). And I know about the fuse from experience as well. (I now use a proper non-intrusive current sensor with an IOLinc.) I would say using a T-tap outlet would offer an alternative in case the fuse blew in the Synchrolinc. Essentially you would have two parallel conductors feeding power to the sump pump. But one is merely intended as a monitoring device and if the fuse blows the other conductor would still offer electrical power to guard against such a condition. Having said this I am a firm believer in a back up battery sump pump unit. Even better if your local allows main line water pressure feeding this negates ever having to worry about electricity being present! Link to comment
larryllix Posted April 4, 2017 Share Posted April 4, 2017 (edited) Wouldnt using a Synchrolink be the monitoring tool to notify the user of a pump failure even if it is the Syncrolink that fails? It seems to me, knowing this is a possibility, an ISY, a monitoring Synchrolinc, and some logic, would be enough to be a top quality alert system. Sent from a tiny keyboard. Response may be brief. Edited April 4, 2017 by larryllix Link to comment
mwester Posted April 4, 2017 Share Posted April 4, 2017 Alas, the way the Syncrolinc is wired internally means that if the sump pump's startup surge (or other event) blows the fuse, then the Syncrolinc itself is dead. There is no heartbeat, and trying to query it to find out if it was in a "not responding" state was unreliable -- but more importantly, even if I managed to get a message out to me that the Syncrolinc had failed, that doesn't help me much -- the pump isn't pumping, and if I'm not there to fix it, well, then the "stuff" hits the fan, so to speak... The right solution is to use a transformer-based current sensor, not a Syncrolinc. Link to comment
Recommended Posts