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

Incorrect charging status #9

Open
joeshaw opened this issue Oct 31, 2017 · 0 comments
Open

Incorrect charging status #9

joeshaw opened this issue Oct 31, 2017 · 0 comments

Comments

@joeshaw
Copy link

joeshaw commented Oct 31, 2017

The getCharging function determines if the car by calling indexOf("CHARGING") but this matches "NOT_CHARGING" as well, resulting in a false positive.

🍃 api BatteryStatusRecordsRequest 👍
{ status: 200,
  VoltLabel: { HighVolt: '240', LowVolt: '120' },
  BatteryStatusRecords:
   { OperationResult: 'START',
     OperationDateAndTime: '2017/10/30 23:55',
     BatteryStatus:
      { BatteryChargingStatus: 'NOT_CHARGING',
        BatteryCapacity: '240',
        BatteryRemainingAmount: '140',
        BatteryRemainingAmountWH: '14320',
        BatteryRemainingAmountkWH: '',
        SOC: [Object] },
     PluginState: 'CONNECTED',
     CruisingRangeAcOn: '97000',
     CruisingRangeAcOff: '103000',
     NotificationDateAndTime: '2017/10/30 23:56',
     TargetDate: '2017/10/30 23:55' } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant