main components of a smart home energy management system