What you are talking about is a momentary relay. There are a couple of different ways to do it, but I think a better solution is to change how the bell is activated.
Your door bell should be set up so that it only activates when the door is swung open or on closing.
Is there a way you can change the 'button' to do that?
Your door bell should be set up so that it only activates when the door is swung open or on closing.
Is there a way you can change the 'button' to do that?