I am looking for a Rule Engine technique where I want to extend a timer event. Probably easier to give an example.
I have a rule that tells a light to turn one for an hour when a door is opened. Simple enough . . trigger the light on on the door sensor opening, delay for 1 hour, turn the light off. Now if I open the door 15 minutes after the first time, I’d like that light to remain on from an hour after the door is opened the 2nd time.
But in this example, the first iteration will still be running and the light will turn off 60 minutes from the first opening, not the second. Ideally, killing the first iteration would solve the issue but I don’t think that’s possible. I considered variables, but I think that would take a time type.
My example is simplified. There are multiple triggers, so watching for an event to trigger the turn off won’t work in this case.