Hook up of photo cell on yard lamp post
Purchased a yard lamp post with a photo cell light activator. The only instruction that came with it was on the plastic bag that said to dispose of due to its hazard to children. Power source coming into the post is 12 - 2 with ground (black wire, white wire, and ground wire. The photo cell has black wire, white wire and red wire. The lamp has black wire, white wire and ground wire. I understand the white wires are to be connected together. The ground wires are to be connected together. That leaves the black power source wire, the black wire from the lamp and the black and the red wires from the photo cell. Which of these wires are to be connected to which?