On door open - Logic problem

Yes, that's right. And the toggle code should still work after the red LED is lit.