MQTT device that senses open/close switch

There are Zigbee and Z-Wave door sensors with Reed Switches in them that you can probably bypass the same way I thought I needed to do it with the sensor of my alarm system:


If you have a zigbee2MQTT gateway or something similar for Z-Wave that would be the way to get the info into HA.

For more details see the text around the image here: