Help for a Python Novice? - TESLA Tokens #295
-
I'm not a coder, it was called programming when I last did it in properly back in the 1980's! So please take pity on me. I have a Raspberry Pi and learned a bit of Python last year so that I could use the code below to switch my Tesla Powerwall from whatever mode it was in (C_MODE - usually 'Self Powdered') to 'Backup' and visa versa. My system stopped working a week ago when Tesla updated their authentication process. Can anyone provide some Python code to replace the code I was using and get my system back up and running, ideally something that I can simply cut and paste into my existing code? Here are the basics of what I was using, but this doesn't work anymore: import requests async def Starter(): async def Boost(): I've read through the discussions and issues 215/260 and don't really understand what I have read, so I'm hoping that someone out there can help me get back to using my Powerwall efficiently and effectively again. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Seems like you have to update your TeslaApiClient with the new OAuth2.0 Beeing a "Old rusty hippie programer" is no excusion! ;-) |
Beta Was this translation helpful? Give feedback.
-
Thanks for the new Oauth2 code. Thx |
Beta Was this translation helpful? Give feedback.
Seems like you have to update your TeslaApiClient with the new OAuth2.0
Find the part with the autentication process.
I think included here is the answer: #258 (reply in thread)
Beeing a "Old rusty hippie programer" is no excusion! ;-)