grocy_battery_undo_charge
Undo a battery charge cycle by ID. Omit confirm to preview the reversal as a dry-run before executing the write.
Instructions
Undo a battery charge cycle. POST /api/batteries/charge-cycles/{chargeCycleId}/undo. Omit confirm for a dry-run.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"charge_cycle_id": "<charge_cycle_id>"
},
"name": "grocy_battery_undo_charge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Set to the boolean true to execute the write. Omit this field for a dry-run preview. false and the string true are rejected. | |
| charge_cycle_id | Yes |