Page 10 of 15
Re: Tesla hardware module
Posted: Friday 29 January 2021 22:52
by dyter
API doesn't work now, I have message:
Error: Tesla: Aborting due to too many failed authentication attempts (and prevent getting blocked)!
Re: Tesla hardware module
Posted: Friday 29 January 2021 23:42
by MrHobbes74
dyter wrote: ↑Friday 29 January 2021 22:52
API doesn't work now, I have message:
Error: Tesla: Aborting due to too many failed authentication attempts (and prevent getting blocked)!
Still works ok here..
Re: Tesla hardware module
Posted: Friday 29 January 2021 23:43
by MrHobbes74
PVuser wrote: ↑Friday 29 January 2021 18:20
Can you help me how to update an oder version of this module? I can't find the original installation instruction and no instruction to update an existing one?
Also I have an feature request: Perhaps you can implement an counter for the car status (awake or not) to see, how long and at which time the car sleeps.
Thanks
The module is integrated into Domoticz. So if you have the latest domoticz version, you have the latest Tesla module.
Re: Tesla hardware module
Posted: Saturday 30 January 2021 8:32
by dyter
MrHobbes74 wrote: ↑Friday 29 January 2021 23:42
dyter wrote: ↑Friday 29 January 2021 22:52
API doesn't work now, I have message:
Error: Tesla: Aborting due to too many failed authentication attempts (and prevent getting blocked)!
Still works ok here..
Logging work on MyTeslaCore app, change my IP and same problem, I'm blacklisted ?
Code: Select all
2021-01-30 08:28:04.179 Error: CheckAuthToken(b55ed9084278e9fe8e8fc9794351ca7e_OWVkYjdlZDYtZGM0MS00NzY5LTk5...................) : session id not found
2021-01-30 08:28:06.415 Error: TeslaApi: Received token is zero length.
2021-01-30 08:28:08.305 Error: TeslaApi: Received token is zero length.
2021-01-30 08:28:10.149 Error: TeslaApi: Received token is zero length.
2021-01-30 08:28:12.081 Error: TeslaApi: Received token is zero length.
2021-01-30 08:28:12.081 Error: Tesla: Aborting due to too many failed authentication attempts (and prevent getting blocked)!
Re: Tesla hardware module
Posted: Saturday 30 January 2021 8:55
by MrHobbes74
dyter wrote: ↑Saturday 30 January 2021 8:32
MrHobbes74 wrote: ↑Friday 29 January 2021 23:42
dyter wrote: ↑Friday 29 January 2021 22:52
API doesn't work now, I have message:
Error: Tesla: Aborting due to too many failed authentication attempts (and prevent getting blocked)!
Still works ok here..
Logging work on MyTeslaCore app, change my IP and same problem, I'm blacklisted ?
Code: Select all
2021-01-30 08:28:04.179 Error: CheckAuthToken(b55ed9084278e9fe8e8fc9794351ca7e_OWVkYjdlZDYtZGM0MS00NzY5LTk5...................) : session id not found
2021-01-30 08:28:06.415 Error: TeslaApi: Received token is zero length.
2021-01-30 08:28:08.305 Error: TeslaApi: Received token is zero length.
2021-01-30 08:28:10.149 Error: TeslaApi: Received token is zero length.
2021-01-30 08:28:12.081 Error: TeslaApi: Received token is zero length.
2021-01-30 08:28:12.081 Error: Tesla: Aborting due to too many failed authentication attempts (and prevent getting blocked)!
Restarting Domoticz has no effect?
Re: Tesla hardware module
Posted: Saturday 30 January 2021 8:59
by dyter
MrHobbes74 wrote: ↑Saturday 30 January 2021 8:55
Restarting Domoticz has no effect?
no effect, but I can't change my IP, I think I blacklisted because too many login with my lua script
Postman return no page exist
Re: Tesla hardware module
Posted: Saturday 30 January 2021 16:14
by chrispazz
Same problem here....
Re: Tesla hardware module
Posted: Saturday 30 January 2021 16:41
by MrHobbes74
chrispazz wrote: ↑Saturday 30 January 2021 16:14
Same problem here....
I just updated to the latest beta and also got it now. I’m gonna check what had changed (nothing by me...).
Re: Tesla hardware module
Posted: Saturday 30 January 2021 22:16
by MrHobbes74
I found the issue. Tesla has (in the past few days) deprecated the main authentication API endpoint that is used in the tesla module in favor of auth.tesla.com. This means that the tesla authorisation in Domoticz no longer works once a new authorisation is required.
I will try to figure out how to adapt to the new authorisation method (but this is not my expertise so it may take a while....). Until then, the Tesla module will no longer work.
Re: Tesla hardware module
Posted: Sunday 31 January 2021 8:04
by dyter
Good news !
The plugin is inside the "domoticz" executable or elsewhere in a file ?
it would be better to have it as before in external python for test
Re: Tesla hardware module
Posted: Sunday 31 January 2021 11:55
by MrHobbes74
dyter wrote:Good news !
The plugin is inside the "domoticz" executable or elsewhere in a file ?
it would be better to have it as before in external python for test
It’s not so good news, the Tesla API community is still figuring out how to connect using the new authorization. It’s quite complex. Like I said, it may take a while.
The Tesla has never been a python plugin, I have created it from scratch in c++ as native module in domoticz. However I know someone else wrote an initial python module before I started but this has never been integrated and he stopped developing it.
Re: Tesla hardware module
Posted: Monday 01 February 2021 9:44
by dyter
Perhaps an alternative with mqtt docker ?
I found this bridge but need a powerwall:
https://github.com/terafin/mqtt-tesla-bridge
Re: Tesla hardware module
Posted: Tuesday 02 February 2021 9:22
by rgroothuis
Same connection problems on my side.
2021-02-02 09:21:08.596 Error: TeslaApi: Received token is zero length.
2021-02-02 09:21:10.701 Error: TeslaApi: Received token is zero length.
2021-02-02 09:21:12.767 Error: TeslaApi: Received token is zero length.
2021-02-02 09:21:15.284 Error: TeslaApi: Received token is zero length.
2021-02-02 09:21:17.402 Error: TeslaApi: Received token is zero length.
2021-02-02 09:21:19.508 Error: TeslaApi: Received token is zero length.
2021-02-02 09:21:21.610 Error: TeslaApi: Received token is zero length.
2021-02-02 09:21:23.777 Error: TeslaApi: Received token is zero length.
2021-02-02 09:21:25.846 Error: TeslaApi: Received token is zero length.
2021-02-02 09:21:27.897 Error: TeslaApi: Received token is zero length.
2021-02-02 09:21:29.983 Error: TeslaApi: Received token is zero length.
2021-02-02 09:21:32.119 Error: TeslaApi: Received token is zero length.
2021-02-02 09:21:34.269 Error: TeslaApi: Received token is zero length.
2021-02-02 09:21:36.372 Error: TeslaApi: Received token is zero length.
Re: Tesla hardware module
Posted: Tuesday 02 February 2021 11:07
by dyter
rgroothuis wrote: ↑Tuesday 02 February 2021 9:22
Same connection problems on my side.
OAuth method changed:
https://www.teslaapi.io/authentication/oauth
I don't know how make token key manualy in domoticz for work
Re: Tesla hardware module
Posted: Wednesday 03 February 2021 0:22
by hamster
MrHobbes74 wrote: ↑Sunday 31 January 2021 11:55
It’s not so good news, the Tesla API community is still figuring out how to connect using the new authorization. It’s quite complex. Like I said, it may take a while.
The Tesla has never been a python plugin, I have created it from scratch in c++ as native module in domoticz. However I know someone else wrote an initial python module before I started but this has never been integrated and he stopped developing it.
in the interim, could you add a box to manually input an API key? that could be a quick fix while you work out the login stuff..? or, if there are files somewhere i could manually edit to skip login and just use a key, i could do that too. i just dont know where it is since its not a separate plugin

Re: Tesla hardware module
Posted: Thursday 04 February 2021 11:28
by Guido
Besides Domoticz I'm also using Jedlix to connect to my Tesla. The same issue with connecting last weekend, but they've release a new version of their app which solved the issue and includes 2FA.
Perhaps they can share some insights?
Re: Tesla hardware module
Posted: Thursday 04 February 2021 13:05
by MrHobbes74
Guido wrote:Besides Domoticz I'm also using Jedlix to connect to my Tesla. The same issue with connecting last weekend, but they've release a new version of their app which solved the issue and includes 2FA.
Perhaps they can share some insights?
There are already several solutions online, I have found them. However there is no c++ version and making it is very complex in our Domoticz environment.
I’m thinking of other ways, I have found a python script that can generate the right tokens for the Tesla module.
But as you know, lockdown, kids and hence limited free time, it will take a while

. Unless there is another developer who wish to dive into it...
Sent from my iPhone using Tapatalk
Re: Tesla hardware module
Posted: Thursday 04 February 2021 23:51
by MrHobbes74
All, I have added the option to specify a API key (a.k.a. access token) in the tesla configuration.
This allows you to use another app to generate the API key / access token
(e.g. via
https://registration.teslatasks.com/generateTokens, or download a python script like
https://github.com/enode-engineering/te ... n/tesla.py which worked for me)
A token usually works for about a month.
That will give me some time to consider a solution, and meanwhile the tesla module can be used again.
The pull request into domoticz is active, hopefully integration is tomorrow.
Re: Tesla hardware module
Posted: Friday 05 February 2021 8:57
by MrHobbes74
MrHobbes74 wrote:All, I have added the option to specify a API key (a.k.a. access token) in the tesla configuration.
This allows you to use another app to generate the API key / access token
(e.g. via
https://registration.teslatasks.com/generateTokens, or download a python script like
https://github.com/enode-engineering/te ... n/tesla.py which worked for me)
A token usually works for about a month.
That will give me some time to consider a solution, and meanwhile the tesla module can be used again.
The pull request into domoticz is active, hopefully integration is tomorrow.
It’s integrated! If you download the latest beta, you can fill in a manual API key (access token).
Sent from my iPhone using Tapatalk
Re: Tesla hardware module
Posted: Friday 05 February 2021 11:41
by dyter
MrHobbes74 wrote: ↑Thursday 04 February 2021 23:51
All, I have added the option to specify a API key (a.k.a. access token) in the tesla configuration.
This allows you to use another app to generate the API key / access token
(e.g. via
https://registration.teslatasks.com/generateTokens, or download a python script like
https://github.com/enode-engineering/te ... n/tesla.py which worked for me)
A token usually works for about a month.
That will give me some time to consider a solution, and meanwhile the tesla module can be used again.
The pull request into domoticz is active, hopefully integration is tomorrow.
Good job !
I have a Jahadl compiled and there are no new version for my synology, I copy the new hardware folder and I show the new tesla plugin but not work again, I show Error: TeslaApi: Received token is zero length. Is there another folder to copy ?