Wiring – How to connect a new dimmer switch

switchwiring

I'm trying to install a dimmer switch. Are the 2 black wires acting as a pass through? Obviously, green to green, but then what? both blacks and brown, leave white capped? Please help, sorry for being a newb. 🙂

enter image description here

enter image description here

enter image description here

Best Answer

You are going to need to identify the hot and the switched hot. It looked like the hot goes to black and the switched hot goes to the brown. Connect white to whites and ground to ground as you thought.