Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch charging session when vehicle identifier changes #14995

Open
andig opened this issue Jul 23, 2024 · 3 comments
Open

Switch charging session when vehicle identifier changes #14995

andig opened this issue Jul 23, 2024 · 3 comments
Labels
backlog Things to do later

Comments

@andig
Copy link
Member

andig commented Jul 23, 2024

See #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

@andig andig added the backlog Things to do later label Jul 23, 2024
@premultiply
Copy link
Member

premultiply commented Jul 23, 2024

Possible common indicators for intermediate disconnect could be:

  • Status changed (A is the ultimate hard indicator)
  • ChargedEnergy jumps back (weak indicator)
  • ChargingTime jumps back (weak indicator)
  • Identifier changed (be carefull, may change even if session is still running by just swiping any other card. Depends on charger firmware! May be a strong indicator if implemented correctly.)
  • TransactionId changed (OCPP only. Is a strong indicator but attention: Id may be reused by charger!)
  • ...?

tbc

@kjs-DE
Copy link

kjs-DE commented Jul 23, 2024

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
Copy link
Member Author

andig commented Jul 23, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Things to do later
Projects
None yet
Development

No branches or pull requests

3 participants