Effective management of renewable energy sources (RESs) alongside energy storage systems is crucial for maintaining stability and enhancing the economic performance of a grid-connected microgrid (MG). To address shortcomings in existing energy management strategies, which often overlook essential elements such as voltage support, battery degradation management, and uncertainties in load demand and solar generation, this study proposes a Bi-Layer Strategy for optimizing the operation of Battery Energy Storage Systems (BESS) within grid-connected MGs. The proposed approach maximizes economic returns, minimizes battery degradation, and provides reactive power support to maintain voltage stability. The method consists of the Energy Management Layer (EML) and the Control Layer (CL). The EML adopts a Model Predictive Control (MPC) framework to optimize the BESS power output over a 24-h rolling horizon based on forecasted solar generation, load demand, and electricity prices. The CL translates the optimized hourly setpoints from the EML into real-time operational commands, ensuring that the BESS adapts to actual grid conditions and maintains stable operation. Simulations conducted on a test MG, comprising 150 households, 500 kW rooftop solar PV, and a 300 kWh Li-Ion BESS demonstrate the strategy’s effectiveness under both fixed-rate and Time-of-Use (ToU) pricing schemes. The strategy reduces costs, mitigates battery degradation, and enhances voltage stability by optimizing BESS operations. Compared to a similar method in the literature, it reduces battery degradation by 24%, leading to net savings of $10,000 AUD, while the compared strategy resulted in a $5000 AUD loss. Real-time validation using the OPAL-RT platform further confirms the strategy’s effectiveness in optimizing BESS operations under real-world conditions.