ok thanks for the help,now i dont need a bulky relay to do this simple job.
Not at allwould there be any issues with this circuit if it had the 12V supplied to it all the time the door was open?
Thank you for your reply.Not at all
I prefer the debounced toggle circuit below using the CD4013 D-FF.
It uses an RC to delay of the D feedback signal to prevent the FF from toggling more than once during the switch bounce time.
It uses only one R and one C, and doesn't degrade the clock signal rise-time.
For the values shown, the debounce lockout time is about 70ms.
AG's circuit in post #23 is also good.
View attachment 117573