CoRE - Get peer assistance here with setting up Pistons

Not exactly the same but I use a ‘stays inactive for x minutes’ with my motion detectors and a TCP to cancel on state change. Without it the sensor changes to inactive and the lights go off despite the fact someone may be in the room. This way the sensor goes inactive and if it goes active in x minutes nothing happens but the cycle resets.