I am redoing some work in my bathroom. I have a hot wire running between two lights with the switch outside one of the lights. How do I wire it with 14-2 wire without running the power source to one of the lights first? I also must use this same power source for a fan where the hot goes into the fan and then down to the switch.
They make products specifically for that problem. You wire hot, neutral and ground to every location (i.e. 14/2 wire) and the switch, lamp controller and fan controller uses digital signaling to send the on/off command over the 14/2 or wirelessly. Some can also be controlled by your smartphone etc.