Jump to content

How could I monitor how much my sump pump is running?


someguy

Recommended Posts

For the pump, you just plug it into the outlet that is fed by the hot (black) wire that loops through the sensor core.

 

The two visible screws are a “dry contact” that is open when the pump is off, and closed when the pump is on, so you would connect one to common on IOLINC, and the other to NO (Normally Open).

Kevmartin:

 

actually, one wire connects to "GND" and the other connects to "S" (sense). 

 

with this configuration, it works! 

 

thank you everyone for the help. 

Link to comment

Kevmartin:

 

actually, one wire connects to "GND" and the other connects to "S" (sense). 

 

with this configuration, it works! 

 

thank you everyone for the help. 

 

Can you offer some photo's of the final solution in place. As I am sure this will help those so interested in the future. I would probably do a *How To* in a new thread and link back to this one so it can be easily found. Please also include a few descriptive tags in the heading of the new thread so its easier to find in the search box. 

Link to comment

I will include a photo.  The next question that I have is to create a program to time the running of the sump.  I'm looking for the number of seconds it runs per day.   

Cycle Timer Sump - [ID 0261][Parent 0262]

If
        Status  'Basement / Sump Unfin IOLinc (sensor)' is On
 
Then
        Repeat 100 times
           Wait  1 second
           $Unfinished_Sump_Time_in_Seconds += 1
 
Else
   - No Actions - (To add one, press 'Action')
 


do you think this will work or would you suggest another way of timing it running?  

Link to comment
I use three programs with a Synchrolinc.
Program 1 counts pump cycles.

If
        Control 'Sensors / Sump Pump' is switched On
 
Then
        $Sump_Pump_Cycles += 1
        $Sump_Pump_Cycles Init To $Sump_Pump_Cycles
 
Else
   - No Actions - (To add one, press 'Action')
 
 
Program 2 counts pump runtime in seconds.

If
        Control 'Sensors / Sump Pump' is switched On
    And Control 'Sensors / Sump Pump' is not switched Off
 
Then
        Repeat Every  1 second
           $Sump_Pump_Run_Time += 1
           $Sump_Pump_Run_Time Init To $Sump_Pump_Run_Time
 
Else
   - No Actions - (To add one, press 'Action')
 
 
Program 3 calculates daily and YTD cumulative data and sends an email report and resets counters.

If
        Time is 12:00:00AM
    And $Sump_Pump_Cycles > 0
 
Then
        $Sump_Pump_Cycles_YTD += $Sump_Pump_Cycles
        $Sump_Pump_Cycles_YTD Init To $Sump_Pump_Cycles_YTD
        $Sump_Pump_Run_Time_YTD += $Sump_Pump_Run_Time
        $Sump_Pump_Run_Time_YTD Init To $Sump_Pump_Run_Time_YTD
        $Sump_Pump_Minutes  = $Sump_Pump_Run_Time_YTD
        $Sump_Pump_Minutes /= 60
        $Sump_Pump_Hours  = $Sump_Pump_Run_Time_YTD
        $Sump_Pump_Hours /= 3600
        $Sump_Pump_Minutes_Calc  = $Sump_Pump_Hours
        $Sump_Pump_Minutes_Calc *= 60
        $Sump_Pump_Minutes -= $Sump_Pump_Minutes_Calc
        Wait  5 seconds
        Send Notification to 'Email' content 'Sump Pump'
        Wait  5 seconds
        $Sump_Pump_Cycles  = 0
        $Sump_Pump_Run_Time  = 0
        $Sump_Pump_Cycles Init To 0
        $Sump_Pump_Run_Time Init To 0
 
Else
   - No Actions - (To add one, press 'Action')
 

Email report body is:
Sump Pump ran ${var.1.1} times yesterday for a total of ${var.1.2} seconds.

YTD 2017:
Total Cycles: ${var.1.4}
Total Run Time: ${var.1.7} hours and ${var.1.6} minutes
 

Link to comment

I will include a photo.  The next question that I have is to create a program to time the running of the sump.  I'm looking for the number of seconds it runs per day.   

Cycle Timer Sump - [ID 0261][Parent 0262]

If
        Status  'Basement / Sump Unfin IOLinc (sensor)' is On
 
Then
        Repeat 100 times
           Wait  1 second
           $Unfinished_Sump_Time_in_Seconds += 1
 
Else
   - No Actions - (To add one, press 'Action')
 


do you think this will work or would you suggest another way of timing it running?  

You will need a few support programs to work with this basic timing loop but yes. It may make your ISY somewhat busy.

You will need a program to run at midnight to transfer the accumulator variable to another one to remember it and then reset the accumulator variable,

a program to send out the remember variable at a convenient time.

 

You will lose timing if ISY power cycles, in all cases.

 

 

If you run v5.+ it has a seconds since midnight function variable that is easy to accumulate from.

Link to comment

 It may make your ISY somewhat busy.

I agree -- I'd hesitate to use "Repeat Every  1 second" unless I really needed that level of granularity.   I track HVAC runtime with this technique, but only to the nearest whole minute.

Link to comment

 

I use three programs with a Synchrolinc.
Program 1 counts pump cycles.

 

If

        Control 'Sensors / Sump Pump' is switched On

 

Then

        $Sump_Pump_Cycles += 1

        $Sump_Pump_Cycles Init To $Sump_Pump_Cycles

 

Else

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

 

 

Program 2 counts pump runtime in seconds.

 

If

        Control 'Sensors / Sump Pump' is switched On

    And Control 'Sensors / Sump Pump' is not switched Off

 

Then

        Repeat Every  1 second

           $Sump_Pump_Run_Time += 1

           $Sump_Pump_Run_Time Init To $Sump_Pump_Run_Time

 

Else

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

 

 
Program 3 calculates daily and YTD cumulative data and sends an email report and resets counters.

 

If

        Time is 12:00:00AM

    And $Sump_Pump_Cycles > 0

 

Then

        $Sump_Pump_Cycles_YTD += $Sump_Pump_Cycles

        $Sump_Pump_Cycles_YTD Init To $Sump_Pump_Cycles_YTD

        $Sump_Pump_Run_Time_YTD += $Sump_Pump_Run_Time

        $Sump_Pump_Run_Time_YTD Init To $Sump_Pump_Run_Time_YTD

        $Sump_Pump_Minutes  = $Sump_Pump_Run_Time_YTD

        $Sump_Pump_Minutes /= 60

        $Sump_Pump_Hours  = $Sump_Pump_Run_Time_YTD

        $Sump_Pump_Hours /= 3600

        $Sump_Pump_Minutes_Calc  = $Sump_Pump_Hours

        $Sump_Pump_Minutes_Calc *= 60

        $Sump_Pump_Minutes -= $Sump_Pump_Minutes_Calc

        Wait  5 seconds

        Send Notification to 'Email' content 'Sump Pump'

        Wait  5 seconds

        $Sump_Pump_Cycles  = 0

        $Sump_Pump_Run_Time  = 0

        $Sump_Pump_Cycles Init To 0

        $Sump_Pump_Run_Time Init To 0

 

Else

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

 

Email report body is:

Sump Pump ran ${var.1.1} times yesterday for a total of ${var.1.2} seconds.

 

YTD 2017:

Total Cycles: ${var.1.4}

Total Run Time: ${var.1.7} hours and ${var.1.6} minutes

 

 

Nice!

 

Did you know ISY has a modulo arithmetic function to make this easier?

 

$hours /= 3600

$seconds %= 3600

Link to comment

I agree -- I'd hesitate to use "Repeat Every  1 second" unless I really needed that level of granularity.   I track HVAC runtime with this technique, but only to the nearest whole minute.

V5 can do it with seconds resolution so much better. I posted a series of programs to do this in the V5 section.

Link to comment

 

Then

        Repeat Every  1 second

           $Sump_Pump_Run_Time += 1

           $Sump_Pump_Run_Time Init To $Sump_Pump_Run_Time

 

To make the ISY less busy:

 

Then

        Repeat Every  15 second

           $Sump_Pump_Run_Time += 15

           $Sump_Pump_Run_Time Init To $Sump_Pump_Run_Time

 

It's not EGGSACTLY the same granularity, but should be close enough...

Link to comment

Since my pump control is based on the principle of redundancy, the backup controller (a raspberry pi) keeps track of the details (it actually tracks the precise current draw of the pump, taking measurements once-per-second during the full run time).  I have it post the exact elapsed time to a variable on my ISY.

Link to comment

Under 5.x, you can store system time to a variable when the pump comes on / off and get the run time via subtraction.

 

This is how I now do all runtime calculations.

 

 

Sent from my iPhone using Tapatalk

when are we expecting to see 5.x up for grabs (not in alpha form)?

Link to comment

Archived

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


×
×
  • Create New...