Residential buildings account for a substantial share of global electricity use, and their reliance on solar energy is constrained by the intermittency of irradiance and the variability of heating and cooling demand, particularly in cold climates such as Regina, Saskatchewan. This paper presents a modular, three-stage, fully data-driven machine learning framework for intelligent solar-assisted energy control in residential buildings. In Stage 1, an ensemble of XGBoost and LightGBM gradient-boosting models forecasts Global Horizontal Irradiance (GHI) from historical weather data and engineered solar-geometry features, achieving a coefficient of determination (R2) of 0.9975. In Stage 2, a hybrid deep learning architecture that combines a one-dimensional convolutional neural network (CNN), two stacked Long Short-Term Memory (LSTM) layers, and trainable building-identity embeddings predicts hourly heating and cooling energy consumption for twelve residential buildings, reaching R2 = 0.9730 for heating and R2 = 0.9140 for cooling. In Stage 3, a Random Forest classifier trained on rule-derived labels assigns each hour to one of three operational modes (SOLAR, GRID, or OFF) with classification accuracy exceeding 99% across heating and cooling scenarios. The framework is evaluated using observational 2018 weather and GHI data from Regina, Saskatchewan, together with hourly residential building-energy data from twelve buildings in the NREL ResStock AMY2018 dataset located in North Dakota, a climatically similar region, and its performance is benchmarked against multiple peer-reviewed forecasting and control studies. The results show that combining interpretable ensemble learning, sequence-aware deep learning, and rule-informed classification yields a scalable and transparent decision-support pipeline for solar energy management that can be progressively extended toward real-time smart-building deployment.



