-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tesla: No response #78
Comments
Did you try it a couple of times? Sometimes the tesla server does not respond for a while.... |
yes, many times. No issue with the homepage or app. |
Same here, no TFA as-well, same "Tesla: no response" error:
|
same here: "Could not retrieve token, Error from Tesla: No response" perhaps we should wait some hours - tesla is changing a lot right now because of upcoming new software for Model S/X refresh.... |
This affects me, also. Downgraded to 0.4.2 to restore a working adapter state. My observations for troubleshooting:
|
I also get the captcha - a "good" one, also hard for me.... |
@hombach yes this seems to be the issue, see: as this adapter is based on TesjaJS, there is not much that I can do to resolve this. Either someone finds a way to work around this captcha, but I am sure tesla will find another way to reject us, or Tesla finally generates an official api. You can try to ask tesla support for this feature, if we are enough people tesla might sees that this is needed. |
Same for me. Adapter does not work anymore. It worked before. Can we downgrade somehow? |
I can't enter a token directly in the adapter settings. Is this blocked somehow? How can the input fields be activated? |
This is blocked, yes, as the adapter is supposed to get the token by itself. You can't downgrade, as said, tesla itself has changed their login process, this has nothing to do with the version of this adapter and will happen with any version. |
Tesla removed the captcha - Adapter is working again!!! |
doesn't work: Could not retrieve Data from the Car! Response: Error response: 408 |
Same here. :-( |
I’m using 2FA. I was able to retrieve a new token when entering a current OTP and then requesting a new token. |
Can you try to wake up the car first by using the Tesla App on your phone and then try to get data with the adapter? |
Adapter still showning me "no response" although Tesla deactivated the captcha |
It looks like this is pretty random and has nothing to do with the adapter. I have two installations of the adapter and both work with the newest version. But on one of them I was not able to get a token for a while. To say, I can't test it without 2 factor authentication, but as the adapter is pretty often installed I assume there would might be more users having troubles. Btw. I am curently testing Version 0.5.3 which has a couple of improvements with requesting data and the sleep function, will merge it into master in a couple of days. |
It's broken for since a few weeks for me. I tried about 50 times min. :( Will try to use 0.5.3 |
strange. I just updated another test instance to 0.5.3 and it worked with the first try. |
No 2FA. |
ok, then this might really does not work anymore. I will check if I can get a hand on a tesla without 2FA, one of my colleges has one. Or you could just use 2FA, for such an expensive thing like a car I would suggest this anyway ;) |
I just logged in to tesla.com. It notified me that my account is locked due to too many failed authentications (maybe because of the tesla adapter when captcha was activated). Strangely my tesla app was working all the time, hence I did not notice that my account was locked. I just changed the password, I think/hope it will work again. Will try later today. |
As long as the app has a valid token, it can still get data even if the account is locked. |
I just tried, is working fine now. Account locked was the problem. |
My issue might indeed be that the car is in an underground garage with no access currently. Will know latest tomorrow. |
I am not sure about this, we will see if it needs a new OTP. |
All I can say: |
I‘ll keep observing what will happen should troubles reoccur. |
I had the same issue (no 2FA) - the solution for me was to re-enter the password and refresh the token manually (v.0.5.2) |
Interesting effect today: Needed to obtain a new token using 2FA with a current OTP. Then it worked again. |
I had the same issue but without 2FA and without saved credentials... I had to restart the iobroker tesla instance to obtain a new valid token (while the old one should have been still valid). Trying to get a new token before i restarted the instance always ended in the same error message OS: Raspberry Pi OS Lite on a Raspi Zero W, Node.js: v12.22.3, NPM 6.14.13 |
Same behaviour again today:
` Just like 16 days ago. |
This might has something to do with mseminatore/TeslaJS#220 , as soon as this is merged with teslajs and release, I will update teslajs. |
Had the invalid character in header error again today. |
I did that as well but this strange encryption kicks in. Also you need the vehicle so I arranged the code a little to get the vehicle but its not working yet. Maybe I continue tonight at nachtschatt3n@52b5e27 |
Hi. I will describe here what steps I have taken to make the Tesla adapter in iobroker working again. First of all it is important to know that I will not take any responsibility whatsoever if it comes to system issues and/or fraudelent activitites. I am a private user with a little bit of coding knowledge. I have nothing to do with neither the coding of the tesla adapter nor teslafi or teslapy. This workaround is based on two steps. 1) you need to obtain the tokens either through teslafi.com or teslapy (python module on github). 2) you need to manipulate the code in iobroker -> tesla adapter to enable the token fields and the save & close button. I run iobroker on a rapberry 4 and another one on win10. To manipulate the code, I used google Chrome. The same approach might be feasible through other browser, but I do not know how these work.
I did not bother adding the expiry time. You'll probably notice that in 3 months it wont work anymore. If the problem with captcha persists by then I suppose we can do the same steps again and update the tokens manually. I attached a couple of printscreens which might help with the debug part in 2. I also added a printscreen of my python script which stores the tokens in cache.json. Ideally the developers of the adapter give the user the flexibilty in a next release, to either let the adapter obtaining the tokens automatically or that the user can provide this on his own. I hope above steps work for other users too. Again, I do not take any responsibility especially for the generation of the tokens. You are submitting your login details to a third party which always poses a certain risk which you need to decide for yourself if you are willing to take it. Any feedback will be appreciated. Lastly a big thanks to the developpers of the Tesla adapter! And should I have violated any rules with my post, please let me know or delete it. I am just trying to help out other users with thisworkaround. Thanks |
Thanks for the workaround! |
Thanks for the feedback. Ill try auth for tesla too later and let you know |
I think authfortesla might not work - whilst the acces token looks ok (qts-xxxxxx..) the refresh token seems to be of a different type. The one from my approach has 64 digits, the one from the app has a gazillion. Maybe try it with teslafi.com and check again. |
thanks @adultano - followed your steps and used teslapy. Had to insert code as mentioned here in this commit: tdorssers/TeslaPy@ebcef52 edit: installed via pip - there is the fix not implemented yet |
Thanks - does this mean your connected to your car again and this workaround worked for you too? |
yes - everything works fine again. |
Glad I wasnt making things up then. Appreciathe feedback. |
Thanks @adultano, you made my day. Well, you made my month! Thank you so much. I obtained the token via the iOS app "Auth for Tesla", used Chrome to make the save button clickable (the input fields are already writable since 0.5.4), entered the two tokens, saved - and it worked again, after 12 days of abstinence. Feels good man! So proud of you @adultano and also a big shout out to @dbweb-ch, this here means a lot to me. Thank you! |
been working a couple of hours on this and released a new version 0.5.5. You are now able to enter the token manually, then retrieve the car info, store that stuff all together and the adapter works. I've also tested the automatic token refresh which was not working anymore due to a double-encryption issue, this was causing the "ERR_INVALID_CHAR" error. And thanks @adultano for your help delivering a workaround in meantime. |
Ah and btw.: I've also not been able to get a token with the adapter. I've used the php script which is mentioned on https://www.teslafi.com/ and is posted here: I could put that script onto my server but then you would need to trust me as credentials are sent to the server to get the token (serverside script), but this is anyway an issue you will have with most of the services that get you a token (including teslafi). |
Thank you for your incredible work, @dbweb-ch . I'm not sure how they automatically solve the capture but I guess, for me was the possibility to solve it manually the breaking point.... |
Thank you very much @dbweb-ch ! This works flawlessly so far; the login screen is now exactly how I imagined it should look like with the possibility to provide own tokens. Simply perfect. Works awesome. I really highly appreciate the work you put into this! Hero! |
Manual input of tokens now works for me as well! Thanks!! Highly appreciated! |
Unfortunately this stopped working once again. :-( Did they change the token format? The access token now starts with "eu-", where formerly it started with "qts-". Could this be the reason? Behaviour is:
Could it be that the adapter refuses to accept access tokens starting with "eu-"? Due to the fact that it successfully detects the token's expiration date and also due to the fact that it receives the vehicle parameters, there seems to be at least limited functionality with the refreshed token. |
Did you already try the new version which is now in the iobroker comminity: |
Tesla worked again on its API, take a look here. I recently reset my password and wasn't able to generate token again, but now is it working with TeslaPy. My new token also begins with EU-. |
As said, in version 1.0.1 it is different. Before I was using teslajs as library and this library did the communication with tesla, now we are doing it completly on our own. The new changes on the api are taken into account on the new version already. The new version will be adopted to new changes tesla makes, this version here will not be updated anymore. |
Thanks @dbweb-ch, but 1.0.1 is useless to me. Unimportant objects get updated, but the ones I need remain in the old state. Do I have to rebuild the object tree after migrating from 0.5.5 to 1.0.1? As great as it is now to see which color my car has, the object "tesla-motors.0.chargeState.battery_level" won't be updated anymore. :-/ edit: After activating the "stream" option, several objects appeared. Also, after waking up the car other objects have been updated. Compared to my initial posting, now I have plenty of information. Nevertheless, a documentation would be great. Can I help do document something here? Anyhwere else here I've read a comment from another user that also struggled with the meaning of the objects. |
as written on https://github.com/iobroker-community-adapters/ioBroker.tesla-motors all data points are new, so yes, it is better to just delete the old and insert the new ones. You can take the "semi"-official documentation from https://tesla-api.timdorr.com/ to find all information that is needed. |
after the update with 5.1:
Could not retrieve token, Error from Tesla: No response
i don't have TFA.
The text was updated successfully, but these errors were encountered: