Nearly zero energy buildings (nZEBs) and the associated research on heating energy systems are gaining increasing attention. To enhance PV self-consumption capacity in nZEBs, a hybrid electric heating system with phase change materials (PCM) for energy storage using photovoltaic (PV) and grid power was developed. To study the system's performance, an experimental bench was set up, and mathematical models for energy efficiency and operational strategy were developed. Furthermore, a research building was chosen as the scenario to investigate the operational performance of the system. The analysis focused on assessing the impact of varying PV and battery capacity, specifically concentrating on load flexibility transfer capability and energy flow within the system. The results indicated that when implementing the hybrid electric heating system with varying PV and battery capacities, significant transfers of both heat and electricity loads could be achieved, leading to peak price electricity usage remaining below 10 %. Regardless of the manner in which PV is utilized, the system facilitates the transfer of both heat and electricity loads, resulting in peak price electricity usage remaining below 5 %. Through an analysis involving the optimization of system capacity and operational strategies during a simulated one-week period in the heating season, the results revealed that the utilization of a battery with a rated capacity as low as 3.69 kWh led to an increase of 10.93 kWh in PV self-consumption, resulting in a noteworthy cost reduction of 15.6 %.