Modeling and Real-World Validation of Home Energy Management Systems: Photovoltaic Generation, Battery Energy Storage, and Bidirectional Grid Connection
DOI:
https://doi.org/10.69650/rast.2026.266103Keywords:
Home Energy Management System (HEMS), Renewable Energy, DC/DC Converter, DC/AC Inverter, Battery Energy Storage System (BESS)Abstract
This article presents comprehensive modeling, simulation, and real-world validation of a Home Energy Management System (HEMS) using MATLAB/Simulink. The model integrates photovoltaic (PV) panels with single-diode equivalent circuits, lithium-ion battery energy storage systems (BESS) with electrochemical modeling, unidirectional boost converters for PV voltage regulation, bidirectional DC/DC converters for battery control, bidirectional DC/AC inverters with sinusoidal PWM for grid synchronization, and utility grid connection to enhance energy efficiency and reduce grid dependency. Five operational scenarios were designed and tested: (1) normal operation with PV as primary source, (2) high load exceeding PV capacity, (3) low solar irradiance requiring battery support, (4) battery charging during PV surplus, and (5) grid export of excess energy. Each scenario was analyzed under varying environmental conditions (solar irradiance 0–650 W/m²) and load profiles. Simulation results demonstrate effective energy balancing through priority-based control (PV → Battery → Grid), with response times under 200 ms, DC bus voltage stability within ±2%, and AC power quality meeting grid standards (THD < 3%, power factor > 0.98). Real-world validation used 30 days of operational data from a 5 kW PV system with 10 kWh battery storage monitored through the FusionSolar platform. Experimental results showed strong model accuracy with
an average MAPE of 4.2%. Performance metrics demonstrated 65.2% PV self-consumption under normal conditions, 37% peak demand reduction during high-load scenarios, 92.4% battery charging efficiency, and 96.1% grid export inverter efficiency. The validated model confirms the HEMS performance evaluation and demonstrates the practical feasibility and economic viability of integrated PV-battery-grid systems.
References
Motta, L. L., Ferreira, L. C. B. C., Cabral, T. W., Lemes, D. A. M., Cardoso, G. d. S., Borchardt, A., Cardieri, P., Fraidenraich, G., de Lima, E. R., Neto, F. B. and Meloni, L. G. P., General Overview and Proof of Concept of a Smart Home Energy Management System Architecture. Electronics. 12 (2023) 4453, doi: https://doi.org/10.3390/electronics12214453.
Sataklang, T., Chollacoop, N., Sintuya, H. and Setthapun, W., Correlations between energy, water, and waste consumption of residential buildings for community demand understanding and management of Smart Village. Journal of Renewable Energy and Smart Grid Technology. 18 (2023) 36-52.
Han, B., Zahraoui, Y., Mubin, M., Mekhilef, S., Seyedmahmoudian, M. and Stojcevski, A., Home Energy Management Systems: A Review of the Concept, Architecture, and Scheduling Strategies. IEEE Access. 11 (2023) 19999-20025, doi: https://doi.org/10.1109/ACCESS.2023.3248502.
Leitão, J., Gil, P., Ribeiro, B. and Cardoso, A., A Survey on Home Energy Management. IEEE Access. 8 (2020) 5699-5722, doi: https://doi.org/10.1109/ACCESS.2019.2963502.
Etedadi Aliabadi, F., Agbossou, K., Kelouwani, S., Henao, N. and Hosseini, S. S., Coordination of Smart Home Energy Management Systems in Neighborhood Areas: A Systematic Review. IEEE Access. 9 (2021) 36417-36443, doi: https://doi.org/10.1109/ACCESS.2021.3061995.
Janthong, S. and Phukpattaranont, P. A Rule-Based, Grey Wolf Optimizer, and Support Vector Machine Approach for Undervoltage Localization in Low-Voltage Distribution Systems. in 2024 IEEE International Smart Cities Conference (ISC2). (2024), 1-6, doi: https://doi.org/10.1109/ISC260477.2024.11004186.
Butploy, N., Maneechot, P. and Klungsida, N., Human Behavior Recognition in a Smart Home by Artificial Neural Networks. Journal of Renewable Energy and Smart Grid Technology. 15 (2020) 49-54.
Aidell, A. S. B., Junaidi, N. b., Kipli, K. b., Masra, S. M. b. W. and Lit, A. b. IoT-Enabled Demand Response and Energy Management System for Smart Homes: Development and Performance Analysis. in 2024 IEEE Sustainable Power and Energy Conference (iSPEC). (2024), 479-483, doi: https://doi.org/10.1109/iSPEC59716.2024.10892582.
Thabet, S. F., Ibrahim, M. F. and Abu-Samah, A., Intelligent Home Energy Management System Based on Genetic Algorithm for Hybrid PV-Battery Operation Under On/Off-Grid Conditions. IEEE Access. 13 (2025) 208832-208844, doi: https://doi.org/10.1109/ACCESS.2025.3639963.
G, V. A. K., Sriramulu Naik, M. and Kotla Siva Koti, R., Modeling and Simulation of PV System with P&O MPPT for Dynamic Load Conditions. Journal of Renewable Energy and Smart Grid Technology. 20 (2025) 61-69, doi: https://doi.org/10.69650/rast.2025.261215.
Daravath, R. and Bali, S. K., A Metaheuristic Approach for the Optimal Allocation of Distributed Energy Resources in a Distribution System. Journal of Renewable Energy and Smart Grid Technology 20 (2025) 70-81, doi: https://doi.org/10.69650/rast.2025.261307.
Luo, F., Kong, W., Ranzi, G. and Dong, Z. Y., Optimal Home Energy Management System With Demand Charge Tariff and Appliance Operational Dependencies. IEEE Transactions on Smart Grid. 11 (2020) 4-14, doi: https://doi.org/10.1109/TSG.2019.2915679.
Ulloa-Vásquez, F., García-Santander, L., Carrizo, D. and Heredia-Figueroa, V., Intelligent electrical pattern recognition of appliances consumption for home energy management using high resolution measurement. IEEE Latin America Transactions. 20 (2022) 326-334, doi: https://doi.org/10.1109/TLA.2022.9661473.
Paul, S. and Padhy, N. P., Real-Time Energy Management for Smart Homes. IEEE Systems Journal. 15 (2021) 4177-4188, doi: https://doi.org/10.1109/JSYST.2020.3016358.
Liang, B., Liu, W., Sun, L., He, Z. and Hou, B., Economic MPC-Based Smart Home Scheduling With Comprehensive Load Types, Real-Time Tariffs, and Intermittent DERs. IEEE Access. 8 (2020) 194373-194383, doi: https://doi.org/10.1109/ACCESS.2020.3033275.
Janthong, S. and Phukpattaranont, P. Impact Analysis of Single-Phase and Three-Phase Electric Vehicle Charging Stations on Power System Operation and Quality. in 2025 IEEE PES GTD Grand International Conference and Exposition Asia (GTD Asia). (2025), 117-121, doi: https://doi.org/10.1109/GTDAsia60461.2025.11313257.
Chen, S. Y. and Chang, C. H., Optimal Power Flows Control for Home Energy Management With Renewable Energy and Energy Storage Systems. IEEE Transactions on Energy Conversion. 38 (2023) 218-229, doi: https://doi.org/10.1109/TEC.2022.3198883.
Wei, X., Amin, M. A., Xu, Y., Jing, T., Yi, Z., Wang, X., Xie, Y., Li, D., Wang, S. and Zhai, Y., Two-Stage Cooperative Intelligent Home Energy Management System for Optimal Scheduling. IEEE Transactions on Industry Applications. 58 (2022) 5423-5437, doi: https://doi.org/10.1109/TIA.2022.3172669.
Buddhahai, B., Wongseree, W. and Rakkwamsuk, P., An Energy Prediction Approach for a Nonintrusive Load Monitoring in Home Appliances. IEEE Transactions on Consumer Electronics. 66 (2020) 96-105, doi: https://doi.org/10.1109/TCE.2019.2956638.
Alden, R. E., Gong, H., Jones, E. S., Ababei, C. and Ionel, D. M., Artificial Intelligence Method for the Forecast and Separation of Total and HVAC Loads With Application to Energy Management of Smart and NZE Homes. IEEE Access. 9 (2021) 160497-160509, doi: https://doi.org/10.1109/ACCESS.2021.3129172.
Hafeez, G., Alimgeer, K. S., Wadud, Z., Khan, I., Usman, M., Qazi, A. B. and Khan, F. A., An Innovative Optimization Strategy for Efficient Energy Management With Day-Ahead Demand Response Signal and Energy Consumption Forecasting in Smart Grid Using Artificial Neural Network. IEEE Access. 8 (2020) 84415-84433, doi: https://doi.org/10.1109/ACCESS.2020.2989316.
Janthong, S. and Phukpattaranont, P., Recognition of Multiple Power Quality Disturbances Based on Discrete Wavelet Transform and Improved Long Short-Term Memory Networks. Journal of Renewable Energy and Smart Grid Technology. 19 (2024) 7-25, doi: https://doi.org/10.69650/rast.2024.255814.
Babu, A., Haritha, K., Nandukrishna, S., Pillai, V. S., Remya, K. P. and Sreekumar, S. Home Energy Management System in Kerala by using Advanced Metering Infrastructure. in 2024 Second International Conference on Smart Technologies for Power and Renewable Energy (SPECon). (2024), 1-4, doi: https://doi.org/10.1109/SPECon61254.2024.10537578.
Bhamidi, L. and Sivasubramani, S., Optimal Sizing of Smart Home Renewable Energy Resources and Battery Under Prosumer-Based Energy Management. IEEE Systems Journal. 15 (2021) 105-113, doi: https://doi.org/10.1109/JSYST.2020.2967351.
Kee, O. K.-H., Kee, K.-K., Yong, C. Y., Rashidi, R. and Lo, T. H., Development of a Data-driven Energy Monitoring System for Power Consumption and Power Quality Monitoring. Journal of Renewable Energy and Smart Grid Technology. 20 (2025) 163-175, doi: https://doi.org/10.69650/rast.2025.263660.
Nkosi, N., Roux, P. L., Nnachi, G. and Okojie, D. Smart Energy Management in Buildings using Matlab Simulink. in 2021 IEEE PES/IAS PowerAfrica. (2021), 1-5, doi: https://doi.org/10.1109/PowerAfrica52236.2021.9543242.
Kroggel, A., Saiju, R. and Shakya, N. Energy Management System for Electrical Grids Based on Matlab. in 2022 4th Global Power, Energy and Communication Conference (GPECOM). (2022), 484-489, doi: https://doi.org/10.1109/GPECOM55404.2022.9815607.
Huawei. FusionSolar, <https://intl.fusionsolar.huawei.com/pvmswebsite/login/build/index.html> (2026).
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 School of Renewable Energy and Smart Grid Technology (SGtech)

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
All copyrights of the above manuscript, including rights to publish in any media, are transferred to the SGtech.
The authors retain the following rights;
1. All proprietary rights other than copyright.
2. Re-use of all or part of the above manuscript in their work.
3. Reproduction of the above manuscript for author’s personal use or for company/institution use provided that
(a) prior permission of SGtech is obtained,
(b) the source and SGtech copyright notice are indicated, and
(c) the copies are not offered for sale.






