EOS_connect icon indicating copy to clipboard operation
EOS_connect copied to clipboard

PV forecast error handling

Open a8291 opened this issue 1 year ago • 4 comments

📝 Issue Description

What happened? The Akku Doktor API was down. Therefore no PV forecast information. This led to a misguided battery charge because EOS was of the opinion there will be no PV production today.

Expected Behavior Maybe cache the the last valid Informationen and use this if the api is down.

[ERROR] 2025-11-01T05:32:33.988113+01:00 [PV-IF] Akkudoktor API error for power: HTTPSConnectionPool(host='api.akkudoktor.net', port=443): Read timed out. (read timeout=5)

🔄 Steps to Reproduce

  1. [First step
  2. Second step
  3. Third step
  4. Issue occurs

a8291 avatar Nov 01 '25 05:11 a8291

which version?

please check develop is already fixed

ohAnd avatar Nov 01 '25 10:11 ohAnd

I am on 0.2.25.172-develop

a8291 avatar Nov 01 '25 10:11 a8291

provide more logs around ... pv data are already cached - every 15 min will be an update - if in that point in time ther are 3 consecutive fails (TO, etc.) then the last known pv data will be used ... - if the first try after startup directly fails (3 times) then the deafult will be used...

ohAnd avatar Nov 01 '25 10:11 ohAnd

Sadly they are overwritten. I will provide them as soon the error appears again.

a8291 avatar Nov 01 '25 10:11 a8291