This study aims to develop an adaptable home energy management system capable of integrating the bidirectional smart charging of electric vehicles. The final goal is to achieve a user-defined objectives such as cost minimization or maximizing renewable self-consumption. Industrialwise, the present work yields valuable outcomes in identifying operational frameworks and boundary conditions. Optimal scheduling benefits both users and the electric network, thus enhancing grid utilization and increasing renewable energy integration. By coordinating power interactions with dynamic time-of-use tariffs, the energy management system minimizes user costs and aids the grid by cutting peak hour energy consumption. Charging and discharging operations in electric vehicles comply with energy level constraints outlined by bidirectional charging protocols. The proposed approach ensures the scheduling of cycles that minimize detrimental effects on battery health when evaluating an economically ageing mechanism. Compared to uncontrolled charging, optimal scheduling resulted in a significant reduction in the total operational cost of the dwelling. Trade-off conditions between renewable integration and potential savings are identified and numerically evaluated by means of multiobjective optimization. In contrast to scheduling-based models, the proposed architecture possesses the ability to iteratively adapt decision variables in response to system changes, thus responding effectively to external stochastic uncertainty.