How to connect a new outlet cable to a box with two existing cables

receptacle

I have a outlet that supplies a garage door opener. It has two black wires and two white wires. One black is hot. I want to use this outlet as a power source to install outdoor spotlight. I ran new wire to outlet but not sure how to connect wires.

Also when I unplug opener and plug it into another working outlet opener would not come on. It only will work on outlet I want to use as a power source.

Best Answer

Assuming that one cable is the incoming power and one goes out to more outlets or lights, just keep everything connected by color--blacks together and whites together.

I'm a little concerned that you're doing electrical work without the skills to trace a simple circuit, though. Please be sure that you have an understanding of proper connection techniques, wire size requirements, and other best practices. A little reading of a house wiring guide would be wise. You don't want to burn your house down.