I programmed a notification when a pump is OFF for longer then 15 minutes.
This is a pump that gets switched on and off manually several times a day. So I only get an email when someone forgets to turn it back on.
This part is working fine.
Now I would like to get a notification that the pump is back on, but only when the above part was triggered in the 3 hours before it's back on. This to prevent me from getting 50 pointless emails a day.