API question: auto_release on limit

28 views
Skip to first unread message

Irek

unread,
Apr 1, 2023, 3:44:49 PM4/1/23
to OpenEVSE
Hi everyone.
I have been using HTTP API to configure OpenEvse.

I don't understand if/how auto_release should work for "/limit" API.
I set limit using POST api like this:

{
    "type": "energy",
    "value": 5550,
    "auto_release": true
}

This correctly limits charge to 5.55kwh.
But when I disconnect the car - limit is not removed (confirmed by calling GET on limit api, and by re-plugging the car - it will still charge to the old limit). Thought auto_release should remove the limit when car is unplugged. I can delete it using DELETE request, but was hoping auto_release will work.

Similar API to set "override" works as expected (auto_release will remove override after car is unplugged).

Am I getting it wrong, or is this a bug?
Thanks!
Irek

Guillaume S

unread,
Apr 24, 2023, 4:36:43 PM4/24/23
to OpenEVSE

Hi, 

This is not supposed to happend. if auto_release is set, it should be deleted at vehicle disconnect:

Last time I have tested it was working as expected, I'll have to check. 
Hare you sure you didn't have already a limit with auto_release: false on the /limit endpoint? Because you can'"t overwrite an existing limit. It needs to be deleted first. 
On new Web Interface, setting the limits from the main page gives limit with auto_release true, and setting them from the /config/evse page  ( system limits ) has auto_release: false.

Guillaume S

unread,
Apr 25, 2023, 3:51:26 AM4/25/23
to OpenEVSE
Can you confirm that when you unplug the vehicle after a limited charge, the  disabled  EVSE state  from Limit service is removed ?
You can see that from UI V2 interface in status bar or monitoring > commands
or just from /claims/target endpoint json.

Reply all
Reply to author
Forward
0 new messages