First try the vibration detector solutions above, much easier than my solution (wish I had that idea earlier).
But if that fails, maybe this is an alternative that always works, although it requires some DIY effort.
Use the door switch to activate a 2 switch relay (5V=) connected to an old 5V phone charger. Use one relay-switch to control the chime and the other to activate a magnetic door/window sensor from which you removed the reed-relais.

