FIG. 29 illustrates another embodiment of a single-stage integrated dimming LED driver and battery backup system. Here, the energy storage management system 2910 is serially integrated between a voltage regulator 2907 and one or more LEDs 2904, as compared to previous embodiments, where a voltage regulator had a direct power connection to the one or more LEDs 2904. In this case, the energy storage management system 2910 can (1) receive regulated voltage, V2, from the voltage regulator 2907 and convert this to a regulated LED current, I1, (2) receive regulated voltage, V2, from the voltage regulator 2907 and store the power in an energy storage device 2908, (3) receive regulated voltage, V2, from the voltage regulator 2907 and convert part of this power to the regulated LED current, I1, and use part of this power to charge the energy storage device 2908, (4) receive regulated voltage, V2, from the voltage regulator 2907 and generate the regulated LED current, I1, from both the regulated voltage, V2, and energy stored in the energy storage device 2908, or (5) where no AC mains power is available, generate the regulated LED current, I1, entirely from energy stored in the energy storage device 2908. All of these states, and any balancing that occurs within these states, can be controlled by a master controller 2990.