vloschiavo / powerwall2

Tesla Powerwall 2 - Local Gateway API documentation
Apache License 2.0
288 stars 51 forks source link

Authentication #103

Open darryllee opened 2 months ago

darryllee commented 2 months ago

Hi Vince, you wrote:

POST /api/login/Basic Note: This section needs updating: Does this work?

Authentication example: Note: Getting an authentication token will stop the powerwall. It won't charge, discharge, or collect stats on v1.15+. Therefore you should re-enable the powerwall after getting a token. See: the /api/sitemaster/run section above.

Getting authentication tokens no longer stops the powerwall (THANK GOODNESS), and your sample payload is incorrect. I took a peek at @jasonacox 's pwstatus.sh and config file to find out that you're missing a "username":"customer" value.

I truly do appreciate all the pioneering work you did in researching this API though. Thanks!!

vloschiavo commented 2 months ago

Thanks, I'd love some help. If you can, feel free to issue a pull request. Otherwise, you can draft the change and post it here, and I'll add to the documentation.