State And Settings
An energy site is a home installation of batteries or solar panels (formerly from SolarCity, which was acquired by Tesla).
Work In Progress
Site Data
GET
https://owner-api.teslamotors.com/api/1/energy_sites/:site_id/live_status
Shows a real-time view of the power output of the site. The Tesla Android app polls this method every 3 seconds to show the kW output.
Path Parameters
Name | Type | Description |
---|---|---|
:site_id | integer | The |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Bearer |
Site Configuration
GET
https://owner-api.teslamotors.com/api/1/energy_sites/:site_id/site_info
Get installation and configuration details about the site.
The site_name
field value can be changed using the Site Name command.
Path Parameters
Name | Type | Description |
---|---|---|
:site_id | integer | The |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Bearer |
Historical Calendar Data
GET
https://owner-api.teslamotors.com/api/1/energy_sites/:site_id/calendar_history
Generate a report for solar, grid, and battery data up to a given date, aligned with the start of various calendar periods. Reports for certain periods will return subtotals for smaller constituent periods. This method is used to render bar and line graphs in the Tesla Android app.
Path Parameters
Name | Type | Description |
---|---|---|
:site_id | integer | The |
Query Parameters
Name | Type | Description |
---|---|---|
end_date | string | ISO 8601 datetime, e.g. |
time_zone | string | IANA/Olsen time zone identifier, e.g. |
period | string | Amount of time to include in report. One of |
kind | string | Type of report to generate. One of |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Bearer |
Historical Data
GET
https://owner-api.teslamotors.com/api/1/energy_sites/:site_id/history
May be a deprecated method. Seems to be similar to the Historical Calendar Data method above, except these responses are missing the time_zone_offset
field.
Path Parameters
Name | Type | Description |
---|---|---|
:site_id | integer | The |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Bearer |
Site Summary
GET
https://owner-api.teslamotors.com/api/1/energy_sites/:site_id/status
Warning: This method seems to always return 404 Not Found
. It may have been removed from the API.
Path Parameters
Name | Type | Description |
---|---|---|
:site_id | integer | The |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Bearer |
Last updated