Trying to swap out an existing pool light switch with a new LED light w/ inclusive switch. The old switch was a standard toggle switch, 3 wires (meaning the outlet is wired white, black, ground) . The new "fancy" switch has 4 wires coming from it.... One in, one out, one neutral and one ground. There is a transformer between the light and switch.
The installer eventually got it working but I'm curious how it should be wired, given the scenario. I just want to make sure it's done right.
I appreciate any feedback.