Triple E: Energy, economic, and environmental optimization of production and of a building’s electrical and thermal energy storage and consumption through the integration of user behavior and mobility. The overall goal of this project is to optimize the links between production systems (for renewable energy) and the building’s energy consumption (including for mobility by automobile, electric bike, etc.). The use of intelligent control and of an electrical and/or thermal energy storage system should reduce CO2 emissions and reliance on the power grid, while increasing the building’s energy efficiency. The three criteria of energy, environment and economics will determine the strategy adopted by the control algorithm.