Set energy-based charging plan
POST
/loadpoints/{id}/plan/energy/{energy}/{timestamp}
const url = 'https://demo.evcc.io/api/loadpoints/1/plan/energy/25.5/2025-07-19T12%3A30%3A00.000Z';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/loadpoints/1/plan/energy/25.5/2025-07-19T12%3A30%3A00.000ZCreate charging plan with fixed time and energy target. Only available when a vehicle without SoC is connected.
Parameters
Section titled β Parameters βPath Parameters
Section titled βPath Parameters β id
required
Loadpoint index starting at 1.
integer
Example
1Loadpoint index starting at 1
energy
required
Energy in kWh
number
Example
25.5Energy in kWh
timestamp
required
Timestamp in RFC3339 format
string format: date-time
Example
2025-07-19T12:30:00.000ZTimestamp in RFC3339 format
Responses
Section titled β Responses βSuccess
Media type application/json
object
result
object
energy
Energy in kWh
number
time
Timestamp in RFC3339 format
string format: date-time
Example
{ "result": { "energy": 25.5, "time": "2025-07-19T12:30:00.000Z" }}