Control battery grid discharge
POST
/batterygriddischarge/{enable}
const url = 'https://demo.evcc.io/api/batterygriddischarge/true';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://demo.evcc.io/api/batterygriddischarge/trueAllow the home battery to discharge to the grid (experimental).
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”enable
required
string
Charging mode.
Responses
Section titled “Responses”Success - Boolean result
Media typeapplication/json
boolean
Examplegenerated
true