Door sensor done differently

Hey everyone, needed to pick your brain on something ;
I’ve been using “modified” Aeotec recessed door sensors to detect deadlock position for a while now.
By modified I mean I have a microswitch connected instead of the reed switch to detect if a door is actually locked instead of open/closed.
While this does exactly what I need it to be, the battery life is terrible especially when it’s getting colder these days. it wouldn’t be an issue if the battery level reporting was reliable but since it isn’t , I’m looking for an alternative solution and here is where I could use some idea’s or directions.

So I’m looking for a simple on/off switch reporting method. Preferably mains powered , wifi/zigbee/zwave I don’t care about it too much as long as it immediately reports state changes. Biggest issue is a way to neatly ‘integrate’ this in a door or door sil…
has anyone done something similar successfully .? eager to learn from you