@@ -4,10 +4,18 @@ _(Based on firmware version 1.15.0)_
This is a list of api URLs and some random thoughts I've been able to pull together from the interwebz and other functions we've been able to reverse engineer from the local gateway. (This is not the [ Tesla Owner API](https://timdorr.docs.apiary.io/#)).
A note about HTTPS and SSL Certificates
---
In a recent update to the Powerwall firmware non-SSL requests (http) are no longer supported and queries will return HTTP/1.1 301 Moved Permanently. Unfortunately the certificate presented by the Powerwall is not signed by a root certificate authority as they are self-signed meaning that web browsers and tools like curl will not accept it without it either being included as a trusted certificate on the computer making the request or a specific action by the user to override the error.
1) In web browser this will manifest itself as an error that the certificate is not trusted. To bypass simply click "details" (IE/Edge) or "Advanced..." (Firefox) and select continue.
2) With curl the `--insecure` or `-k` option will ignore SSL certificate errors.
3) Export the Powerwall public certificate and add it to the local machine's trusted certificate list.
Powerwall 2 Web UI
---
The web UI provides ~~an instantaneous~~ a 250-500ms average(?) power flow diagram an access to the wizard.
Hit your local gateway IP with a browser, i.e. _http://192.168.xxx.xxx/
Hit your local gateway IP with a browser, i.e. _https://192.168.xxx.xxx/
You should see something like this:
...
...
@@ -35,7 +43,7 @@ Calling the below URLs does not require authentication. Each will return JSON o
The below request would set the battery mode to "Self-powered" and a "Reserve for Power Outages" to 20% (app value) using the token retrieved from the authentication example.