pyze icon indicating copy to clipboard operation
pyze copied to clipboard

New "battery inhibitor status" endpoint

Open jamesremuscat opened this issue 5 years ago • 12 comments

(GET): /commerce/v1/accounts/{id}/kamereon/kca/car-adapter/v1/cars/{vin}/battery-inhibition-status

Does anyone get anything other than an HTTP 403 for this URL?

I'm presuming it describes the setting that RCI use to prevent charging if a battery lease isn't fully paid up. Would be interested to see if battery-owned and battery-leased cars get different behaviour on this URL.

Should have a response roughly of the form:

{
  "vin": "xxxxxxx",
  "lastUpdateTime": 1234567890,
  "batteryInhibitorStatus": 0
}

Values of batteryInhibitorStatus should be:

  • 0 - CHARGE_BLOCKED
  • 1 - NEXT_CHARGE_BLOCKED
  • All other values or undefined: CHARGE_NOT_BLOCKED

jamesremuscat avatar Feb 17 '20 12:02 jamesremuscat

/commerce/v1/accounts/kmr/remote-services/car-adapter/v1/cars/{vin}/battery-inhibition-status also works and returns a 403.

CalvinWalzel avatar Feb 18 '20 10:02 CalvinWalzel

I also get a 403

robertaramar avatar Feb 18 '20 19:02 robertaramar

@CalvinWalzel @robertaramar Are you battery-leased or battery-owned?

jamesremuscat avatar Feb 19 '20 13:02 jamesremuscat

@CalvinWalzel @robertaramar Are you battery-leased or battery-owned?

battery-owned

CalvinWalzel avatar Feb 19 '20 14:02 CalvinWalzel

with my car ze40 battery-leased it's return a 403 error code with ze50 battery-leased it's return a 403 error code with a ze50 battery-owned (not sure) [batteryInhibitorStatus] => 2

sumoo13 avatar Feb 19 '20 14:02 sumoo13

My car is leased, so I assume the same goes for the battery.

robertaramar avatar Feb 19 '20 14:02 robertaramar

Hi

I get

{"data":{"type":"Car","id":"VFxxxxxxxxxxx","attributes":{"lastUpdateTime":"2020-02-22T13:18:16Z","batteryInhibitorStatus":2}}}

I have a ZE50 leased also battery leased.

BTW, does anyone know how to read the range kilometers ?

KR famdrive

famdrive avatar Feb 23 '20 11:02 famdrive

BTW, does anyone know how to read the range kilometers ?

image

The range is calculated on the remaining battery charge and the power usage based on your driving pattern. It's the same value as displayed on the left side of the dashboard (the so-called GOM).

image

@jamesremuscat For me also a 403. Battery leased.

ArnoutVos avatar Feb 23 '20 13:02 ArnoutVos

Thank you for this information. Where did you get this graphic from ? Do you know a formula for this ?

famdrive avatar Feb 23 '20 15:02 famdrive

If I see correctly, is that in Grafana? do you have the formula for me :-)

Dave-09 avatar Feb 24 '20 09:02 Dave-09

Thank you for this information. Where did you get this graphic from ? Do you know a formula for this ?

I'm running pyze status by a cronjob every 5 minutes and push changed data to InlfuxDB. Then Grafana shows the data in a nice graph.

ArnoutVos avatar Feb 24 '20 14:02 ArnoutVos

OK, so it looks like there's no particular pattern to whether or not this endpoint is available. (Pretty standard for this API sadly.)

We should nevertheless include the endpoint in pyze.

jamesremuscat avatar Mar 03 '20 10:03 jamesremuscat