GET /v1/commands
once every minute. Commands are shared in batches whenever we receive them from utilities. They may be sent 24 hours in advance or 10 minutes ahead. They will generally span 1 to 4 hours for batteries.CHARGE
or DISCHARGE
onlypower_mode
is SETPOINT
. In Watts, always a non-zero positive integer.OK
means that the command is happening.OK
means that the device is ready to perform the command.device_status
. We will use it when we set device_status
to PENDING
, and feel free to use it as well when setting to OK
or FAILED
.device_state
of PENDING
.battery_commands.mode
will be one of CHARGE
, DISCHARGE
, STANDBY
, BACKUP
, SAVINGS
or SELF_CONSUMPTION
. Depending on mode, it may also have a power_mode
or a setpoint_w
attribute.device_status
is marked as PENDING
in ours. We expect each command to be acknowledged once it has been scheduled by setting device_status
to OK
via PATCH /v1/commands/{id}
. Alternatively, if you were not able to schedule it, set device_status
to FAILED
and describe a reason in device_status_reason
. If we do not receive confirmation within 15 minutes we will consider the command to have failed and will send a new one.status
of a command, for instance if an event was canceled by a utility (CANCELED
), or if a homeowner updated their participation (OPT_OUT
). In this case, the device_status
will be reset to PENDING
and we will request again that you acknowledge the cancelation of the command on your end.