Sha256: d25b7e504ee5b99617397d3d7830570a28cad4fa837e1f516c25f1837852b2b9

Contents?: true

Size: 949 Bytes

Versions: 4

Compression:

Stored size: 949 Bytes

Contents

# Windows

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

Controls the windows. Will vent or close all windows simultaneously.

`lat` and `lon` values must be near the current location of the car for
`close` operation to succeed.  For `vent`, the `lat` and `lon` values are
ignored, and may both be `0` (which has been observed from the app itself).

### Parameters

| Parameter | Example | Description                                                                 |
| :-------- | :------ | :-------------------------------------------------------------------------- |
| command   | close   | What action to take with the windows. Allows the values `vent` and `close`. |
| lat       | 0       | Your current latitude.  See Notes above.                                    |
| lon       | 0       | Your current longitude.  See Notes above.                                   |

### Response

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tesla_api-3.1.0 docs/vehicle/commands/windows.md
tesla_api-3.0.7 docs/vehicle/commands/windows.md
tesla_api-3.0.6 docs/vehicle/commands/windows.md
tesla_api-3.0.5 docs/vehicle/commands/windows.md