Weather data errors affect energy management by influencing the accuracy of building energy predictions. This study presents a long short-term memory (LSTM) prediction model based on the “Energy Detective” dataset (Shanghai, China) and neighboring weather station data. The study analyzes the errors of different weather data sources (Detective and A) at the same latitude and longitude. Subsequently, it discusses the effects of weather errors from neighboring weather stations (Detective, A, B, C, and D) on energy forecasts for the next hour and day including the selection process for neighboring weather stations. Furthermore, it compares the forecast results for summer and autumn. The findings indicate a correlation between weather errors from neighboring weather stations and energy consumption. The median R-Square for predicting the next hour reached 0.95. The model’s predictions for the next day exhibit a higher Prediction Interval Mean Width (139.0 in summer and 146.1 in autumn), indicating a greater uncertainty.
This study develops an optimized integrated system for full-capacity hot water supply in hotels by combining solar thermal energy and air-source heat pumps. Using a hotel in Wuhan as a case study, a four-season × four-occupancy multidimensional working-condition matrix was established. Dynamic simulation and multi-objective optimization were performed on TRNSYS-TRNOPT, with the cost-benefit ratio (CBR) as the core evaluation metric. Key parameters—including collector area, tilt and azimuth angles, heat pump capacity, and storage tank volume—were jointly optimized. Model calibration against measured data yielded a deviation of less than 8%. The results demonstrate that the optimized system can achieve 60.8% energy savings and reduce annual carbon emissions by 132.8 t. The best-performing case (Case 1-1) achieved a payback period of 4.1 years, presenting a feasible pathway for decarbonizing buildings with high hot water demand. This research confirms the technical and economic viability of solar–heat pump systems for hotel applications, providing strong support for the achievement of China’s “Dual Carbon” targets in public buildings.