evcc-io / evcc

Sonne tanken ☀️🚘
https://evcc.io
MIT License
3.58k stars 660 forks source link

Switch charging session when vehicle identifier changes #14995

Open andig opened 3 months ago

andig commented 3 months ago

See https://github.com/evcc-io/evcc/discussions/14992.

Currently this is only being done when we see an actual status change to disconnected. Instead, we could check if the vehicle identifier changes. Need to investigate which id changes should trigger new session.

/cc @premultiply

premultiply commented 3 months ago

Possible common indicators for intermediate disconnect could be:

tbc

kjs-DE commented 3 months ago

When charging cable is connected could evcc not check once in a while which vehicle actually shows connected? When changing happened to fast I checked in configuration and the disconnected vehicle showed disconnected (as it should) and the other one showed connected in the status (configuration page). Yet, evcc still thought that the first car is still hooked up.

andig commented 3 months ago

could evcc not check once in a while which vehicle actually shows connected

It does.

When changing happened to fast I checked in configuration and the disconnected vehicle showed disconnected (as it should) and the other one showed connected in the status (configuration page).

This issue ist not about vehicle identification by vehicle API, but about vehicle identification by charger. Doing via API is not possible as API calls are scarce and can only be triggered if we identify vehicle disconnect by charger.