Teslemetry Vehicle icon

Teslemetry Vehicle

Interact with Teslemetry Vehicle API

Add Charge Schedule

AI-generated

Summary

Adds or modifies a vehicle's scheduled charging configuration via the Teslemetry API.

Inputs

  • vin (required) — Vehicle Identification Number (VIN) of the Tesla vehicle to configure.
  • charge_schedule_body — A JSON object defining the charge schedule. Defaults include days_of_week (All), enabled status, start/end enabled flags, and start_time (minutes into the day). lat and lon are optional.

Output shape

A single record containing the Teslemetry API response for the schedule update.

The API returns a confirmation envelope. Ensure the vehicle is online and the provided schedule format is valid per Tesla's API documentation.

Examples

Example 1: Configure a daily charging schedule starting at 1:05 AM (60 minutes) for all days.

Set charge_schedule_body.days_of_week to 'All', start_enabled to true, and start_time to 60.

Example 2: Create a custom schedule with specific days and an end time.

Set days_of_week to a custom array, enable start_enabled and end_enabled, and set start_time/end_time to desired minutes.

Links

Discussion