I have 3 12v LED under cabinet lights that I plan to install. The final install goal is to have the line power (120v) controlled by a pre-installed light switch (1-way) which currently operates 4 pot lights above my kitchen sink. This means one switch will control 3 LED lights and 4 pot lights. I haven't gotten that far though, has I have hit a bump in the road. I removed the AC adapter module board from the wall adapter, so that I can discretely install it in the junction box with the switch and soldered two leads onto the board for attaching to the switch. I then terminated the soldered leads to the switch L to the hot wire and N to the switched wire, before I had the chance to test the operation my LED light turned on right away, but my 4 pot lights were off, I flipped the switch and the LED shut off and the pot lights turned on. I then reversed my two soldered leads, but it didn't make a difference. I'm not sure if this is common for LED lights, or if it is maybe some sort of electrical component on the module board that somehow only conducts to the load when the line has no power, but that doesn't make sense because its meant to plug into a wall socket, which is always live.
Why is my LED on when switched off but off when switched on?