Generic z-wave transmitter

I have a microswitch in my door lock that i want to integrate into my Home Assistant system. I want to create a “door locked” boolean status.

The switch has leads that provide a battery power in, and then returns the power on one lead when door is locked and another when the door is unlocked. This is from an older alarmsystem no longer used.

I was thinking i could send a z-wave status from this if i can find a “generic” - semi-programmable - z-wave component that i can set to send state open or locked depending on the power in the leads.

Does anyone know is such a component ? Preferably a small-size board that i can fit into the existing plastic covers.