Teslemetry Vehicle icon

Teslemetry Vehicle

Interact with Teslemetry Vehicle API

Control Sunroof

AI-generated

Summary

Control the sunroof state on a specified sunroof-enabled Tesla vehicle by setting it to vent, close, or stop.

Inputs

  • VIN (required) — Select the Vehicle Identification Number (VIN) of the Tesla vehicle to control.
  • Sunroof State (required) — Set the sunroof state to one of: vent (open slightly to vent), close, or stop (stop any sunroof movement).

Output shape

a response object confirming the action result from the Tesla API.

The command returns the result of the sunroof control operation for the specified vehicle. This controls only sunroof-enabled Tesla vehicles. The operation requires a valid VIN and a sunroof state command.

Links

Discussion