The LEDs usually having switching regulators in them because the LED itself needs about 1.5V at about 1A, not 115V. If you connect them to a triac dimmer, the regulator switching will turn off the triac and you get no light.

So no using them with electronic relays (which are also triacs) either. Mechanical relays with metal contacts are fine.