Abstract
The increasing aggregation of distributed energy resources in residential energy communities is reshaping net-load dynamics at the transformer level. While forecasting methods for community load have advanced considerably, limited attention has been paid to how prediction horizon design, aggregation scale, and model selection jointly affect the operational value of flexibility provision. In particular, the relationship between statistical forecasting accuracy and physical grid-level performance remains insufficiently understood. This study systematically investigates the interaction between spatiotemporal net-load forecasting and transformer-level flexibility control. Twelve forecasting models are benchmarked across prediction horizons from 12 to 96 steps and aggregation levels ranging from 10 to 130 households. The resulting forecasts are embedded within an optimisation framework controlling stationary batteries and electric vehicles. Operational performance is evaluated using peak reduction, maximum peak reduction, rebound severity, and valley filling metrics. Results show that ensemble tree-based models consistently deliver the most robust performance across horizons and aggregation levels. Forecast accuracy improves significantly with aggregation up to approximately 60 households due to stochastic smoothing, beyond which photovoltaic-driven variability limits further predictability gains. Operationally, a 48-step prediction horizon emerges as a practical compromise, enabling effective flexibility deployment without rebound-induced peak amplification, while longer horizons provide only marginal additional benefits. The findings demonstrate that aggregation scale, prediction horizon, and model selection jointly determine transformer-level congestion mitigation performance.