grocy_battery_charge
Record a charge cycle for a specified battery in Grocy; omit confirm to preview as a dry-run before committing.
Instructions
Track a battery charge cycle. POST /api/batteries/{batteryId}/charge. 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": {
"battery_id": "<battery_id>"
},
"name": "grocy_battery_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. | |
| battery_id | Yes | ||
| tracked_time | No |