Skip to content

VAG Connect v2.22.0

Choose a tag to compare

@github-actions github-actions released this 22 Jul 17:11
3024d49

VAG Connect v2.22.0

Home Assistant integration for Audi · VW · Škoda · SEAT · CUPRA · Porsche · VW US/CA.

What's new in this release / Was ist neu in diesem Release

Added

  • evcc integration (read path, works on every brand). You can now feed your car's state of charge, range and charging status straight into evcc — it reads them from Home Assistant's own REST API, so nothing extra runs inside this integration. A new diagnostic sensor evcc charge status (the A/B/C plug/charge state evcc expects, which it can't derive from our raw status text) is added per EV, disabled by default — enable it and follow the copy-paste recipe in docs/EVCC.md. The read path (SoC / range / status / charge-limit / climate) works everywhere, including read-only VW EU; the write path (start/stop charging) works only on a two-way car (Audi / Škoda via MBB).

Fixed

  • Two-way MBB commands (lock, climate, charging) no longer refuse themselves on cars that don't report an S-PIN attempt count. When you send a command, the car first hands back a security challenge — and many cars report the remaining-tries count as -1 at that stage, which just means "not tracked yet" (the real count only shows up if you actually get the PIN wrong). The command path was reading that -1 as "you have -1 tries left" and blocking every lock/climate/charge command to dodge a lockout that couldn't happen. It now only holds back when there really are 0 or 1 attempts left.
  • The "please reauthenticate" prompt no longer fires on legacy Car-Net cars whose command gateway rejects them (#584). On some MQB / Car-Net cars the command service-directory call comes back with an authorization rejection that a fresh login can't fix — it's an enrolment / primary-user thing on that car's account, not a token problem (confirmed by re-approving a brand-new token that still gets rejected one second later). The integration used to refresh the token and retry on every poll, which slowly tripped the "token refresh storm — please reauthenticate" guard and sent you off to re-log-in for nothing. It now recognises that rejection for what it is, logs a clear one-line explanation, and stops hammering the login endpoint.
  • No more 'NoneType' object has no attribute 'get_status' right after a Reconfigure (#584). Reconfiguring an entry could race a manual refresh that was already in flight, briefly leaving it without a client handle mid-fetch.

Thanks

Thanks to @Mattheisen87 for the meticulous #584 diagnostics that pinned down both guard fixes — the authorization-401 refresh storm and the reconfigure crash — and to @nekas123 for raising the evcc use-case that motivated the read-path connector. Both credited in CONTRIBUTORS.md. 🙏

Full diff vs v2.21.1 / Kompletter Diff zu v2.21.1

Every commit, file and code change between the two versions:
Jeder Commit, jede Datei und jede Code-Änderung zwischen beiden Versionen:

v2.21.1...v2.22.0

Recent releases / Letzte Releases

If you're upgrading from an older version, also read these notes:

Wenn du von einer älteren Version updatest, lies auch diese Release-Notes:

Full history: CHANGELOG.md

Installation / Update

HACS users: the update notification appears automatically within ~6 hours of the release.

HACS-User: Der Update-Hinweis erscheint automatisch innerhalb von ~6 Stunden nach dem Release.

Manual install / Manuelle Installation:

  1. Download vag_connect.zip from this release / vag_connect.zip aus diesem Release herunterladen
  2. Unzip and copy custom_components/vag_connect/ to your HA config/custom_components/ folder, replacing any older copy / Entpacken und den Ordner custom_components/vag_connect/ in dein HA config/custom_components/ kopieren — alten Ordner ersetzen
  3. Restart Home Assistant / Home Assistant neu starten

Supported brands / Unterstützte Marken

Volkswagen EU · Audi · Škoda · SEAT · CUPRA · Volkswagen US/CA (Beta) · Porsche (Beta)

Found a bug? / Bug gefunden?

Open an issue with the bug-report template: https://github.com/its-me-prash/vwgroup-connect-ha/issues/new/choose

Bug-Report-Template: https://github.com/its-me-prash/vwgroup-connect-ha/issues/new/choose

Please mask your VIN to the last 6 characters and remove email/tokens/GPS before posting.

Bitte VIN auf die letzten 6 Zeichen kürzen und Email/Tokens/GPS vor dem Posten entfernen.