The two-way communication of electricity and information in smart homes facilitates the optimal management of devices with the ability to charge and discharge, such as electric vehicles and electrical storage systems. These devices can be scheduled considering domestic renewable energy units, the energy consumption of householders, the electricity tariff of the grid, and other predetermined parameters in order to improve their efficiency and also the technical and economic indices of the smart home. In this paper, a novel framework based on decision vectors and the analytical hierarchy process method is investigated to find the optimal operation schedule of these devices for the day-ahead performance of smart homes. The initial data of the electric vehicle and the electrical storage system are modeled stochastically. The aim of this work is to minimize the electricity cost and the peak demand of the smart home by optimal operation of the electric vehicle and the electrical storage system. Firstly, the different decision vectors for charging and discharging these devices are introduced based on the market price, the produce power of the domestic photovoltaic panel, and the electricity demand of the smart home. Secondly, the analytical hierarchy process method is utilized to implement the various priorities of decision criteria and calculate the ultimate decision vectors. Finally, the operation schedule of the electric vehicle and the electrical storage system is selected based on the ultimate decision vectors considering the operational constraints of these devices and the constraints of charging and discharging priorities. The proposed method is applied to a sample smart home considering different priorities of decision criteria. Numerical results present that although the combination of decision criteria with a high rank of electricity demand has the highest improvement of technical and economic indices of the smart home by about 12 and 26%, the proposed method has appropriate performance in all scenarios for selecting the optimal operation schedule of the electric vehicles and the electrical storage system.