Apparatus and methods for regulating delivery of electrical energy to a
lighting load are disclosed. An electrical waveform is received from a
source of electrical energy. An integration value is generated based on a
square of an amplitude of the received waveform. Electrical energy is
delivered to the load until the integration value exceeds a threshold
value. Thereafter, the delivery of electrical energy to the load is
discontinued.