Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is battery percentRemaining field mis-named? #158

Open
anentropic opened this issue Jan 25, 2023 · 0 comments
Open

Is battery percentRemaining field mis-named? #158

anentropic opened this issue Jan 25, 2023 · 0 comments

Comments

@anentropic
Copy link

anentropic commented Jan 25, 2023

When I make a Vehicle.battery() call I get a result like:

{
  range: 156,
  percentRemaining: 0.75,
  meta: {
   dataAge: new Date('2023-01-25T17:04:35.844Z'),
   unitSystem: 'metric',
   requestId: '26c14915-0c26-43c5-8e42-9edfc2a66a0f',
  }
}

If I only had 0.75% of battery remaining then it's almost completely empty and I wouldn't expect to have 156km range.

Am I correct in assuming that this value is a proportion rather than a percentage?

i.e. I should interpret this response as meaning 75% remaining?

(similarly the example in the docs shows 0.3 "percentRemaining" and still a range of 40.5 miles)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant