Summary**: I built a deadbolt status detector for a dumb deadbolt, based on the inexpensive but very capable YoLink YS7704.**
I’ve been interested in adding telemetry to one of my dumb deadbolts, so I can remotely see if the deadbolt is open. I wanted a setup that:
- Worked on AAA batteries for long life
- Used my existing infrastructure (I don't use Zigbee)
- Was completely invisible under normal circumstances
- Didn’t require modifying the deadbolt significantly
I have a lot of YoLink gear, and I’m impressed by how reliable it is and by the long battery life, so it seemed like a good starting place. In particular, the door and window sensors that use magnetic Hall effect sensors were an easy thing to kitbash, and I realized that the circuit card is ridiculously small and would easily fit in a 1” bored hole behind the deadbolt.
I designed a 3D-printed housing for the circuit card and the batteries. It’s just under 1” diameter and about 3” long, so it will fit in a hole bored behind the deadbolt receptacle, just barely deeper than the 2x4 jack stud and king stud (any deeper, and I might risk hitting electrical cables which typically feed light switches near the deadbolt).
The YoLink is already powered by two AAA batteries, so no change is needed there. The battery life is something like two years, so battery swaps will be rare.
I rotated the circuit card relative to the setup, and I extended the battery terminals with some wire. This put the Hall effect sensor at the end of the package, which is perfect to sense a magnet on the end of the deadbolt.
My deadbolt has a hardened steel core, so I drilled a hole in the end soft steel cover and simply stuck a neodymium magnet into the hole, where it holds itself in place magnetically.
When the deadbolt is extended or retracted, it trips the sensor which activates the YoLink transmitter to send a “closed” or “open” signal.
Since the YoLink integration for Home Assistant is already quite capable, I just needed to add this to any of my existing automations. I’m planning to do a few things.
- Show a “Door unlocked” indication on my “house status” dashboard. It’s the last thing I check each night, and if the board is all green, I don’t have to think hard about house status.
- At night when the deadbolt is unlocked, the lights in that room will come on.
- If at night my driveway sensor triggers and within a few minutes the door is unlocked, turn on lights inside the house.
- If the deadbolt becomes closed and the driveway sensor is triggered within a couple minutes, turn off the common area lights.
- If driveway motion is detected but the deadbolt is locked, turn on the outdoor porch lights.
My final setup looks slightly different from the 3D CAD model; I needed to use a smaller and thus weaker magnet than the YoLink magnet, so the sense distance was smaller for the Hall effect sensor. So I removed the end cap that was covering the circuit card. The whole thing sits inside the house envelope and the door gasket, so I’m not worried about weatherproofing it. I could seal the end with epoxy if needed, leaving the sensor flush on the surface.
I glued a string to the back end of the housing, so that I can easily pull it out of the bored hole. Once I push it in place, the deadbolt simply pushes it to the needed depth, and friction with the string holds it in place. Then I coil the extra string into the hole beneath the circuit card.
I plan to build a second one of these for my other exterior door; my next build will better support the circuit card and thicken the walls slightly, and I'll use a stronger magnet for more sense distance.
Hopefully this gives someone some good ideas.