A system, method, and apparatus for integrating distributed energy sources, energy storage, and balance of system components into a single device with systems and control for monitoring, measuring, and conserving power generated on the premise. A data processing gateway, hybrid inverter / converter and charge controller provide flexibility in the multi-voltages, output capacities, and photovoltaic array sizes coupled to the apparatus and system. The system and apparatus may be used in various commercial and residential applications. A user may store energy provided by one or more alternate energy sources coupled to an energy storage module. The system provides a compact enclosure that fits within a utility workspace and enclosures that can be mechanically coupled together, placed in parallel or in a series. A method, computer implemented apparatus, computer readable medium, computer implemented method and a system for monitoring energy consumption, selling energy back to a utility company and peak shaving are also provided.