I have a closet with a light switch and a recessed light. I want to add an outlet to the ceiling of the closet. I have really good attic access to the recessed light, so actually placing the receptacle up there will be very easy.
The light is attached to a switch inside the closet. Just one black wire goes into it and one white wire comes out.
I'm wondering if I can somehow insert the outlet into this wiring configuration without it turning off when the light switch is off. I'm afraid it might not be possible.
If that isn't possible, would I be able to pull electricity off the source that runs into the light switch receptacle? Ideas on how I would configure the wiring?
Here is what the outlet looks like. I believe power comes from the bottom. Can I just plug another black wire into the yellow coupler with the blacks and another white into the other yellow coupler with the whites and the ground to the ground coupler and then just run my outlet off that?