Add Emporia EVSE charger support via cloud API#28225
Draft
Conversation
Co-authored-by: premultiply <4681172+premultiply@users.noreply.github.com>
Co-authored-by: premultiply <4681172+premultiply@users.noreply.github.com>
Co-authored-by: premultiply <4681172+premultiply@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for Emporia EVSE charger in EVCC
Add Emporia EVSE charger support via cloud API
Mar 15, 2026
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.
Emporia EVSE is a popular US charger with no local API. This adds cloud integration using the undocumented Emporia REST API (reverse-engineered via PyEmVue).
Authentication
Emporia uses AWS Cognito with
USER_SRP_AUTHflow. Implements the full SRP protocol incharger/emporia/cognito.go, matching the algorithm used by PyEmVue/pycognito:InitiateAuth→PASSWORD_VERIFIERchallenge →RespondToAuthChallengeauthtokenheader on all API callsREFRESH_TOKEN_AUTH, falls back to full re-auth on failureCharger implementation
status == "Charging"→ C, icon prefix"Car"→ B (connected), otherwise APUT /devices/evchargerpreserving current device statedeviceGidif account has exactly one EVSE; requires explicit config otherwiseNew files
charger/emporia/types.goChargerDevice,DevicesStatus,ChargerUpdate)charger/emporia/cognito.gocharger/emporia.goapi.Chargerimplementationtemplates/definition/charger/emporia.yamlNew dependency:
github.com/aws/aws-sdk-go-v2/service/cognitoidentityprovider v1.59.2Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
224.0.0.251REDACTED, pid is -1(packet block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.