You know you got me thinking more about this.
So based on our last comments I came up with new modifications that I think you'll like the best.
It doesn't require any new parts, just some rewiring. And we won't need a reset button.
Assumptions:
Door closed=5v
Door open = 0v
State rules:
ready state=Timer off, Relay off, RED on, GRN off, YEL off, door closed
open state=Timer on, Relay on, RED off, GRN on, YEL on, door open
timeout state= Time expired, Relay off, RED off, GRN on, YEL off, door open
Process:
1. ready state
2. On door open
open state
3. If not timeout
On door close Goto 1
Else
timeout state
on door close Goto 1 <----waiting for door to close
Now...for my example with the new statements above:
if the door is open when power is applied to the circuit - timeout state
When the door is then closed - Goto 1
You don't need to worry about reset with this version.
But it does require a latch signal from high-to-low,
where high=door closed, low(or open circuit)=door open
The door-open indicator actually reflects the door status.
This version is working on my bench.
See below.
Alternate circuit that replaces CD4013 with CD4093B: