pyze
pyze copied to clipboard
New "battery inhibitor status" endpoint
(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
/commerce/v1/accounts/kmr/remote-services/car-adapter/v1/cars/{vin}/battery-inhibition-status
also works and returns a 403
.
I also get a 403
@CalvinWalzel @robertaramar Are you battery-leased or battery-owned?
@CalvinWalzel @robertaramar Are you battery-leased or battery-owned?
battery-owned
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
My car is leased, so I assume the same goes for the battery.
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
BTW, does anyone know how to read the range kilometers ?
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).
@jamesremuscat For me also a 403. Battery leased.
Thank you for this information. Where did you get this graphic from ? Do you know a formula for this ?
If I see correctly, is that in Grafana? do you have the formula for me :-)
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.
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.