The current invention is a device connected to the power grid in order to
perform beneficial functions for the end user and/or utility company such
as backup power, power quality improvement, peak shaving of the
electrical load, etc. Inside the device would be energy storage devices
such as batteries, and intelligent hardware and software controlling
charging, discharging and interactive communications.