Electrical – What’s wrong with this light circuit and/or the attempts to replace the light switch

electricallighting

I am replacing the old light switches and outlets in this house. I have a single light switch that controls a standard two-outlet wall plug. (So you can plug a lamp in and turn it on and off with the light switch). I am attempting to replace that light switch and have run into strange problems.

Here is what I've done so far, and I am confused what is going wrong or what I should do next to fix it:

  1. I replaced the outlet a few days ago. After doing so, the light and light switch worked multiple times with no problems.
  2. Yesterday I removed the old light switch.
  3. I attempted to install a dimmer switch, but the inside of the box was different than expected.
    • Rather than having two white wires and two black wires, there was only a single white and black wire.
    • Based on instructions I saw online and received in this thread, I wired one black wire from the dimmer to the black wire in the box, the other black wire from the dimmer to the white wire in the box, and attached the ground wire.
    • I turned back on the breaker with the switch open and the light was on. When I tried to dim the switch, the switch "popped", smelled like burning, and the light went out.
  4. Someone pointed out in that thread that a dimmer on a wall outlet is not to code and can be a fire danger, so I bought a standard light switch and attempted to install it instead.
    • I wired the switch as the instructions indicate, and the circuit popped as soon as it was engaged.
    • Thinking that the white paint on the black wall wire might be a secret code from the past that that's actually the white wire, I reversed the wiring and turned on the breaker. The breaker made a loud humming noise and the light did not work. I disengaged the breaker.
  5. I removed the switch and posted here for help.

What do I do to get this light switch working again?


Old Switch

Old Switch


Inside Switch Box

Switch Box


New Switch

New Switch


New Outlet, wired

New Outlet, Wired


Inside Outlet Box

Inside Outlet Box


As Requested, better photo of inside Outlet Box

More Details Inside Outlet Box

Best Answer

White paint on black wire is just from a sloppy painter.

It is recommended to place black tape/paint on both ends of white connected to the black wire(showing it is hot).

Would replace outlet, switch, and breaker, in case one or more was damaged. Would not trust breaker after it was humming.

Place black wire on brass/gold colour screw of outlet and white on the silver screw. Screw all screws on outlet down.

If wanting a dimmer for the light, would think about plug in types. Between the outlet and the plugged in light.