I have a very weird situation here... I have an outlet and a switch on the same wall. The ceiling light controlled by the switch works fine on its own. However, when the switch is on, if I try to plug in anything (I tried two different LED lamps) into the outlet, the ceiling light will turn off immediately (the switch is still “on”), but the lamp connected to the outlet works fine and the breaker also doesn’t trip. Now comes the weirdest thing - I can turn the switch off, then on, and then the ceiling light is on again.
What could have caused this? Note that the ceiling light is an integrated LED light. My suspicion is that “plugging a load to the outlet” triggered whatever protection mechanism the ceiling light has. Is my guess correct? Or could this be a more serious issue? Thanks!