RPrade has corrected me on my understand on conditions. Although these events seem to work fine as is they can malfunction.
This is an updated thread on how I'm controlling my hot water recirculating pump.
I used to have our Hot Water Recirculating Pump run 24 hours a day. I didn't want to use the timer on the pump because fixed schedules don't really work well. Still I didn't like running the pump so much so I figured it was time to let HS control it.
One nice thing about these pumps is that they can move lots of water when that water is in a loop with no flow restricters. This means that once the pump is turned on it only takes a few seconds to flush the line with hot water where it can take much longer when you only turn on the tap.
My plan was to detect when anyone may want to use water. Since I don't yet have motion detectors in my bathrooms I decided to use the fact that someone turned on the lights. Once I add motion detectors I'll trigger the pump using them but for now lights are a good indication that how water will likely be needed.
I also wanted to keep track of how many times a day the pump runs plus what the total runtime was during the day.
How long does the pump run? I've set mine for 15 minutes with a 5 minute quite period when it turns off. That way the max run time in one hour would be 45 minutes. I figured after 15 minutes of running the water won't cool of that fast. I may over time extend the quite period.
So here is the entire program for my pump. Note: I used EasyTrigger however it can be done without it. I'll also note where I use both Conditions and Triggers in the same events.
This event is triggered by a virtual device so I can activate it from Alexa. This may or my not be needed when HS releases support for Alexa V3. The reason for testing from Off to On is because there is an Idle state, (value of -1) which it always returns to.

This event is the only event that changes the state of the pump to On. It uses both Conditions and Triggers to function split into two events one for conditions and one for triggers.
There are many triggers and conditions that will cause the pump to start. I keep a group which contains all devices that if turned on will cause the pump to start. Also, you can put the pump into always on, automatic or always off mode.
You'll also find the quite period where the pump will not restart.


These are the stop conditions and triggers. As with start this is the only event that will actually turn off the pump.


This event is run whenever the pump is turned on. It setup the various timers and counters needed.

This event is run whenever the pump is turned off. It stops the timers.

The last event is used to reset the usage time and count at the end of the day. It's called from another routine that sends mail with the days statistics then calls this event to clear. It also has an "Only run once in 5 minutes option set".

The devices used for this example. Oh, is nor the HVAC icon use for the pump automatic mode. I need to take the pump icon and modify it for the new automatic icon.

As I make changes to how my pump works I'll update this thread so this first post will always be up to date.
Feel free to post questions and suggestions.
This is an updated thread on how I'm controlling my hot water recirculating pump.
I used to have our Hot Water Recirculating Pump run 24 hours a day. I didn't want to use the timer on the pump because fixed schedules don't really work well. Still I didn't like running the pump so much so I figured it was time to let HS control it.
One nice thing about these pumps is that they can move lots of water when that water is in a loop with no flow restricters. This means that once the pump is turned on it only takes a few seconds to flush the line with hot water where it can take much longer when you only turn on the tap.
My plan was to detect when anyone may want to use water. Since I don't yet have motion detectors in my bathrooms I decided to use the fact that someone turned on the lights. Once I add motion detectors I'll trigger the pump using them but for now lights are a good indication that how water will likely be needed.
I also wanted to keep track of how many times a day the pump runs plus what the total runtime was during the day.
How long does the pump run? I've set mine for 15 minutes with a 5 minute quite period when it turns off. That way the max run time in one hour would be 45 minutes. I figured after 15 minutes of running the water won't cool of that fast. I may over time extend the quite period.
So here is the entire program for my pump. Note: I used EasyTrigger however it can be done without it. I'll also note where I use both Conditions and Triggers in the same events.
This event is triggered by a virtual device so I can activate it from Alexa. This may or my not be needed when HS releases support for Alexa V3. The reason for testing from Off to On is because there is an Idle state, (value of -1) which it always returns to.

This event is the only event that changes the state of the pump to On. It uses both Conditions and Triggers to function split into two events one for conditions and one for triggers.
There are many triggers and conditions that will cause the pump to start. I keep a group which contains all devices that if turned on will cause the pump to start. Also, you can put the pump into always on, automatic or always off mode.
You'll also find the quite period where the pump will not restart.


These are the stop conditions and triggers. As with start this is the only event that will actually turn off the pump.


This event is run whenever the pump is turned on. It setup the various timers and counters needed.

This event is run whenever the pump is turned off. It stops the timers.

The last event is used to reset the usage time and count at the end of the day. It's called from another routine that sends mail with the days statistics then calls this event to clear. It also has an "Only run once in 5 minutes option set".

The devices used for this example. Oh, is nor the HVAC icon use for the pump automatic mode. I need to take the pump icon and modify it for the new automatic icon.

As I make changes to how my pump works I'll update this thread so this first post will always be up to date.
Feel free to post questions and suggestions.
Comment