Corrupt Forecast Data in history and forecast UI
Describe the bug
A recent change must have caused corruption of my PV forecast values. See attached screens. The source data (from Solcast) doesnt show these numbers, so it must be something within EVCC.
My Setup is a solar roof with 2 directions, so I model this as 2 pv arrays in solcast (below screens from solcast ui)
However, in evcc I get the following in the forecast display (for the same time as shown in the solcast output above)
and also the history looks odd (.csv attached as well)
The forecast somehow is > double the solcast API output.
I have solcast configured as follows in evcc (you see wrong values here already. about 2x too high)
Here is the advanced settings of the south.east array. I am using start-time, end-time and interval to not get rate limited by solcast who only allow 10 api request per each 24h.
Steps to reproduce
- see above
...
Configuration details
^Clinux@snackbox:~/evcc-dev$ export OPTIMIZER_URI="https://optimizer.evcc.io" && ./evcc dump --database ./evcc.db --config evcc.yaml --cfg
[main ] INFO 2026/05/24 15:01:59 using config file: evcc.yaml
[main ] INFO 2026/05/24 15:01:59 using sqlite database: ./evcc.db?_pragma=foreign_keys(1)&_pragma=auto_vacuum(INCREMENTAL)
[homeassistant] ERROR 2026/05/24 15:01:59 zeroconf: failed to browse: listen udp6 [ff02::]:5353: socket: address family not supported by protocol
[eebus ] INFO 2026/05/24 15:02:01 Local SKI: cdc795edb7049d144a6e32dd026a8ea9248465a7
[lp-1 ] DEBUG 2026/05/24 15:02:02 set title: Luxtronik
[lp-1 ] DEBUG 2026/05/24 15:02:02 set priority: 0
[lp-1 ] DEBUG 2026/05/24 15:02:02 set smart cost limit: <nil>
[lp-1 ] DEBUG 2026/05/24 15:02:02 set smart feed-in limit: <nil>
[lp-1 ] DEBUG 2026/05/24 15:02:02 set thresholds: {Enable:{Delay:1m0s Threshold:0} Disable:{Delay:3m0s Threshold:0}}
[lp-1 ] DEBUG 2026/05/24 15:02:02 set plan energy: 0kWh @ 0001-01-01 00:53:28 +0053 LMT
[lp-1 ] DEBUG 2026/05/24 15:02:02 set plan strategy: continuous=false, precondition=0s
[lp-1 ] DEBUG 2026/05/24 15:02:02 set battery boost limit: 100
[lp-1 ] DEBUG 2026/05/24 15:02:02 set session energy limit: 0
[lp-1 ] DEBUG 2026/05/24 15:02:02 set session soc limit: 50
[lp-1 ] DEBUG 2026/05/24 15:02:02 set soc config: {Poll:{Mode:charging Interval:1h0m0s} Estimate:0x75df5e8}
[lp-1 ] DEBUG 2026/05/24 15:02:02 set default mode: off
[lp-1 ] DEBUG 2026/05/24 15:02:02 set phases: 1
[lp-1 ] DEBUG 2026/05/24 15:02:02 set min current: 3
[tariff] DEBUG 2026/05/24 15:02:02 using cache: solcast-9a3b91f37e18ab2ea1b4571f1652f6ded89fa4124af3378e7246e290e9d6b4e8 (start: 2026-05-24 14:00:00 +0200 CEST, end: 2026-05-26 12:00:00 +0200 CEST)
[tariff] DEBUG 2026/05/24 15:02:02 using cache: solcast-6d31b3c0836c31f5281105cb6b35148a3bd70d7a254ce23bf051c637c977178a (start: 2026-05-24 14:00:00 +0200 CEST, end: 2026-05-26 12:00:00 +0200 CEST)
[lp-1 ] DEBUG 2026/05/24 15:02:03 charge total import: 2734.300kWh
Konfiguration (/home/linux/evcc-dev/evcc.yaml):
# open evcc at http://evcc.local:7070
network:
schema: http
host: evcc.debug # .local suffix announces the hostname on MDNS
#port: 7071
log: debug
levels:
cache: error
# unique installation id
# plant: *****
interval: 30s # control cycle interval
site:
title: My Home
# heatingThreshold: 12.0 # Temperature threshold for heating (°C)
# heatingCoefficient: 0.05 # 2% load adjustment per degree
tariffs:
temperature:
type: template
template: open-meteo-temperature
latitude: 48.694781
longitude: 9.112218
Version: `0.306.3 (4573f716b)`
Log details
linux@snackbox:~/evcc-dev$ export OPTIMIZER_URI="https://optimizer.evcc.io" && ./evcc --database ./evcc.db --config evcc.yaml
[main ] INFO 2026/05/24 15:03:45 evcc 0.306.3 (4573f716b)
[main ] INFO 2026/05/24 15:03:45 using config file: evcc.yaml
[main ] INFO 2026/05/24 15:03:45 using sqlite database: ./evcc.db?_pragma=foreign_keys(1)&_pragma=auto_vacuum(INCREMENTAL)
[homeassistant] ERROR 2026/05/24 15:03:45 zeroconf: failed to browse: listen udp6 [ff02::]:5353: socket: address family not supported by protocol
[eebus ] INFO 2026/05/24 15:03:46 Local SKI: cdc795edb7049d144a6e32dd026a8ea9248465a7
[main ] INFO 2026/05/24 15:03:46 OCPP local url: ws://127.0.0.1:8887/<stationId>
[main ] INFO 2026/05/24 15:03:46 UI local url: http://127.0.0.1:7070
[lp-1 ] DEBUG 2026/05/24 15:03:46 set title: Luxtronik
[lp-1 ] DEBUG 2026/05/24 15:03:46 set priority: 0
[lp-1 ] DEBUG 2026/05/24 15:03:46 set smart cost limit: <nil>
[lp-1 ] DEBUG 2026/05/24 15:03:46 set smart feed-in limit: <nil>
[lp-1 ] DEBUG 2026/05/24 15:03:46 set thresholds: {Enable:{Delay:1m0s Threshold:0} Disable:{Delay:3m0s Threshold:0}}
[lp-1 ] DEBUG 2026/05/24 15:03:46 set plan energy: 0kWh @ 0001-01-01 00:53:28 +0053 LMT
[lp-1 ] DEBUG 2026/05/24 15:03:46 set plan strategy: continuous=false, precondition=0s
[lp-1 ] DEBUG 2026/05/24 15:03:46 set battery boost limit: 100
[lp-1 ] DEBUG 2026/05/24 15:03:46 set session energy limit: 0
[lp-1 ] DEBUG 2026/05/24 15:03:46 set session soc limit: 50
[lp-1 ] DEBUG 2026/05/24 15:03:46 set soc config: {Poll:{Mode:charging Interval:1h0m0s} Estimate:0x7189ce8}
[lp-1 ] DEBUG 2026/05/24 15:03:46 set default mode: off
[lp-1 ] DEBUG 2026/05/24 15:03:46 set phases: 1
[lp-1 ] DEBUG 2026/05/24 15:03:46 set min current: 3
[tariff] DEBUG 2026/05/24 15:03:46 using cache: solcast-9a3b91f37e18ab2ea1b4571f1652f6ded89fa4124af3378e7246e290e9d6b4e8 (start: 2026-05-24 14:00:00 +0200 CEST, end: 2026-05-26 12:00:00 +0200 CEST)
[tariff] DEBUG 2026/05/24 15:03:46 using cache: solcast-6d31b3c0836c31f5281105cb6b35148a3bd70d7a254ce23bf051c637c977178a (start: 2026-05-24 14:00:00 +0200 CEST, end: 2026-05-26 12:00:00 +0200 CEST)
[lp-1 ] DEBUG 2026/05/24 15:03:47 charge total import: 2734.300kWh
[site ] INFO 2026/05/24 15:03:47 site config:
[site ] INFO 2026/05/24 15:03:47 meters: grid ✓ pv ✓ battery ✓
[site ] INFO 2026/05/24 15:03:47 grid: power ✓ energy ✓ currents ✓
[site ] INFO 2026/05/24 15:03:47 pv 1: power ✓ energy ✓ currents ✗
[site ] INFO 2026/05/24 15:03:47 battery 1: power ✓ energy ✓ currents ✗ soc ✓ capacity ✓
[site ] INFO 2026/05/24 15:03:47 tariffs:
[site ] INFO 2026/05/24 15:03:47 grid: priceforecast
[site ] INFO 2026/05/24 15:03:47 feed-in: pricestatic
[site ] INFO 2026/05/24 15:03:47 co2: ✗
[site ] INFO 2026/05/24 15:03:47 solar: ✓
[lp-1 ] INFO 2026/05/24 15:03:47 loadpoint 1:
[lp-1 ] INFO 2026/05/24 15:03:47 mode: off
[lp-1 ] INFO 2026/05/24 15:03:47 charger: power ✓ energy ✓ currents ✗ phases ✗ wakeup ✗
[lp-1 ] INFO 2026/05/24 15:03:47 meters: charge ✓
[lp-1 ] INFO 2026/05/24 15:03:47 charge: power ✓ energy ✓ currents ✗
[site ] DEBUG 2026/05/24 15:03:47 set buffer soc: 70
[site ] DEBUG 2026/05/24 15:03:47 set buffer start soc: 0
[site ] DEBUG 2026/05/24 15:03:47 set priority soc: 50
[lp-1 ] DEBUG 2026/05/24 15:03:47 phase timer inactive
[lp-1 ] DEBUG 2026/05/24 15:03:47 pv timer inactive
[site ] DEBUG 2026/05/24 15:03:47 ----
[main ] INFO 2026/05/24 15:03:47 new version available: 0.307.0
[lp-1 ] DEBUG 2026/05/24 15:03:47 charge power: 0W
[site ] DEBUG 2026/05/24 15:03:48 grid power: -6535W
[site ] DEBUG 2026/05/24 15:03:48 battery 1 power: -52W
[site ] DEBUG 2026/05/24 15:03:48 pv 1 power: 6695W
[site ] DEBUG 2026/05/24 15:03:49 grid currents: [-8.99 -9.22 -9.16]A
[site ] DEBUG 2026/05/24 15:03:49 battery 1 soc: 100%
[site ] DEBUG 2026/05/24 15:03:49 site power: -6587W
[site ] DEBUG 2026/05/24 15:03:49 optimizer: optimizing 132 slots until 2026-05-26 00:00:00 +0200 CEST: grid=132, feedIn=612, solar=180, first slot: 11m10s
[site ] ERROR 2026/05/24 15:03:49 optimizer: meter profile incomplete
[lp-1 ] DEBUG 2026/05/24 15:03:49 charge total import: 2734.300kWh
[lp-1 ] DEBUG 2026/05/24 15:03:49 charger status: B
[lp-1 ] DEBUG 2026/05/24 15:03:49 charge start energy: 2734.300kWh
[lp-1 ] INFO 2026/05/24 15:03:49 car connected
[lp-1 ] DEBUG 2026/05/24 15:03:49 pv timer elapse
[lp-1 ] DEBUG 2026/05/24 15:03:49 pv timer inactive
[lp-1 ] DEBUG 2026/05/24 15:03:49 charge total import: 2734.300kWh
[lp-1 ] DEBUG 2026/05/24 15:03:49 charge final energy: 0.000kWh
[lp-1 ] DEBUG 2026/05/24 15:03:49 charge total import: 2734.300kWh
[lp-1 ] DEBUG 2026/05/24 15:03:49 charger soc: 30%
[lp-1 ] DEBUG 2026/05/24 15:03:49 charger soc limit: 15%
[lp-1 ] DEBUG 2026/05/24 15:03:49 !! plan: plan time zero
What type of operating system or environment does evcc run on?
Linux
External automation
- [x] I have made sure that no external automation like HomeAssistant or Node-RED is active or accessing any of the mentioned devices when this issue occurs.
Nightly build
- [x] I have verified that the issue is reproducible with the latest nightly build
Version
Version: 0.306.3 (4573f716b)
Look at output of
evcc tariff --log trace
to see where the broken data comes from.
putting the trace log here
looks like cache is used, as solcast api gives me the rate limit response (HTTP 429). And then I am getting the corrupted data from the cache in the database. Not sure why the cache has those inflated numbers though.
everything under this section is inflated by 2x
solar:
From To Yield (W)
Is there a way to clear the cache to see if something is messed up there?
putting the trace log here everything under this section is inflated by 2x
You mean the forecast values shown in evcc tariff are factor 2 too high? What makes you think so?
You mean the forecast values shown in evcc tariff are factor 2 too high? What makes you think so?
yes @andig. The system above is 2 solar arrays with 5.5 and 6.5 kwp each. So total forecasted watts cannot be higher than 12000W. Also, the system makes max 70kwh per day.
now look at the solcast numbers for each of the arrays. for the data above, you see peaks of around 3400W and 5000W.
yet still evcc shows 143kwh for the next day forecast and forecacst max (peak power) of 6800W and 10000W.
Attached is another trace log from today where you see the issue clearly. Under solar: there are peaks reported for the aggregated PV arrays of 15961W. e.g. this line
2026-05-26 13:00:00 2026-05-26 13:15:00 15961.500
This cant be true and is nothing I see the solcast API returning when I look at the sum of the forecasts of both arrays at 13:00:00. So something inside evcc is doubling the values.
interesting enough, the solar forecast in the optimizer view (green line) is ok and matching sum of the solcast output. so this really looks evcc internal. maybe something to do with my solar setup (2 arrays, one per roof side)?
fwiw, my AI Coding tool suggested the following as root cause and fix.
Bug: solcast.go:107 uses PeriodEnd instead of period start
Problem:
- Solcast returns 30-min periods with PeriodEnd timestamp
- Period 10:30-11:00 has PeriodEnd=11:00
- BeginningOfHour(11:00) = 11:00 (wrong, should be 10:00)
- Second half-hour gets assigned to next hour
- Each hour only gets one 30-min value instead of averaging two
- When combining 2 arrays: 3kW + 3kW = 6kW (should be 3.25kW + 3.25kW = 6.5kW)
Fix line 107:
periodStart := r.PeriodEnd.Add(-r.Period.Duration())
start := now.With(periodStart).BeginningOfHour().Local()
@TomF79 would you have an idea?
hold on. I just upgraded to latest stable and the issue went away. I either messed up my database or something else in my feature branch. sorry for the noise!