Same question here… You can hard-wire a open/close door sensor which is what my original post suggests for $30 in parts, or if you’re not wanting to spend any cash a vibration sensor might work since the doorbell has a mechanical system (electromagnet).