The control circuit 310 may also factor into its decisions regulatory concerns or programmed thresholds that require a certain charge to remain on the energy storage device 308. One can imagine situations where the current from the dimming LED driver is reduced so much that to compensate, the energy storage device 308 might have to be drawn down to levels where the battery backup 314 can no longer provide sufficient power during a power outage to meet regulatory or safety needs. Thus, the control circuit 310 may only increase the energy drawn from the energy storage device 308 to the extent that one or more thresholds of voltage, V1, are maintained.
The control circuit 310 is also responsible for controlling charging of the energy storage device 308. To this end, the control circuit 310 may consider different rates of charging depending on the cost of electricity. For instance, during periods when electricity is expensive, the control circuit 310 may prevent charging of the energy storage device 308 or greatly reduce the rate of charging. During periods of low electricity cost, charging may be resumed or even increased to higher-than-normal rates in order to take advantage of the window of low electricity prices.