Charging

Commands related to the charging of the vehicle.

POST /api/1/vehicles/{id}/command/charge_port_door_open

Opens the charge port or unlocks the cable.

Response

{
  "reason": "",
  "result": true
}

POST /api/1/vehicles/{id}/command/charge_port_door_close

For vehicles with a motorized charge port, this closes it.

Response

{
  "reason": "",
  "result": true
}

POST /api/1/vehicles/{id}/command/charge_start

If the car is plugged in but not currently charging, this will start it charging.

Response

{
  "reason": "",
  "result": true
}

POST /api/1/vehicles/{id}/command/charge_stop

If the car is currently charging, this will stop it.

Response

{
  "reason": "",
  "result": true
}

POST /api/1/vehicles/{id}/command/charge_standard

Sets the charge limit to "standard" or ~90%.

Response

{
  "reason": "",
  "result": true
}

POST /api/1/vehicles/{id}/command/charge_max_range

Sets the charge limit to "max range" or 100%.

Response

{
  "reason": "",
  "result": true
}

POST /api/1/vehicles/{id}/command/set_charge_limit

Sets the charge limit to a custom value.

Parameters

ParameterExampleDescription

percent

75

The percentage the battery will charge until.

Response

{
  "reason": "",
  "result": true
}

POST /api/1/vehicles/{id}/command/set_charging_amps

Sets the charge amps limit to a custom value.

Parameters

ParameterExampleDescription

charging_amps

32

The max amps to use during charging.

Response

{
  "reason": "",
  "result": true
}

POST /api/1/vehicles/{id}/command/set_scheduled_charging

Set the scheduled charge.

Parameters

ParameterExampleDescription

enable

true

true for on, false for off.

time

1410

time in minutes since midnight local time.

Response

{
  "reason": "",
  "result": true
}

POST /api/1/vehicles/{id}/command/set_scheduled_departure

Set the scheduled departure.

Parameters

ParameterExampleDescription

enable

true

true for on, false for off.

departure_time

540

true if (preconditioning_enabled or off_peak_charging_enabled), false otherwise (this condition may change in the future).

preconditioning_enabled

true

true for on, false for off.

preconditioning_weekdays_only

true

true for on, false for off.

off_peak_charging_enabled

true

true for on, false for off.

off_peak_charging_weekdays_only

true

true for on, false for off.

end_off_peak_time

450

time in minutes since midnight local time.

Response

{
  "reason": "",
  "result": true
}

Last updated