API 0.3.10 and Mac OS X Big Sur
tmstiller opened this issue · 15 comments
Cannot login to Tesla Gateway running software version 21.13.2.
My credentials work with older versions os API on both Raspberry PI and Mac OS X Catalina but no combination of password and email address will login.
Response to one attempt copied below.
/Users/tms/PycharmProjects/Test/login\ v-0.3.10.py
Traceback (most recent call last):
File "/Users/tms/PycharmProjects/Test/login v-0.3.10.py", line 41, in
powerwall.login_as(User.CUSTOMER, pw, ui)
File "/usr/local/lib/python3.9/site-packages/tesla_powerwall/powerwall.py", line 64, in login_as
response = self._api.login(user, email, password, force_sm_off)
File "/usr/local/lib/python3.9/site-packages/tesla_powerwall/api.py", line 155, in login
return self.post(
File "/usr/local/lib/python3.9/site-packages/tesla_powerwall/api.py", line 145, in post
return self._process_response(response)
File "/usr/local/lib/python3.9/site-packages/tesla_powerwall/api.py", line 89, in _process_response
self._handle_error(response)
File "/usr/local/lib/python3.9/site-packages/tesla_powerwall/api.py", line 65, in _handle_error
raise AccessDeniedError(
tesla_powerwall.error.AccessDeniedError: Access denied for resource /api/login/Basic: bad credentials: Login Error
Tesla might have changed the login API again. I will take a look at it.
Thanks, I tried all three forms of login with switching email and password. No joy.
Oops
Dumb mistake
Can you login in the web UI of the Powerwall?
Ok, glad to hear it is working again.
Could you try executing this command in a terminal. Replace <ip>
and <password>
with the correct values for your powerwall.
$ curl -L -k -X POST -H "Content-Type: application/json" -d '{"password": "<password>", "username": "customer", "force_sm_off": false}' https://<ip>/api/login/Basic
It's alright. Happens to all of us.
I cannot identify any issue here. Can you provide me the source code of your script and send me the output of executing the get_status
method?
Ok, than I am closing this issue.