1. A controller for use with a luminaire, comprising:a surge detection circuit configured to sense a surge in voltage or current;
a relay control circuit configured to repeatedly switch a relay in response to the surge detection circuit having sensed the surge in voltage or current;
the controller including a first circuitry configured to measure at least one electrical parameter of the surge, and a second circuitry configured to transmit the at least one electric parameter of the surge to a remote device; and
the second circuitry configured to send a signal after the surge is sensed to a direct current (DC) converter circuit to shut down an alternating current output voltage supply internal to the DC converter circuit.