Switch – How to wire a switch with two black wires and one yellow wire

smart-switchswitch

I'm new to the DIY community. I'm currently working on changing my switches to smart switches. I've done two single poles successfully but now I have some trouble with this one.

This is my bedroom light switch. I think it's a single pole as I don't see any other switches that control the same light. But there's two black wires and one yellow wire, which confused me.
Can anyone let me know what they are and how I can wire them to a smart switch?
I'm using lutron smart switch that has two black wire, one green/white wire, and one bare wire.
enter image description here

enter image description here

enter image description here

Best Answer

This is the same as your other single pole switches except it has one extra black wire that is sending power to someplace else.

One black wire brings the power into the box and the other black is connected to it on the switch, this is how it is getting power and sending to where it needs to go. The yellow should be the switched power or the the wire that is sending power to the fixture when you flip the switch on.

Does your new switch require a neutral (white) to operate correctly?

If not then; Just wire it up the same. If your new switch does not have screw terminals but only wire leads then you wire all the blacks together with a wire nut. You will need to tie the ground on the new switch to the screw at the back of the box that the green wires are attached to.