So for a while I’ve been thinking it would be really nice to know the status of my door locks, but I don’t have any interest in replacing them all with ‘Smart’ door locks, since they are too expensive and I’m not convinced of the security…
I have come up with an idea which will hopefully provide a way to detect lock status of a traditional door lock (if it works )
My doors have nothing that protrudes out of the door when the key is turned, so the only way seems to be detecting the lock cylinder rotation and going from there…
Here is my idea… i’m keen to hear what people think, and any suggestions on how it may be improved.
I’ve designed the 3d print above to fit over the lower part of the door lock (that image is the back of it, so you can see the internals).
The idea being that the curved edge at the top fits against the lower rim of the euro cylinder.
The blue ball is a metal ball bearing and the red U shape is basically a channel for the ball to move in, with a dip at each end for the ball to rest into.
Next I’d fit a small magnet to the rotating part of the euro cylinder (ie, the red dot in the image above).
Now the hope is, that when you turn the key in the lock, the magnet picks up the ball bearing and moves it to one end of the channel as the key is rotated, inside the channel i’ll have some kind of conductor that is shorted by the ball bearing, which is simply wired up to a Xiaomi door sensor PCB.
The the key is rotated clockwise to lock the door, the ball bearing gets transferred to the left side of the channel and makes the circuit - showing the door as locked.
Rotate the key the other way and it moves the ball to the right, and the circuit is now open, so the door shows as unlocked.
I have got around to testing this theory out yet, and I’m getting it would require some tuning of the magnet position to reliably detect… but i’d like to get peoples thoughts on the idea.
Has anyone come up with anything better, or has any suggestions to improve?