Hi, you can do that using a Relay with On/Off status condition and the following automations:
Automation 1 (normaly enable)
If Sensor=Open then Count X seconds
Turn On Relay
Automation 2 (normaly disabled)
If Relay=On then:
- Count 1 second (with me without this it doesn«t work)
- Relay...