Send a command to a battery device. The action is processed asynchronously and a webhook is sent on completion.
deferUntil parameter is not yet operational and will be available in a future release.The unique identifier for the battery device
"device_abc123"
The action to perform on the battery device
Action type - set battery operation mode
set_operation_mode "set_operation_mode"
Target operation mode for the battery
charge, discharge, idle "charge"
Defer execution until a specific time. Accepts either an ISO 8601 UTC timestamp (e.g. '2025-06-01T18:00:00Z') or a relative duration: '{x}m' for minutes or '{x}h' for hours, where x is a number with up to 2 decimal places (e.g. '30m', '1.5h', '0.25h').
"30m"
Optional sandbox configuration for testing
Action acknowledged and queued for processing
Unique identifier for the action
"act_abc123xyz"
Current state of the action
acknowledged, deferred, completed, failed "acknowledged"
Type of action being performed
battery:set_operation_mode "battery:set_operation_mode"
Timestamp when the action was created
"2025-01-23T10:30:00.000Z"
Resolved ISO 8601 UTC timestamp the action is deferred until. Null if the action was not deferred.
"2025-06-01T18:00:00Z"