PV forecast error handling
📝 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
- [First step
- Second step
- Third step
- Issue occurs
which version?
please check develop is already fixed
I am on 0.2.25.172-develop
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...
Sadly they are overwritten. I will provide them as soon the error appears again.