Here is a diagram of what I’m going to experiment with next…
As long as the door clears the magnet I’m thinking this should work just fine. You could always embed the magnet into the wood framing above the door by carving it out and making it lower profile I’d think.
I’ll try this when I get home today.
Screw one of these in instead of the bulky magnetic contact somehow with the right pole angled just right and you could probably get the sensor to trip with a low profile setup.