Actions46
- Get Vehicle Data
- Wake Up
- Flash Lights
- Honk Horn
- Lock Doors
- Unlock Doors
- Remote Start
- Actuate Trunk
- Start HVAC
- Stop HVAC
- Set Temperatures
- Set Seat Heater
- Set Steering Wheel Heater
- Start Charging
- Stop Charging
- Open Charge Port
- Close Charge Port
- Set Charge Limit
- Set Charging Amps
- Set Sentry Mode
- Trigger Homelink
- Navigation Request
- Set Seat Cooler
- Set Auto Seat Climate
- Set Auto Steering Wheel Heat
- Set Steering Wheel Heat Level
- Set Cabin Overheat Protection
- Set Cabin Overheat Protection Temperature
- Set Climate Keeper Mode
- Set Bioweapon Defense Mode
- Set Preconditioning Max
- Control Windows
- Control Sunroof
- Control Tonneau
- Set Scheduled Charging
- Set Scheduled Departure
- Add Charge Schedule
- Remove Charge Schedule
- Add Precondition Schedule
- Remove Precondition Schedule
- Charge on Solar
- Charge to Standard
- Charge to Max Range
- Schedule Software Update
- Cancel Software Update
- Set Volume
Add Precondition Schedule
AI-generatedSummary
Adds a preconditioning schedule to a Tesla vehicle using the Teslemetry API.
Inputs
- vin (required) — Vehicle Identification Number (VIN).
- precondition_schedule_body (required) — JSON configuration for the preconditioning schedule. Includes days_of_week, enabled status, precondition_time (minutes into the day, e.g., 65 = 1:05 AM), and lat/lon coordinates.
Output shape
no body — success/failure only
Returns an API response envelope indicating success or failure of the preconditioning schedule creation.
Examples
Example 1: Schedule preconditioning to start daily at 1:05 AM for all days of the week.
Set precondition_time to 65, days_of_week to All, and enabled to true.