Sha256: 391e48703d9f12ea994f93a4a58649923103a0264423a57efd2e5363b5dfe7c0

Contents?: true

Size: 761 Bytes

Versions: 13

Compression:

Stored size: 761 Bytes

Contents

# Sunroof

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

Controls the panoramic sunroof on the Model S.

Note: There were state options for `open` (100%), `comfort` (~80%), and `move` (combined with a `percent` parameter), but they have since been disabled server side. It is unknown if they will return at a later time.

### Parameters

| Parameter | Example | Description                                                                               |
| :-------- | :------ | :---------------------------------------------------------------------------------------- |
| state     | vent    | The amount to open the sunroof. Currently this only allows the values `vent` and `close`. |

### 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/sunroof.md
tesla_api-3.0.7 docs/vehicle/commands/sunroof.md
tesla_api-3.0.6 docs/vehicle/commands/sunroof.md
tesla_api-3.0.5 docs/vehicle/commands/sunroof.md
tesla_api-3.0.4 docs/vehicle/commands/sunroof.md
tesla_api-3.0.3 docs/vehicle/commands/sunroof.md
tesla_api-3.0.2 docs/vehicle/commands/sunroof.md
tesla_api-3.0.1 docs/vehicle/commands/sunroof.md
tesla_api-3.0.0 docs/vehicle/commands/sunroof.md
tesla_api-2.0.0 docs/vehicle/commands/sunroof.md
tesla_api-1.5.0 docs/vehicle/commands/sunroof.md
tesla_api-1.4.1 docs/vehicle/commands/sunroof.md
tesla_api-1.4.0 docs/vehicle/commands/sunroof.md