Skip to content

Is battery percentRemaining field mis-named? #158

@anentropic

Description

@anentropic

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions