Prevent Solar Forecast Interval Misconfiguration
Description
I changed the interval from 12h to 6h after evcc restart the logfile is running crazy with error messages about too many requests (at least 30 messages within 1 msec) I have a pvnode premium subscribtion with 1000 requests per month
Steps to Reproduce
go to advanced configuration in solar forecast and set from 12h to 6h restart evcc
⚠️ RETURN TO EVCC TAB → COPY STEP 2 → PASTE HERE
Configuration (YAML)
no yaml configuration
Configuration (UI)
{
"charger": [
{"id":27,"name":"db:27","type":"template","config":{"channel":"0","heating":false,"host":"192.168.2.15","icon":"rocket","integrateddevice":true,"password":"***","standbypower":-600,"template":"shelly","user":"***"},"deviceProduct":"Shelly Plug S"},
{"id":5,"name":"db:5","type":"template","config":{"connector":"1","connecttimeout":"5m","meterinterval":"10s","stationid":"***","template":"ocpp-goe"},"deviceProduct":"Fronius Wattpilot (OCPP)"}
],
"experimental": true,
"influx": {"url":"","database":"","token":"","org":"","user":"","password":"","insecure":false},
"interval": 30,
"loadpoints": [
{"id":6,"name":"db:6","batteryBoostLimit":100,"charger":"db:5","defaultMode":"","limitEnergy":0,"limitSoc":0,"maxCurrent":16,"minCurrent":6,"phasesConfigured":0,"planEnergy":0,"planPrecondition":0,"planStrategy":{"continuous":false,"precondition":0},"planTime":"0001-01-01T00:00:00Z","priority":10,"smartCostLimit":-0.4,"smartFeedInPriorityLimit":null,"soc":{"poll":{"mode":"charging","interval":3600000000000},"estimate":true},"thresholds":{"enable":{"delay":60000000000,"threshold":0},"disable":{"delay":180000000000,"threshold":0}},"title":"Carport","vehicle":"db:14"},
{"id":28,"name":"db:28","batteryBoostLimit":100,"charger":"db:27","defaultMode":"pv","limitEnergy":0,"limitSoc":0,"maxCurrent":2.6,"meter":"db:40","minCurrent":2.6,"phasesConfigured":1,"planEnergy":0,"planPrecondition":0,"planStrategy":{"continuous":false,"precondition":0},"planTime":"0001-01-01T00:00:00Z","priority":0,"smartCostLimit":null,"smartFeedInPriorityLimit":null,"soc":{"poll":{"mode":"charging","interval":3600000000000},"estimate":true},"thresholds":{"enable":{"delay":60000000000,"threshold":0},"disable":{"delay":180000000000,"threshold":0}},"title":"Mining PC"}
],
"meter": [
{"id":10,"name":"db:10","type":"template","config":{"batteryconfiguri":"/config","host":"192.168.2.66","template":"fronius-solarapi-v1","usage":"pv","user":"***"},"deviceProduct":"Fronius Solar API V1","deviceTitle":"Dach"},
{"id":36,"name":"db:36","type":"template","config":{"maxacpower":"0","power":"sensor.warmepumpe_leistung_invertiert","template":"homeassistant","uri":"***","usage":"charge"},"deviceIcon":"heater","deviceProduct":"Home Assistant","deviceTitle":"Wärmepumpe"},
{"id":13,"name":"db:13","type":"template","config":{"host":"froniusgen24.local","key":"0","template":"fronius-ohmpilot","usage":"aux"},"deviceIcon":"smartconsumer","deviceProduct":"Fronius Ohmpilot","deviceTitle":"Ohmpilot"},
{"id":9,"name":"db:9","type":"template","config":{"host":"froniusgen24.local","id":"200","maxacpower":"0","maxchargerate":"100","port":"502","template":"fronius-gen24","usage":"pv"},"deviceProduct":"Fronius Symo GEN24 Plus","deviceTitle":"Fassade"},
{"id":8,"name":"db:8","type":"template","config":{"host":"froniusgen24.local","id":"200","maxacpower":"0","maxchargerate":"100","port":"502","template":"fronius-gen24","usage":"grid"},"deviceProduct":"Fronius Symo GEN24 Plus"},
{"id":11,"name":"db:11","type":"template","config":{"capacity":19.3,"host":"froniusgen24.local","id":"200","maxacpower":"0","maxchargerate":"100","minsoc":10,"port":"502","template":"fronius-gen24","usage":"battery"},"deviceProduct":"Fronius Symo GEN24 Plus","deviceTitle":"BYD HVM"},
{"id":40,"name":"db:40","type":"template","config":{"host":"192.168.2.15","password":"***","template":"shelly-1pm","usage":"charge","user":"***"},"deviceProduct":"Shelly Plug S"}
],
"mqtt": {"broker":"","user":"","password":"","clientID":"","insecure":false,"caCert":"","clientCert":"","clientKey":"","topic":"evcc"},
"residualPower": 100,
"shm": {"vendorId":"","deviceId":"","deviceSerial":""},
"site": {"title":"Name","grid":"db:8","pv":["db:9","db:10"],"battery":["db:11"],"aux":["db:13"],"ext":["db:36"]},
"tariff": [
{"id":33,"name":"db:33","type":"template","config":{"apikey":"***","az":128,"dec":10,"forecast_days":6,"interval":"12h","kwp":2.7,"lat":"***","lon":"***","template":"pvnode"},"deviceProduct":"pvnode","deviceTitle":"Dach Ost"},
{"id":30,"name":"db:30","type":"template","config":{"apikey":"***","az":240,"dec":10,"forecast_days":6,"interval":"12h","kwp":2.7,"lat":"***","lon":"***","template":"pvnode"},"deviceProduct":"pvnode","deviceTitle":"Dach Südwest"},
{"id":31,"name":"db:31","type":"template","config":{"apikey":"***","az":218,"dec":90,"forecast_days":6,"interval":"12h","kwp":3,"lat":"***","lon":"***","template":"pvnode"},"deviceProduct":"pvnode","deviceTitle":"Fassade Süd"},
{"id":32,"name":"db:32","type":"template","config":{"apikey":"***","az":128,"dec":90,"forecast_days":6,"interval":"12h","kwp":3.5,"lat":"***","lon":"***","template":"pvnode"},"deviceProduct":"pvnode","deviceTitle":"Fassade Ost"},
{"id":16,"name":"db:16","type":"template","config":{"template":"electricitymaps-free","token":"***","zone":"AT"},"deviceProduct":"Electricity Maps Free API"},
{"id":15,"name":"db:15","type":"template","config":{"average":false,"charges":0.0144,"region":"AT","template":"epex-predictor","uri":"***"},"deviceProduct":"EPEX Predictor Predicted EPEX spot prices"}
],
"tariffRefs": {"grid":"db:15","feedIn":"","co2":"db:16","planner":"","solar":["db:30","db:31","db:32","db:33"]},
"vehicle": [
{"id":14,"name":"db:14","type":"template","config":{"accessToken":"***","cache":"15m","capacity":75,"clientId":"1","commandProxy":"https://api.myteslamate.com","icon":"car","refreshToken":"***","template":"tesla","title":"Tesla","vin":"***"},"deviceProduct":"Tesla"}
]
}
Logs
[tariff] ERROR 2026/05/06 07:57:36 unexpected status: 429 (Too Many Requests) GET https://api.pvnode.com/v1/forecast/?latitude=47.0257&longitude=15.5325&slope=10&orientation=240&pv_power_kw=2.7&required_data=pv_watts&forecast_days=6&past_days=0
[tariff] ERROR 2026/05/06 07:57:36 unexpected status: 429 (Too Many Requests) GET https://api.pvnode.com/v1/forecast/?latitude=47.0257&longitude=15.5325&slope=10&orientation=240&pv_power_kw=2.7&required_data=pv_watts&forecast_days=6&past_days=0
[tariff] ERROR 2026/05/06 07:57:36 unexpected status: 429 (Too Many Requests) GET https://api.pvnode.com/v1/forecast/?latitude=47.0257&longitude=15.5325&slope=10&orientation=240&pv_power_kw=2.7&required_data=pv_watts&forecast_days=6&past_days=0
[tariff] ERROR 2026/05/06 07:57:36 unexpected status: 429 (Too Many Requests) GET https://api.pvnode.com/v1/forecast/?latitude=47.0257&longitude=15.5325&slope=10&orientation=240&pv_power_kw=2.7&required_data=pv_watts&forecast_days=6&past_days=0
[tariff] ERROR 2026/05/06 07:57:36 unexpected status: 429 (Too Many Requests) GET https://api.pvnode.com/v1/forecast/?latitude=47.0257&longitude=15.5325&slope=10&orientation=240&pv_power_kw=2.7&required_data=pv_watts&forecast_days=6&past_days=0
[tariff] ERROR 2026/05/06 07:57:36 unexpected status: 429 (Too Many Requests) GET https://api.pvnode.com/v1/forecast/?latitude=47.0257&longitude=15.5325&slope=10&orientation=240&pv_power_kw=2.7&required_data=pv_watts&forecast_days=6&past_days=0
[tariff] ERROR 2026/05/06 07:57:36 unexpected status: 429 (Too Many Requests) GET https://api.pvnode.com/v1/forecast/?latitude=47.0257&longitude=15.5325&slope=10&orientation=240&pv_power_kw=2.7&required_data=pv_watts&forecast_days=6&past_days=0
[tariff] ERROR 2026/05/06 07:57:36 unexpected status: 429 (Too Many Requests) GET https://api.pvnode.com/v1/forecast/?latitude=47.0257&longitude=15.5325&slope=10&orientation=240&pv_power_kw=2.7&required_data=pv_watts&forecast_days=6&past_days=0
[tariff] ERROR 2026/05/06 07:57:36 unexpected status: 429 (Too Many Requests) GET https://api.pvnode.com/v1/forecast/?latitude=47.0257&longitude=15.5325&slope=10&orientation=240&pv_power_kw=2.7&required_data=pv_watts&forecast_days=6&past_days=0
[tariff] ERROR 2026/05/06 07:57:36 unexpected status: 429 (Too Many Requests) GET https://api.pvnode.com/v1/forecast/?latitude=47.0257&longitude=15.5325&slope=10&orientation=240&pv_power_kw=2.7&required_data=pv_watts&forecast_days=6&past_days=0
[tariff] ERROR 2026/05/06 07:57:36 unexpected status: 429 (Too Many Requests) GET https://api.pvnode.com/v1/forecast/?latitude=47.0257&longitude=15.5325&slope=10&orientation=240&pv_power_kw=2.7&required_data=pv_watts&forecast_days=6&past_days=0
[tariff] ERROR 2026/05/06 07:57:36 unexpected status: 429 (Too Many Requests) GET https://api.pvnode.com/v1/forecast/?latitude=47.0257&longitude=15.5325&slope=10&orientation=240&pv_power_kw=2.7&required_data=pv_watts&forecast_days=6&past_days=0
[tariff] ERROR 2026/05/06 07:57:36 unexpected status: 429 (Too Many Requests) GET https://api.pvnode.com/v1/forecast/?latitude=47.0257&longitude=15.5325&slope=10&orientation=240&pv_power_kw=2.7&required_data=pv_watts&forecast_days=6&past_days=0
[tariff] ERROR 2026/05/06 07:57:36 unexpected status: 429 (Too Many Requests) GET https://api.pvnode.com/v1/forecast/?latitude=47.0257&longitude=15.5325&slope=10&orientation=240&pv_power_kw=2.7&required_data=pv_watts&forecast_days=6&past_days=0
[tariff] ERROR 2026/05/06 07:57:36 unexpected status: 429 (Too Many Requests) GET https://api.pvnode.com/v1/forecast/?latitude=47.0257&longitude=15.5325&slope=10&orientation=240&pv_power_kw=2.7&required_data=pv_watts&forecast_days=6&past_days=0
[tariff] ERROR 2026/05/06 07:57:37 unexpected status: 429 (Too Many Requests) GET https://api.pvnode.com/v1/forecast/?latitude=47.0257&longitude=15.5325&slope=10&orientation=240&pv_power_kw=2.7&required_data=pv_watts&forecast_days=6&past_days=0
[tariff] ERROR 2026/05/06 07:57:37 unexpected status: 429 (Too Many Requests) GET https://api.pvnode.com/v1/forecast/?latitude=47.0257&longitude=15.5325&slope=10&orientation=240&pv_power_kw=2.7&required_data=pv_watts&forecast_days=6&past_days=0
[tariff] ERROR 2026/05/06 07:57:37 unexpected status: 429 (Too Many Requests) GET https://api.pvnode.com/v1/forecast/?latitude=47.0257&longitude=15.5325&slope=10&orientation=240&pv_power_kw=2.7&required_data=pv_watts&forecast_days=6&past_days=0
[tariff] ERROR 2026/05/06 07:57:37 unexpected status: 429 (Too Many Requests) GET https://api.pvnode.com/v1/forecast/?latitude=47.0257&longitude=15.5325&slope=10&orientation=240&pv_power_kw=2.7&required_data=pv_watts&forecast_days=6&past_days=0
[tariff] ERROR 2026/05/06 07:57:37 unexpected status: 429 (Too Many Requests) GET https://api.pvnode.com/v1/forecast/?latitude=47.0257&longitude=15.5325&slope=10&orientation=240&pv_power_kw=2.7&required_data=pv_watts&forecast_days=6&past_days=0
[tariff] ERROR 2026/05/06 07:57:37 unexpected status: 429 (Too Many Requests) GET https://api.pvnode.com/v1/forecast/?latitude=47.0257&longitude=15.5325&slope=10&orientation=240&pv_power_kw=2.7&required_data=pv_watts&forecast_days=6&past_days=0
[tariff] ERROR 2026/05/06 07:57:37 unexpected status: 429 (Too Many Requests) GET https://api.pvnode.com/v1/forecast/?latitude=47.0257&longitude=15.5325&slope=10&orientation=240&pv_power_kw=2.7&required_data=pv_watts&forecast_days=6&past_days=0
[tariff] ERROR 2026/05/06 07:57:37 unexpected status: 429 (Too Many Requests) GET https://api.pvnode.com/v1/forecast/?latitude=47.0257&longitude=15.5325&slope=10&orientation=240&pv_power_kw=2.7&required_data=pv_watts&forecast_days=6&past_days=0
[tariff] ERROR 2026/05/06 07:57:37 unexpected status: 429 (Too Many Requests) GET https://api.pvnode.com/v1/forecast/?latitude=47.0257&longitude=15.5325&slope=10&orientation=240&pv_power_kw=2.7&required_data=pv_watts&forecast_days=6&past_days=0
[tariff] ERROR 2026/05/06 07:57:37 unexpected status: 429 (Too Many Requests) GET https://api.pvnode.com/v1/forecast/?latitude=47.0257&longitude=15.5325&slope=10&orientation=240&pv_power_kw=2.7&required_data=pv_watts&forecast_days=6&past_days=0
Version
v0.306.2
System
linux/amd64, CEST +02:00
Just got a feedback from pvnode, they really received 125k requests in this short time
The config you shared shows "interval":"12h" for your pvnode tariffs. Are you sure you've added the h after the 6?
i changed it back to 12h after i saw the logs not sure if i added the h in the first change
Please try again to verify if we have a behavior issue here of if it's "just" a communication/validation issue in UI.
changed to "6h" now and seems to be ok i am afraid to try without the "h" because i need to ask the pvnode guys to reset my account again if i flood them with requests once more
@Dalton0190 - please feel free to try it. I am following this issue
Ok i have changed the interval to "6" in one of my four forecast fields and restarted evcc No excessive messages in the log but the forecast field was empty
After that i changed all four forecast fields to "6" and now its flooding with request again
Thanks @Dalton0190 for the test, I have reset your requests counter again, you're good to go.
Quick note on what we saw on our side: the request flood already started when you changed the first field to 6. Adding more just multiplied the rate.
Also took a quick look at templates/definition/tariff/pvnode.yaml — the interval param doesn't have a type defined. Maybe adding some kind of duration type validation could help catch invalid values like 6?
- name: interval
default: 24h
advanced: true
type: duration
Ok, thanks for the testing. We should either
- validate/enforce that
intervaluses a go duration string with unit and not a number (ns) -> simple fix - migrate interval to a
type: durationproperty and introduce a way to specify unit in template params. currently durations are shown as second input field. this is fine for timeouts but not for hours -> proper solution, requires concept & migration
Ok so i think my work is done, thank you for your support @darwindaume and @naltatis
currently durations are shown as second input field. this is fine for timeouts but not for hours -> proper solution, requires concept & migration
@naltatis yikes. Do this as part of the bug fix or separately?
Sorry, I was to quick.
@naltatis with type: duration this is now broken for other units than seconds:
I'll revert the type change.
Yes, type: duration would be the proper type. But we need additional info about the expected unit. For our use-cases it's save do define this as part of the template (hours, minutes, seconds).
The UI already supports specifying duration units. Loadpoint thresholds are shown in minutes (custom form). Values are calculated to/from ms for API read/write. It might be (haven't tested), that type: duration + unit: minute (valid Intl unit) would already work out of the box without UI changes. This is a solution for new values. But we'd have to add migration for existing configuration and update existing defaults.
Tariffs use h by default.
@naltatis hours still doesn't work. Solcast has a 3h default and it shows blank in the UI: