Skip to content

Expose request-correlated native charge-state reports - #126

Open
bolagnaise wants to merge 1 commit into
yoziru:mainfrom
bolagnaise:fix/correlated-charge-reports
Open

bolagnaise wants to merge 1 commit into
yoziru:mainfrom
bolagnaise:fix/correlated-charge-reports

Conversation

@bolagnaise

Copy link
Copy Markdown

Recovery consumers need to distinguish a new vehicle charge response from unsolicited state and replayed notifications. Add an optional callback carrying the native charge state and its matching active infotainment request UUID; existing charge-state callbacks keep their behavior.

The ESPHome recovery adapter uses this callback to collect fresh stopped/zero-current/zero-power reports after a producer reboot. This does not assert that a historical charging command never executed.

Validation: all 328 C++ library tests passed, including unsolicited data, wrong UUID and completed-request replay cases. The matching ESPHome component compiled for ESP32 and ESP32-S3 with ESPHome 2026.10.2. No firmware upload or live vehicle command was performed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant