PV forecast source "timeseries" is accepted by config but never fetched
Hi, just found another error.
Report prepared by claude:
Summary
pv_forecast_source.source: timeseries is accepted by config validation and configurable in the UI (data_url, data_path, data_token), but PvInterface.__get_pv_forecast() has no case for it. It falls through to the else branch and silently returns the synthetic default triangle forecast instead of fetching data_url.
Where
src/interfaces/pv_interface.py, __get_pv_forecast() (~line 888): handles akkudoktor, openmeteo, openmeteo_local, forecast_solar, evcc, solcast, victron, default — no timeseries case, so it hits:
else:
logger.error("[PV-IF] No valid source configured for PV forecast")
return self.__get_default_pv_forcast(config_entry["power"])
Confirmed on both main and develop (identical for this file).
Impact
With source: timeseries configured, the Optimization chart silently shows the hardcoded default curve (0 % outside 06:00–19:00, linear ramp to 70 % at noon) instead of the real forecast — no error surfaced anywhere that would suggest the data source isn't being used.
Suggested fix
Add a timeseries case in __get_pv_forecast(), reusing the parsing pipeline PriceInterface already has for its own timeseries source (__parse_price_timeseries / __detect_price_timeseries_resolution / __convert_15min_to_hourly_price_timeseries in src/interfaces/price_interface.py).
@muxodo thanks again ;-)
took the PR as base, but needed some further robustness ... please check the last develeop
Timeseries is working now. Thanks!