-
-
Notifications
You must be signed in to change notification settings - Fork 95
Description
Describe the bug
Yesterday's Solcast forecast values used for plans calculated between 00:00 and 00:30.
(I'm using the HA Solcast integration.)
For any plans (or 'Compare' runs) between 00:00 and 00:30, the Solcast forecast for the preceding day is used, instead of the one for the day ahead.
Before 00:00 -- it correctly uses solcast_pv_forecast_forecast_tomorrow for the following day, when planning the following day.
Between 00:00 and 00:30 -- it uses /yesterday's/ value of solcast_pv_forecast_forecast_today (the value it had at e.g. 23:59)
After 00:30 -- it uses the correct values from solcast_pv_forecast_forecast_today
According to HA, solcast_pv_forecast_forecast_today updates at 00:00:00.
Expected behaviour
The forecast for the current day should be updated to match solcast_pv_forecast_forecast_today at midnight, rather than being updated half an hour later.
Predbat version
v8.32.14
Environment details
- GivEnergy Gen 3 5kW hybrid inverter + 9.5kWh Gen 3 battery
- GivTCP v3.2
- Standard HAOS installer
Log file
If I download predbat.log in the morning, the lines from midnight have already gone.
But, I can copy-paste relevant lines from the Log tab -- before midnight the total forecast was 7.25 - 2.4 = 4.85kWh, following the profile of solcast_pv_forecast_forecast_tomorrow:
2026-02-07 23:55:11.133667: PV: [ 2.4, 2.4, 2.4, 2.4, 2.4, 2.4, 2.4, 2.4, 2.4, 2.4, 2.4, 2.4, 2.4, 2.4, 2.4, 2.4, 2.4, 2.41, 2.45, 2.55, 2.74, 3.02, 3.37, 3.77, 4.23, 4.72, 5.23, 5.68, 6.13, 6.5, 6.8, 7.02, 7.15, 7.21, 7.25, 7.25, 7.25, 7.25, 7.25, 7.25, 7.25, 7.25, 7.25, 7.25, 7.25, 7.25, 7.25, 7.25, 7.25, 7.25, 7.25, 7.25, 7.25, 7.25, 7.25, 7.25, 7.25, 7.25, 7.25, 7.25, 7.25, 7.25, 7.25, 7.25] kWh
After midnight it dropped to 3.54kWh, following the profile of solcast_pv_forecast_forecast_today the day before (i.e. the values it held just prior to midnight):
2026-02-08 00:01:11.744102: PV: [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.03, 0.08, 0.34, 0.57, 0.87, 1.19, 1.42, 1.74, 2.05, 2.4, 2.66, 2.96, 3.26, 3.38, 3.43, 3.5, 3.53, 3.54, 3.54, 3.54, 3.54, 3.54, 3.54, 3.54, 3.54, 3.54, 3.54, 3.54, 3.54, 3.54, 3.54, 3.54] kWh
Then, after 00:30 it corrected itself back to 4.85kWh, following the profile of solcast_pv_forecast_forecast_today:
2026-02-08 00:30:09.730979: PV: [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.01, 0.05, 0.15, 0.34, 0.62, 0.97, 1.37, 1.83, 2.32, 2.83, 3.28, 3.73, 4.1, 4.4, 4.62, 4.75, 4.82, 4.85, 4.85, 4.85, 4.85, 4.85, 4.85, 4.85, 4.85, 4.85, 4.85, 4.85, 4.85, 4.85, 4.85, 4.85, 4.85, 4.85, 4.85, 4.85, 4.85, 4.85, 4.85, 4.85, 4.85, 4.85, 4.85, 4.85, 4.85, 4.85, 4.85] kWh
Predbat debug yaml file