Patent attributes
A method for controlling power consumption includes receiving a flexibility request from an electrical utility and discovering energy relevant devices in a building. The energy relevant devices include electrical loads and alternative energy sources. Power requirements are predicted from an electrical utility for the loads, the prediction takes into account available power from the alternative power sources. Power set points are determined for the energy relevant devices based on the prediction. The power set points meet the flexibility request. The energy relevant devices are directed to operate at the power set points. A building energy management system is also disclosed.