The gap in my outside gate is to large for most of the proposed solutions to work.
I can’t find the thread now, but someone in another thread recommended the below, and it’s working well for me!
Magnetic open/close sensor (gap up to 4inches):
Dry contact sensor (Takes input from the open/close sensor for ZWave):
https://www.amazon.com/gp/product/B0155HSUUY
As the Dry contact sensor isn’t rated for outdoor use, I put it in one of these:
https://www.amazon.com/gp/product/B00JEWNKR0
I just had to drill a tiny hole in the box.to insert the wire, and sealed the hole with some sealant, like this:stuff:
https://www.amazon.com/18285-Dynaflex-Premium-Outdoor-5-5-Ounce/dp/B0058I2MD2
End Result:
(Note: The while the box is sealed for outdoor use, the screws it comes with started turning orange within a few days, so I sealed them with sealant as well.
.
