WebCore Variable Equivalent

Hi. I just moved my system over from Smartthings and am in the process of trying to move (recreate) my Webcore pistons in HA. I had a couple more complex automations that used variables in Webcore.

What I am trying to accomplish is the following.

I have about five motion sensors throughout the house that I want to trigger a hot water pump to run for five minutes and then shut off. However, I only want that to happen once every fifteen minutes. Meaning that I don’t want a second motion sensor to re-start the timer. In Webcore, I would have motion trigger a variable that would basically stop time and run a separate piston that would run the pump and then wait ten extra minutes. Then the variable would flip again allowing motion to re-trigger the pump and the original piston. Any ideas how I would emulate that in HA with automatons?