I'm trying to upgrade a light switch and would be grateful if someone could tell me what goes where. I've tried various combinations but the light either does not turn on or stays on permanently.

old switch

new switch

  • Hello, and welcome to Home Improvement. Electrical wiring isn't a "try random combinations to see what works" kind of thing: you could kill yourself or burn your house down. And, you should probably take our tour so you'll know how best to participate here. Oct 10, 2019 at 2:52
  • Thank you for being so helpful with my question.
    – Alex B
    Oct 10, 2019 at 2:57
  • 1
    Seriously, do not do "try everything" black-box experimentation, because you will hit many combinations that will work but will kill you. One of those exists here, and I am worried you might find it and raise the "Mission Accomplished" banner. Oct 10, 2019 at 3:44
  • Forget about the hit and miss concept. This is your life, or your family's, that we're talking about.
    – JACK
    Oct 10, 2019 at 12:40

3 Answers 3


The wiring in your wall is called a "traditional switch loop". The two wires present (besides ground) are always-hot (we hope, the white) and switched-hot (we hope, the black). Note that neutral is NOT present in this box.

This is a case of white being used as a hot wire because the cable only has 2 conductors. Modern Code requires a re-tasked white wire be marked with paint or tape to indicate it is not a neutral. That is also why they are supposed to make it always-hot; so in all switch positions it will test out as hot.

The switch wants always-hot on black and switched-hot on red. However, it also wants neutral on the white wire. This box does not have a neutral. You cannot use this switch here today.

There are two ways to make this work:

Take it back and get a smart switch that doesn't need neutral

They do exist. They either leak current through the light bulb, which doesnt play well with LEDs, but you can mitigate this by adding a special capacitor made by Lutron IIRC. Or, they received permission from UL (Underwriters Laboratories) to use certain particular tricks which allow them to use ground. This latter type is marked "Requires ground".

Replace the cable in the wall with a /3 cable, and reassign the colors.

This is mandatory for any newly installed switch loops after 2011. In that case, you rewire it so black is always-hot, red is switched-hot, and white is true neutral. The colors will match the switch.

  • Thank you for the explanation. Switch being returned and no neutral required switch ordered!
    – Alex B
    Oct 10, 2019 at 4:27

Neutral Required

Many (not all) smart switches, timers, motion sensors, etc. require a neutral. That is because they need to get power even when the switched device is off. Some older switches were designed to leak power through the device even when "off", but that does not work well with LED lights, so needing a neutral at the switch has become more common in the last few years. Current code in many areas now requires neutral to be available at switches for exactly this reason, but many older houses don't have neutral at many switches.

Your existing switch has hot (black) and switched hot (white).

Your new switch has hot (black), switched hot (red), neutral (white) and ground (green). You have ground available in the box (the uninsulated wire) but you don't have neutral.

There are two basic ways a switch can be wired:

  • Panel -> Switch -> Device

If this is the case, you will either have neutral in the box (connected to the neutral wire coming back from the device) or have it nearby (i.e., neutral didn't actually get into the box but is right next to it), since the hot & neutral from the panel need to be together.

  • Panel -> Device -> Switch

This is a switch loop. Switch loops are a great way to avoid extra wires (saving a little money in installation) by only routing hot & switched hot to the switch and not bothering neutral (until the recent code changes, that is). It looks like you have a switch loop. With a switch loop that doesn't include a neutral, the usual fix is to run a new cable from the device that includes hot, switched hot & neutral. If your wiring is in conduit then you can run just a neutral wire. However, since one of the existing wires is white, that would indicate that the wires are part of a cable and not individual wires because white as an individual wire should only be used for neutral and it is only permitted for a different use in a cable because "all 2 wire cables are black/white".

As Harper noted, there is a way to make this "work" without any additional wires (I won't tell you how) but it is not approved by code and not a good idea.

  • 1
    I would hope not. It could energize a bunch of things that are supposed to be grounded, elsewhere in the circuit or even the whole house, depending on where the wire break is. Oct 10, 2019 at 4:01
  • 2
    @AlexB it's not a matter of "not approved", it's a matter of "not safe". Oct 10, 2019 at 4:01
  • 1
    @AlexB No! You have one expert (Harper) and one amateur-who-likes-to-live (me) saying don't do that. This is not a question of code being "picky" (which it turns out is relatively rare, but does happen) but rather is a real safety issue. The solutions are to get a switch that doesn't need neutral or redo the wiring so that you have neutral. Oct 10, 2019 at 4:06
  • 2
    And just so you know @AlexB, if a regulation was stupid, we'd cheerfully say so. It sometimes does happen (GFCI on fridges). This isn't one of those times. Oct 10, 2019 at 4:07
  • 3
    OK I will find a switch that doesn't require a neutral.
    – Alex B
    Oct 10, 2019 at 4:08

Get a different sensor (or replace the wiring in the wall)

You have an old-style switch loop, where the black wire is the hot, the white wire is the switched hot, and the bare wire is ground, of course. Notice what's missing from this description? Neutral, that's what! This is because a mechanical light switch has no use for a neutral wire; however, your occupancy sensor, like all such sensors and smart-switches, has electronics inside it that need power in their own right. The normal way to provide power to something is with a hot and a neutral, and that's how your sensor does it -- it has its own neutral wire.

However, you don't have that neutral, so you'll need to take that sensor back and get one that doesn't need a neutral -- they'll either be designed and tested so that they can leak a bit of current down ground without creating an undue safety hazard from it, or they'll leak that current through the load, which is fine for incandescents but tends to make LEDs glow/flicker (something that can be fixed by fitting a LUT-MLC from Lutron at the light box). If neither of those are an option, you'll need to replace the existing wiring in the wall with a /3 cable, thus converting it to a new style switch loop that provides a neutral along with the always-hot and switched-hot. This is the way new work is required to be done in most cases as of the 2011 NEC, largely due to the proliferation of smart-switches, occupancy sensors, and other such devices.

  • 1
    Thank you for the explanation. Switch being returned and no neutral required switch ordered!
    – Alex B
    Oct 10, 2019 at 4:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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