A comprehensive approach to managing thermal energy in residential buildings. Solar-assisted HVAC system with on-site energy generation and storage. Mixed logic-dynamical building model identified using experimental data. Design and implementation of a logic-dynamical model predictive control strategy. MPC applied to the Net-Zero Energy house winner of the Solar Decathlon China 2013.