This paper explores residential microgrids (MG) which not only deploy smart algorithms and energy management strategies for appliances scheduling but also make benefit of insulated wall structures and modern windows ending to smart buildings with sustainable architecture. This amendment is shown to have a remarkable effect on avoiding thermal energy losses and hence lowering energy consumption of heat, ventilation, and air conditioning system (HVAC) in smart and sustainable homes. Moreover, frequency selective surfaces applied in modern windows are shown to greatly improve in-service telecommunication signal transfer ratio, assuring a reliable communication for inhabitants. The proposed model adopts the most recent concept of cloud energy storage system (CESS) unit to provide a public access to charge/discharge capacity for smart home owners. Accordingly, a simple but applicable capacity sharing strategy of CESS is developed for the energy exchanges of smart homes in the MG. By establishing such an access to CESS, the proposed model allocates optimal shares of charge/discharge capacities for home owners, minimizes the daily operation cost of each home and grants an optimal operation of household appliances. The proposed model is formulated as a mixed integer linear programming (MILP) problem and is assessed in several operating strategies.