The concept of energy management in smart homes has received increasing attention in recent years, particularly on issues such as creating a balance between user privacy and reducing energy costs. Accordingly, this article proposes a user-oriented multi-objective approach, which minimizes energy costs and maximizes consumer privacy. In addition, a home energy management system is suggested for smart homes to optimize the energy consumption pattern of appliances. On the other hand, considering challenges in energy management of smart homes, the concept of demand-side management (DSM) is introduced. The objective of the proposed method is to reduce energy consumption to lower consumers’ electricity bills. Also, it improves user comfort (UC) in average waiting time conditions. In this research, a smart home equipped with an energy management system and smart home appliances that can inject electric power into the upstream network is considered the main system. This framework leads to a multi-objective optimization problem in which the two objectives mentioned above are considered two separate dimensions. To solve the problem, an ITS-BF Algorithm is used, which employs a random search to schedule home appliances and batteries based on the application of flexible devices in smart homes. The case studies show that the proposed method can considerably respect and satisfy users’ privacy and reduce the energy cost to an acceptable level. Finally, the numerical results obtained from the simulation have been analyzed to evaluate the proposed method’s efficiency. The simulation results show that an ITS-BF algorithm performs better than the existing methods in reducing costs and waiting time.