Closed swm11 closed 4 years ago
Sorry, but I am currently unable to test the API. But could you further specify the problem? What are error messages do you see, when trying to login?
On 13 Oct 2019, at 19:31, jrester notifications@github.com wrote:
Sorry, but I am currently unable to test the API. But could you further specify the problem? What are error messages do you see, when trying to login?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
I modified your code to include a username since I believe that it is required to login to the system. Login with the key on the gateway only seems to be possible after toggling the power switch (i.e. to ensure physical access to the system).
The error message I’m getting (with email and password edited):
DEBUG:tesla_powerwall_swm:Getting https://192.168.1.201/api/operation
DEBUG:tesla_powerwall_swm:Authenticating
DEBUG:tesla_powerwall_swm:Post {'username': ‘
This is on a Powerwall 2 with version 1.40.2 firmware.
Thanks for your time - much appreciated.
[Simon W Moore][http://www.cl.cam.ac.uk/users/swm11 ]
I will take a look at this issue as soon as I have access to a Power Wall 2 again. If you like you can try to investigate this issue further. Maybe by intercepting the traffic of the Wizzard to see if the API has changed.
@swm11 The login endpoint has changed. Its now
Old payload
{"username": "", "password": self.password, "force_sm_off": True}
New payloads
{"username":"installer","email":"<any_valid_email>","password":"<installer_password>","force_sm_off":false}
{"username":"customer","email":"<any_valid_email>","password":"<customer_password>","force_sm_off":false}
@bdraco thanks for investigating the payload!
Should be fixed in version 0.1.3
Having read your excellent code and vloschiavo's documenation, I'm still unable to login to my Powerwall 2 running version 1.40.2. vloschiavo note on authentication says " This documentation is old (created on version 1.15) and needs updating I wouldn't be surprised if less than 1% of the below still works in versions 1.40+ " - have you managed to authenticate with a new version 1.40+ ? I can successfully login as a customer and and installer.