The escalating demand on electric vehicles (EVs) has enhanced the necessity of adequate charging infrastructure, especially in residential areas. This article proposes a smart charging approach for off-board EVs chargers in home-energy-hub (HEH) applications along with dc sources such as photovoltaic and battery storage (BS). The proposed method facilitates smart charging and discharging of EVs to obtain both vehicle-To-x and x-To-vehicle operations focusing on the domestic applications integrated with renewable and storage elements. Furthermore, the optimal state-of-charge (SOC) profiles for BS and EV in the HEHs system is defined by the extended Bellman-Ford-Moor algorithm (BFMA). This modified BFMA utilizes the forecasted data such as solar irradiation, electricity tariff, and power consumption to gain economic benefits in HEHs with respect to the user and EV requirements. Moreover, the plugging time, duration, and initial/final SOC are fluctuating at each connection due to the stochastic nature of EV conditions and user settings. This study presents a laboratory implementation of two-level hierarchical energy management system for HEHs with plug-in electric vehicles. In fact, the primary level includes power converters controller, while the proposed algorithm is implemented in the secondary level. Finally, the simulation and experimental results confirm the effectiveness of the proposed analysis regarding the interaction of HEHs and power grid with EVs behavior.