Sha256: 1fe719cf8bc7230ccbd2b7f65a6a6ede207f7546a12bc91d4f5da6f2a73673a4

Contents?: true

Size: 1.46 KB

Versions: 13

Compression:

Stored size: 1.46 KB

Contents

# Charging

Commands related to the charging of the vehicle.

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

Opens the charge port.

### Response

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

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

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

### Response

```json
{
  "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

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

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

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

### Response

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

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

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

### Response

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

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

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

### Response

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

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

Sets the charge limit to a custom value.

### Parameters

| Parameter | Example | Description                                   |
| :-------- | :------ | :-------------------------------------------- |
| percent   | 75      | The percentage the battery will charge until. |

### Response

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
tesla_api-3.1.0 docs/vehicle/commands/charging.md
tesla_api-3.0.7 docs/vehicle/commands/charging.md
tesla_api-3.0.6 docs/vehicle/commands/charging.md
tesla_api-3.0.5 docs/vehicle/commands/charging.md
tesla_api-3.0.4 docs/vehicle/commands/charging.md
tesla_api-3.0.3 docs/vehicle/commands/charging.md
tesla_api-3.0.2 docs/vehicle/commands/charging.md
tesla_api-3.0.1 docs/vehicle/commands/charging.md
tesla_api-3.0.0 docs/vehicle/commands/charging.md
tesla_api-2.0.0 docs/vehicle/commands/charging.md
tesla_api-1.5.0 docs/vehicle/commands/charging.md
tesla_api-1.4.1 docs/vehicle/commands/charging.md
tesla_api-1.4.0 docs/vehicle/commands/charging.md