feat(vehicle): add support for LeapMotor API#29666
Draft
syphernl wants to merge 3 commits intoevcc-io:masterfrom
Draft
feat(vehicle): add support for LeapMotor API#29666syphernl wants to merge 3 commits intoevcc-io:masterfrom
syphernl wants to merge 3 commits intoevcc-io:masterfrom
Conversation
- Remove EnsureAuth (dead code, had TOCTOU race) - Make addAuthHeaders void (return value was always ignored) - Drop Python-style inline comments in deriveP12Password - Collapse SM4 section divider to single comment line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for the LeapMotor API (used by the official mobile app).
There is currently no public API, but the community has reverse-engineered the API used by the app:
This integration enables EVCC to retrieve key vehicle data such as SoC and cable connection status.
Certificate requirements
The API requires app-level mTLS client certificate material (
app_cert.pemandapp_key.pem).These files are not provided and are not automatically retrieved.
There is currently no official or user-friendly way to obtain these certificates.
Security / scope notes
Caveats
Status
This PR is currently untested with a real vehicle, as I have not yet received mine. Leaving this as a draft until it can be validated in practice. Hopefully someone in the community is able to do so.
Todo
Docs
Docs are being worked on in evcc-io/docs#1049
Help wanted
If you own a Leapmotor and can test this integration, feedback would be very helpful.
References