Replacing a switch with a photocell (dusk till dawn) sensor.
My deck has lighting controlled by a switch. There is also an outlet in the line I think. I am trying to replace the switch with a photocell. Ive been at it for over an hour and have concluded that I am way over my head. Please offer advice. I can provide more pictures if needed.
If it helps, I think the wires coming from the bottom of the top box are from the lights and the wires coming from the back of the top box are from the breaker box.