Tesla JSON API (Unofficial)
GitHubTesla
  • Introduction
  • API Basics
    • Authentication
    • Users
    • Vehicles
    • Energy Products
    • Trip Planner
  • Vehicle
    • State
      • Data
      • Charge State
      • Climate State
      • Drive State
      • GUI Settings
      • Vehicle State
      • Vehicle Config
      • Mobile Enabled
      • Nearby Charging Sites
      • Miscellaneous
    • Commands
      • Wake
      • Alerts
      • Remote Start
      • Homelink
      • Speed Limit
      • Valet Mode
      • Sentry Mode
      • Doors
      • Frunk/Trunk
      • Windows
      • Sunroof
      • Charging
      • Climate
      • Media
      • Sharing
      • Software Updates
      • Calendar
      • Miscellaneous
    • Streaming
    • Autopark/Summon
    • Option Codes
  • Energy Products
    • Overview
      • History
      • State
      • Commands
  • Miscellaneous
    • Endpoints File
Powered by GitBook
On this page
  • POST api/1/energy_sites/{site_id}/backup
  • Parameters
  • Response
  • POST api/1/energy_sites/{site_id}/site_name
  • Parameters
  • Response
  • POST api/1/energy_sites/{site_id}/storm_mode
  • Parameters
  • Response
Edit on GitHub
  1. Energy Products
  2. Overview

Commands

These endpoints are not yet documented.

Cmd
Endpoint

POST

backup

POST

off_grid_vehicle_charging_reserve

POST

site_name

POST

operation

POST

grid_import_export

POST

time_of_use_settings

POST

command

POST

program

POST

event

POST

preference

POST api/1/energy_sites/{site_id}/backup

Set the battery backup reserve energy percentage for grid outages.

Parameters

Parameter
Example
Description

backup_reserve_percent

75

The percentage for backup reserve.

Response

{
  "response": {
    "code": 201,
    "message": "Updated"
  }
}

POST api/1/energy_sites/{site_id}/site_name

Set your energy site name.

Parameters

Parameter
Example
Description

site_name

Wardenclyffe

New energy site name.

Response

{
  "response": {
    "code": 201,
    "message": "Updated"
  }
}

POST api/1/energy_sites/{site_id}/storm_mode

Enable or disable Storm Watch.

Parameters

Parameter
Example
Description

enabled

true

If Storm Watch should be enabled

Response

{
  "response": {
    "code": 201,
    "message": "Updated"
  }
}
PreviousStateNextEndpoints File

Last updated 10 months ago