I’m trying to connect a simple lighting fixture with ground, white, and black wires into a ceiling junction box as shown below. When I removed the cover plate, there were 2 black wires, 2 white wires, 3 green wires, and 1 unstripped yellow wire
I connected the lighting fixture according to the instructions by connecting white to white, black to black, and ground to green. When I turned the breaker on, the light fixture was permanently on and I couldn’t control it with any of the switches.
Is this related to the yellow wire being unconnected? How should I be connecting a lighting fixture to this setup?
I don’t know if it’s relevant but there are two nearby switches with yellow wires connected to them as well (shown below).