Yeah. I retired a year ago, every now & then I say to myself “I’m sure I had a script for that…” bit then I can’t find it of course, which makes me sad.
Oh & I used to sign in to GitHub with a username & password, then GitHub said I needed to change my password, and emailed me a link to my old work address, which I can no longer access.
So I’m going to have to fork my own stuff!
With this type of strike you know if you’ve provided power to it to unlock it.
The other part (which unlocks with the key) is in the moving part of the door, so any connections to it are going to have to navigate the hinge & survive repeated bending. So why do that?
The obvious way is to use a standard magnetic intruder alarm switch, then the connections can be on the frame.
It will operate when the door is opened, not when it unlocks, but it’s so much simpler to implement.