mitch-dc / volkswagen_we_connect_id

Apache License 2.0
195 stars 51 forks source link

If there is an error on fetching, don't assume last data. #22

Closed CrazyHenk44 closed 2 years ago

CrazyHenk44 commented 2 years ago

Hi,

When there is a communication failure due to an api change, can you make it more visible? I now got data that assumes the last data, which made me believe I had more SOC than I actually had, because I relied on the percentage given.

Home Assistant Home Assistant 13 53 28

I assumed yesterday that I had 60+% SOC, but that was no fun when I started driving and realized I needed to charge. The SOC was not updated since 18th march it seems, just because I did not update to the latest version.

Best!

mitch-dc commented 2 years ago

If there is an issue with fetching data the integration will not return the old value. The Volkswagen API however does this, if the connection one way or the other is lost the VW api will still return the last known state.

Had this behavior myself a couple of weeks ago. It's not something i can fix :(