Discussions
New status after 'charge stop' request'
Hi,
I am controlling my charger through the API, and start the charge every day at 00:05 and stop it at 07:55. The car prioritizes the charge between 02:00 and 04:00, for the ultra-low EV tariff, but using the whole 7:50h period if needed.
Until now, after running the 'stop charge' request, the new status of the charger was available
, but it is now busy-non-released
This is the API call I use to stop the charge:
curl -s --request POST --url 'https://public-api.monta.com/api/v1/charges/<ChargeSessionId>/stop' \
--header 'accept: application/json' --header 'content-type: application/json' \
--header 'authorization: Bearer <TOKEN>'
It worked fine until now, because after that call, the new status for the charger was available
,
{
"id": *******,
"createdAt": "2023-04-24T09:04:57Z",
"updatedAt": "2024-01-06T11:18:40Z",
"serialNumber": "*******",
"name": "************",
"visibility": "private",
"maxKW": 7.4,
"maxKw": 7.4,
"type": "ac",
"note": null,
"state": "available",
"location": {
"coordinates": {
"latitude": 00.000000,
"longitude": 0.0000000
},
"address": null
},
"connectors": [
{
"identifier": "type2",
"name": "Type 2"
}
],
"lastMeterReadingKwh": 3666.186,
"cablePluggedIn": true,
"brandName": "SyncEV",
"modelName": "SyncEV - BG",
"firmwareVersion": "AC7K-88071-V3.05"
}
But it is now busy-non-released
{
"id": *******,
"createdAt": "2023-04-24T09:04:57Z",
"updatedAt": "2024-02-02T09:54:57Z",
"serialNumber": "*******",
"name": "************",
"visibility": "private",
"maxKW": 7.4,
"maxKw": 7.4,
"type": "ac",
"note": null,
"state": "busy-non-released",
"location": {
"coordinates": {
"latitude": 00.000000,
"longitude": 0.0000000
},
"address": null
},
"connectors": [
{
"identifier": "type2",
"name": "Type 2"
}
],
"lastMeterReadingKwh": 4071.03,
"cablePluggedIn": true,
"brandName": "SyncEV",
"modelName": "SyncEV - BG",
"firmwareVersion": "AC7K-88071-V3.05"
}
The problem with this is that when I try to start the charge again I get this:
{
"status": "PRECONDITION_FAILED",
"message": "Charge point cannot start: not available",
"readableMessage": "Charge point cannot start: not available",
"errorCode": "CHARGING_CHARGEPOINT_NOT_AVAILABLE",
"context": null
}
So, in short, at some point between 2024-02-01 / 00:05 UTC
(last time I was able to start the charge with the API) and 2024-02-02 / 00:05 UTC
(first time I tried and it failed) the status of the charger after stopping has changed.
What is the problem with this? That we are forced to unplug and plug back again the car before we can start a new charge again. And that can be a problem.
Any solution for this?
Thanks