Wired opening sensor integration

Personally, I’d just use Zigbee contact sensors. I’m very happy with IKEA’s new PARASOLL sensors.

Nothing wrong with hardwiring, but I suspect that will cost you a lot more for all of the installation work.