Honor Bluelink EU evModeRange units when API returns miles#29729
Closed
Honor Bluelink EU evModeRange units when API returns miles#29729
evModeRange units when API returns miles#29729Conversation
2 tasks
Agent-Logs-Url: https://github.com/evcc-io/evcc/sessions/d73389ee-70bc-45c7-9200-1bde2f3c5ba4 Co-authored-by: andig <184815+andig@users.noreply.github.com>
Agent-Logs-Url: https://github.com/evcc-io/evcc/sessions/d73389ee-70bc-45c7-9200-1bde2f3c5ba4 Co-authored-by: andig <184815+andig@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix Bluelink API range unit parsing issue
Honor Bluelink EU May 7, 2026
evModeRange units when API returns miles
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.
Bluelink EU status responses can report EV range in miles (
unit: 3), but range was previously treated as kilometers. This caused underreported range in evcc while odometer parsing remained correct.Range unit handling (EU Bluelink)
vehicle/bluelinkrange model to parseevModeRange.unit.VehicleStatus.Range()to convert miles to kilometers before returning the backend canonical distance value.Conversion semantics
unitMiles = 3) and conversion factor (kmPerMile = 1.60934).math.Roundfor stable integer conversion when normalizing miles to km.Coverage for regression-prone paths
evModeRangeWarning
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: