I have a detached garage, which was unfortunately the setting for a recent bike heist in my neighborhood. I would like to start locking the garage door at night. The door is a normal metal clad exterior door for humans. However, when performing my nightly routine, I would prefer just to look out my window and have some assurance that I, or someone else in my family, did indeed lock the door, without having to trudge out in the snow to verify. The garage is about 50 feet from the house.

My initial thought was to have the locked deadbolt switch on an exterior light fixture. I wasn't able to find any ready made product online, but perhaps my google fu is poor? My current thought is to repurpose a momentary, normally open switch, and position it so that is pressed when the deadbolt is closed, perhaps one like this:

Switches and Lighting Controls, Door Jamb Switch, Normally Open, 3A 120V AC, With Box

  1. Does this seem like a sensible idea?
  2. Can a momentary switch be pressed all night long?
  3. Do y'all have any better ideas? I would like to constrain the topic to solutions which turn on a light, or a similarly low tech indicator, I don't really want to have to find my phone to determine if the door is locked. Also, if possible I don't want to have to replace the deadbolt.
  • 5
    There are all sorts of "smart" locks that will tell you via an app on your phone if the door is locked or not. Unfortunately, though, shopping & product recommendations are explicitly off-topic here. If you'd like to refocus your question to explicitly ask about some aspect of a design incorporating the switch you've linked to, that would be 100% acceptable.
    – FreeMan
    Oct 16, 2023 at 18:59
  • 1
    My system is if it's shut, it's locked, unless I've brought a stack of tools into the house for a job. That means I only have to check if the (big, only) door is open, which I've made easier to spot from the window with some bright tape that catches the street light when the door is open. In other words, there are various means to the same end of ensuring it's not left unlocked, and always locking it is a simple one
    – Chris H
    Oct 16, 2023 at 19:18
  • 2
    If you use a switch like your image, consider using a low voltage lamp and wiring. The thought of inserting a metal key into a lock potentially touching line voltage while standing in snow or a puddle makes me nervous.
    – mikes
    Oct 16, 2023 at 21:24
  • 3
    Does the deadbolt handle rotate between horizontal and vertical depending on whether it's locked? An optical beam-break sensor at precisely the right height could detect that, from beyond the edges of the door frame.
    – Ben Voigt
    Oct 16, 2023 at 22:10
  • 2
    While the OP's goal is to avoid trudging thru snow and elements, this is creating a 'lock status indicator', observable by more than just the OP. An observant opportunistic thief can use the same status indicator to know when it is safe and easy to approach and enter the unlocked garage. I'd be disinclined to use such an advertisement on my own doors.
    – MarkL
    Oct 17, 2023 at 18:28

7 Answers 7


Googling for 'mortice lock with switch' turns up https://www.adiglobaldistribution.co.uk/Product/DA223 which is precisely what you're asking for, except that it will need an external relay or similar to turn on a (mains-powered) lamp.

However, I'm a little concerned about the amount of woodwork that might be necessary to embed a switch into a doorframe: any cavities etc. would weaken it.

An alternative approach would be to get a traditional mortice lock and to fasten a low-voltage microswitch onto or into it such that you could slide it back into the recess in the door with minimal "heavy engineering". This would obviously require a relay or something somewhere, but would be much safer than having non-standard mains wiring and would also allow you to "tap into" the substantial range of low-voltage accessories intended for burglar alarms.

Finally, avoid any modern "smart switches" controlled from your 'phone etc. These are often lumped into the "Internet Of Things" or "IOT" category, where the "S" in that acronym stands for "Security".

  • 1
    I'd just use a low-voltage lamp with that product, and a suitable power supply. Either something designed for 5V from a phone charger, or get a 12V power supply and an fitting designed for automotive or caravan (RV) use. The latter can give you the option of something waterproof to fit outside
    – Chris H
    Oct 17, 2023 at 10:26
  • 1
    Many (most? all?) currently produced IoT devices can be secured. Doesn't mean many actually are, but don't throw out the baby with the bathwater because people don't take the proper actions...
    – FreeMan
    Oct 17, 2023 at 11:49
  • 1
    @FreeMan: If they have the potential to be secured but not by you, that's functionally equivalent to "cannot be secured".
    – Ben Voigt
    Oct 17, 2023 at 15:21
  • 3
    '...the "Internet Of Things" or "IOT" category, where the "S" in that acronym stands for "Security" ' -- Pithy! I'm going to use that. Oct 18, 2023 at 17:03
  • 1
    @WayneConrad I'm afraid that's quite an old one. People started using it when manufacturers started pushing "smart devices" and the situation has improved little in intervening years: leaving aside (a) what the vendor collects about you and (b) how easy it is to hack their protocol you also have to consider (c) what can be harvested from them if they're binned hackaday.com/2019/01/29/… Oct 19, 2023 at 5:36

I am sorry your bikes were stolen, that's awful.

I think your plan is sound if fully considered (electrical safety, structural soundness), but burying that switch in your door frame doesn't sound like a fun project. If it would work for your situation, I would look for an indicator lock.

Image of a keyed deadbolt indicating "OPEN" in green

I know you don't want to replace the deadbolt, but I am seeing these available online for ~$50 and that definitely looks like the path of least resistance to me. Some deadbolt manufacturers offer retrofit kits too.

I went looking online expecting to find a digitally indicated deadbolt and everything I found was some version of a battery eating smart-lock that connects to your network. What a world!

However, that search did help me find some people who have already done what you are doing.

  • This person glued a magnet to the end of their deadbolt and use a reed switch to indicate when it's closed. This is similar to your solution but it keeps you from having to alter the door frame, which I think is a big plus.

  • This person used a tilt-switch on the deadbolt handle. Assuming you want a wired connection, the wire would have to route over the door hinges. Ben Voigt suggests using an optical beam sensor on the door frame instead, I think that's a good idea.

  • This person (in the comments) checked for connectivity between the deadbolt and the strike plate. This seems iffy to me, but what do I know?

  • Of course, this might require an external light to be able to see the green/red indicator from the house, but, a light outside the garage door also helps deter thieves. (Until one decides to throw a rock at the light to turn it off...)
    – FreeMan
    Oct 17, 2023 at 11:51
  • 2
    Yeah that green indicator would be hard to see from 50' away. :)
    – Huesmann
    Oct 17, 2023 at 12:48
  • 1
    In the last example did you mean "conductivity" perhaps? Definitely would be feasible with spring contacts, but not sure the tradeoffs favor having the deadbolt become part of the circuit vs just moving a momentary switch.
    – Ben Voigt
    Oct 17, 2023 at 15:26
  • Have a spy glass permanently mounted in the back door, @Huesmann. Could pick up a used one cheap from a local pirate! :)
    – FreeMan
    Oct 18, 2023 at 13:59

Does the idea of an indicator lamp seem sensible? Sure; as a scheme for monitoring the state of something at a distance this has been implemented countless times.

Yes, a momentary switch may be pressed semi-permanently. "Momentary" means only that the switch doesn't latch into a position; it does not imply anything about the duration-of-pushing or the intended use of the switch.

It might be possible to package this switch into a junction box in a wall cavity adjacent to the door and apply a wood dowel or other rod so that the dead bolt pushes the rod, which pushes the switch.

If you're willing to branch off into the world of low voltage electronics you'll discover a whole world of physically smaller mechanical switches and also other detection techniques. Hall effect sensors detect magnet fields without physical contact (and are used for detecting dead bolt extension in some smart door locks!). Various kinds of optical interrupter modules exist too. And of course, there are roughly ten billion different kinds of mechanical push, lever, roller, and other switches which you might be able to embed into the door jamb. Your own custom circuit could be powered by a 5V USB "device charger" power supply, perhaps using a simple LED shining through the window as the indicator visible inside the house.. Though many of us here at DIY enjoy low voltage too, such a project is likely a better fit at electronics.SE than here at DIY.


Assuming this is your usual style of deadbolt (turn the knob/key, the bolt shoots into the strike plate hole), you could glue a magnet to the tip, and install a (normally open) reed switch in the door frame—bore a hole on the inside of the frame, near where the magnet would be. Might need to bore some additional depth into the strike hole for the additional length the magnet would add. But you could then rig up an LED indicator light using the reed switch (assuming you have electricity in your garage).

Edit: based on Michael Karas's comment, perhaps one could simply bury a basic pin switch (rather than a reed switch) at the end of the bolt bore.

  • 1
    One thing to consider with the idea of gluing a magnet onto the end of the dead bolt pin is that normally a deadbolt end will be flush with the door edge when the bolt is in the open position. A magnet on the end will extend beyond the door edge and needs to be a small enough amount that it does not drag on the door frame side or the deadbolt strike plate.
    – Michael Karas
    Oct 17, 2023 at 15:55
  • an IR contact sensor (basically an led and photodiode both aiming the same way to catch reflections) would work w/o modding the deadbolt plunger.
    – dandavis
    Oct 17, 2023 at 22:29
  • @MichaelKaras good point, hadn't thought of that. Although there is frequently some gap between the bolt and the door frame. This is a garage, so tolerances may not be as tight as if it were a dwelling. And a magnet need not be more than a mm or two thick.
    – Huesmann
    Oct 18, 2023 at 12:21

My first thought was that such a system would result in your light being on all day, when it's difficult to see and thus serves little purpose. You'd want a system that only activates at night, and at that point it'd be simpler to get a smart lock. You can use services like IFTTT to link smart devices together, and create a routine that turns on an indicator light if it's (say) between 6PM and 5AM and the door is unlocked. For an indicator light that doesn't broadcast the lock status to thieves, plug a nightlight into a smart plug inside your house. Some smart locks can even automatically lock if left unlocked for X amount of time, which would eliminate the need for an indicator.

There is a type of lock called a "key retaining" lock that prevents the key from being removed while the lock is unlocked. You'll primarily see these on padlocks and cabinets, but they make them on deadbolts as well. Instead of a light, glance out the window and see if there's a big obvious key hanging out of the door.

If you do try to build a light like you describe, there are a couple of things to keep in mind. First, be very careful that you're not weakening the door frame in the process. You aren't necessarily any better off if you end up with a door that can be easily kicked in. Consider an indirect sensor like an optical beam that goes across the door and is or isn't broken based on the position of the deadbolt knob, an infrared sensor that reflects off of a shiny sticker on one side of the knob, or a camera inside the garage that can see the door.

Also, I recommend that you do all of this with low-voltage lights and wiring. Switching a normal mains-powered light like this could present a safety issue if something comes loose and there's a short to the metal deadbolt (and then to your hand). Plus, it might be hard to meet code requirements regarding serviceability without cutting a junction box into your wall in a place where it compromises the door frame's integrity (you likely have several king studs beside the frame). A low-voltage solution would let you use all manner of small DC limit switches that could be installed with minimal collateral damage to structural members.

  • I like the idea of a key retaining lock and a high-vis keychain.
    – MackM
    Oct 19, 2023 at 16:02

Buy a tall button switch (not a toggle, but hold-type) and install it inside the door frame, so that the button protrudes into the cavity that the deadbolt itself goes into. If you have issues getting the tolerance right, you can add something flexible like a spring or a piece of foam on top of the button.

The button should then be wired so that it turns out the porch light.

For example, you could wire it in series with the normal switch, so that you would leave the normal switch always on and the deadbolt would complete the final opening in the circuit. However, this would require the whole thing to be 120V-safe, which may be hard to do inside a door jamb.

Instead you can use a low voltage switch that wirelessly controls the light. This way the stuff inside the door would be all low voltage. There may be a (more expensive) LED bulb that comes with this already, so you won't have to do any wiring at all (other than putting the switch inside the frame).

You could also use a low power LED as your indicator, instead of the porch light. The indicator does not need to provide adequate lighting, it just needs to be visible. So you can use a low voltage, battery powered light installed outside the garage.


What's your budget? I don't know if 50ft is within range, but I suggest a wireless/bluetooth deadbolt. These can run down to about $60 USD, and the go dramatically up from there. The positive is that you don't have to look outside. Just go on the app on your phone and see if the locked. If not, then press the lock button on the app instead of trudging outside.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.