I bought a Legrand RRW600U motion-detecting light switch and I could use some help wiring it to my bathroom light. It's a renovation so I have complete access to the ceiling, wall, and floor framing.
The switch has three wires in the back (black, red, and yellow) and a single green(ish) screw. The bathroom light has three wires: black, white, and bare copper. I am installing new, 14/2 non-metallic sheathed cable to connect the service panel to the switch to the light.
Both the printed instructions and the only YouTube video I could find seem to assume that the electrical circuit passes through the light before terminating in the switch. I would like my circuit to pass through the switch and terminate in the light.
How would I wire the switch to the light in that setup?