Model for smart appliances toward smart grid into smart city