Skip to content
EN | DE

Set external battery mode

POST
/batterymode/{batteryMode}
curl --request POST \
--url https://demo.evcc.io/api/batterymode/unknown

Directly controls the mode of all controllable batteries. evcc behavior like ‘price limit’ or ‘prevent discharge while fast charging’ is overruled. External mode resets after 60s. The external system has to call this endpoint regularly.

batteryMode
required

Battery operation mode.

string
Allowed values: unknown normal hold charge holdcharge

Battery mode

Media typeapplication/json

Battery mode. 0: unknown, 1: normal, 2: hold, 3: charge, 4: holdcharge

integer
<= 4
Examplegenerated
1