Open Micro Smart Grid (OMSG)
The objective of this project is to develop open protocols, data models, and reference implementations for software support of energy production, consumption, and storage in a micro-grid environment. Micro-grids are small-scale energy environments, such as individual buildings, in which energy can be produced (by solar panels, wind turbines, etc.), consumed (by A/C, lights, computers, etc.), and stored (by batteries, fly wheels, etc.). A variety of off-the-shelf hardware can be used to monitor energy production, consumption, and storage, typically by polling the devices once per minute.
As of this writing the repository has no source code, and the issues queue says "Research".