In this study, an offline home energy management system that reduces electricity expense and peak demand without deteriorating residents' contentment is considered. The main goal is to improve the system in the sense of reducing electricity expense, via interfering with appliances by means of interrupting as well as shifting their operation; and keeping up with the benefits of the newest technology, via plug-in hybrid electrical vehicle integration. The proposed offline home energy management system (OF-HEM) consists of smart electrical appliances, power resources (photovoltaic system, grid, backup battery), main controller, communication network and plug-in hybrid electrical vehicle. The main controller manages the power resources, appliances and plug-in hybrid electrical vehicle based on the solution of a mixed integer linear program with defined smart and energy-efficient operation constraints related to the smart appliances and power sources for data collected at the beginning of the day from the power resources and residents' preferences. Conducted case studies demonstrate that OF-HEM significantly reduces electricity expenses and high peak demand.