evcc icon indicating copy to clipboard operation
evcc copied to clipboard

UI warning plan outside of forecast

Open SolarPower2024 opened this issue 1 year ago • 6 comments

Description

I'm getting warning messages that my plan is outside of forecast range - which is clear because my plan is set for Monday 10.11 and today is 05.11, so 5 days ahead. Doesn't matter which forecast (energy forecast, co2 or price), as forecast is usually provided only for next 2-3 days max. No forecast provider is providing data so far in the future.

So, it's a given that it's outside. Can this warnings be excluded in the logs?

Steps to Reproduce

  1. Set forecasts for co2, energy production, pricing
  2. Define a plan (in my case it's a recurring plan from Mon to Wed) in the future outside of the forecast
  3. Warning messages will appear.

Logs

[site  ] WARN 2025/11/05 19:24:08 interval <30s can lead to unexpected behavior, see https://docs.evcc.io/docs/reference/configuration/interval
[site  ] WARN 2025/11/05 19:24:08 plan beyond forecast range: 50340.0 at 2025-11-10 07:00:00 +0100 CET
[site  ] WARN 2025/11/05 19:26:13 plan beyond forecast range: 50340.0 at 2025-11-10 07:00:00 +0100 CET
[site  ] WARN 2025/11/05 19:28:17 plan beyond forecast range: 50340.0 at 2025-11-10 07:00:00 +0100 CET
[site  ] WARN 2025/11/05 19:30:25 plan beyond forecast range: 50340.0 at 2025-11-10 07:00:00 +0100 CET
[site  ] WARN 2025/11/05 19:32:29 plan beyond forecast range: 50340.0 at 2025-11-10 07:00:00 +0100 CET
[site  ] WARN 2025/11/05 19:34:59 plan beyond forecast range: 50340.0 at 2025-11-10 07:00:00 +0100 CET
[site  ] WARN 2025/11/05 19:37:02 plan beyond forecast range: 50340.0 at 2025-11-10 07:00:00 +0100 CET
[site  ] WARN 2025/11/05 19:39:05 plan beyond forecast range: 50340.0 at 2025-11-10 07:00:00 +0100 CET
[site  ] WARN 2025/11/05 19:41:26 plan beyond forecast range: 50340.0 at 2025-11-10 07:00:00 +0100 CET
[site  ] WARN 2025/11/05 19:43:39 plan beyond forecast range: 50340.0 at 2025-11-10 07:00:00 +0100 CET
[site  ] WARN 2025/11/05 19:45:55 plan beyond forecast range: 50340.0 at 2025-11-10 07:00:00 +0100 CET

Version

v0.209.7

SolarPower2024 avatar Nov 05 '25 18:11 SolarPower2024

So how do you suggest a user to be notified his plan never gets executed due to missing rates?

andig avatar Nov 05 '25 21:11 andig

Hmm..I thought a plan always gets executed, isn't that the case? If I'm setting a target SoC to a specific time it's always executed, right - independent of the rates?

If it's something you always want to warn about, it's also fine - then I will automize it via HA to activate and deactivate the plans accordingly.

Only my "inner Monk" is getting crazy if there is a constant warning, with yellow sign in the corner ;-)

SolarPower2024 avatar Nov 05 '25 22:11 SolarPower2024

Yes, this is not a real warning the user as to act upon. I'd suggest not logging this at all or not aas WARN, since this normal expected behavior for charge targets far into the future. Worst case, tariff never becomes available and we'll default to late charging but still hit the goal.

The case that tariffs become completely unavailable and user has to check/update his config is a different topic: device health indicator.

naltatis avatar Nov 06 '25 08:11 naltatis

Hmm..I thought a plan always gets executed, isn't that the case?

Also true, letz make the warning a debug log. Do you want to open a PR?

andig avatar Nov 06 '25 08:11 andig

Unfortunately I cannot code, I'm only a end user (with maybe some extended) knowledge. But never actually have written any line of code myself. So you probably would not be happy if I'm making a PR ^^

SolarPower2024 avatar Nov 06 '25 11:11 SolarPower2024

Just change warn to debug…

andig avatar Nov 06 '25 11:11 andig