This paper presents a predictive Energy Management System (EMS), aimed to improve the performance of a domestic PV-battery system and maximize self-consumption by minimizing energy exchange with the utility grid. The proposed algorithm facilitates a self-consumption approach, which reduces electricity bills, transmission losses, and the required central generation/storage systems. The proposed EMS uses a combination of Fuzzy Logic (FL) and a rule based-algorithm to optimally control the PV-battery system while considering the day-ahead energy forecast including forecast error and the battery State of Health (SOH). The FL maximizes the lifetime of the battery by using SOH and State of Charge (SOC) in decision making algorithm to charge/discharge the battery. The proposed Battery Management System (BMS) has been tested using Active Office Building (AOB) located in Swansea University, UK. Furthermore, it is compared with three recently published methods and with the current BMS utilized in the AOB to show the effectiveness of the proposed technique. The results show that the proposed BMS achieves a saving of 18% in the total energy cost over six months compared to a similar day-ahead forecast-based work. It also achieves a saving up to 95% compared to other methods (with a similar structure) but without a day-ahead forecast-based management. The proposed BMS enhances the battery's lifetime by reducing the average SOC up to 47% compared to the previous methods through avoiding unnecessary charge and discharge cycles. The impact of the PV system size and the battery capacity on the net exchanged energy with the utility grid is also investigated in this study.INDEX TERMS Battery management system, energy management system, fuzzy logic, state of charge, state of health.