charge with an energy amount, such as 20 kWh for a guest or a prepaid top-up, and the charger stops the session when it has delivered it. The charger’s own meter enforces the stop, so only chargers that declare energy accept it.
1. Check the device supports it
energy key means the charger can’t meter the stop. Use target in percent if it declares that, or push charge, watch state.sessionEnergy, and push idle yourself.
2. Send the command
Deliver 20 kWh at no more than 7.4 kW:min and max returns 422 PARAMETER_OUT_OF_RANGE, with the bounds in details. On a charger that doesn’t declare energy you get 422 DEVICE_NOT_CAPABLE, and details.deviceCapabilities.supportedParameters lists what it does take.
3. Confirm
Track command dispatch through action states.completed does not confirm that charging started or that 20 kWh arrived. Poll the device and watch state.sessionEnergy climb. When isCharging turns false with sessionEnergy at the amount, the charger has delivered it. For the finished total, see Read session history.
Next steps
Start and stop a session
Charge now, pause, or charge inside a time window.
Read session history
What each session delivered, and how it was measured.