Tesla hardware module

In this subforum you can show projects you have made, or you are busy with. Please create your own topic.

Moderator: leecollings

User avatar
dyter
Posts: 40
Joined: Thursday 08 February 2018 15:48
Target OS: NAS (Synology & others)
Domoticz version: 8841
Location: Lyon
Contact:

Re: Tesla hardware module

Post by dyter »

API doesn't work now, I have message:
Error: Tesla: Aborting due to too many failed authentication attempts (and prevent getting blocked)!
Domoticz v2024.1 on Synology Docker host, RFLink, ESPEasy wemos D1, Ecodevices, relays x8, dahua doorbell, reolink cameras ....
MrHobbes74
Posts: 115
Joined: Sunday 19 January 2020 22:29
Target OS: Raspberry Pi / ODroid
Domoticz version: latest B
Location: Netherlands
Contact:

Re: Tesla hardware module

Post 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..
MrHobbes74
Posts: 115
Joined: Sunday 19 January 2020 22:29
Target OS: Raspberry Pi / ODroid
Domoticz version: latest B
Location: Netherlands
Contact:

Re: Tesla hardware module

Post 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.
User avatar
dyter
Posts: 40
Joined: Thursday 08 February 2018 15:48
Target OS: NAS (Synology & others)
Domoticz version: 8841
Location: Lyon
Contact:

Re: Tesla hardware module

Post 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)!
Domoticz v2024.1 on Synology Docker host, RFLink, ESPEasy wemos D1, Ecodevices, relays x8, dahua doorbell, reolink cameras ....
MrHobbes74
Posts: 115
Joined: Sunday 19 January 2020 22:29
Target OS: Raspberry Pi / ODroid
Domoticz version: latest B
Location: Netherlands
Contact:

Re: Tesla hardware module

Post 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?
User avatar
dyter
Posts: 40
Joined: Thursday 08 February 2018 15:48
Target OS: NAS (Synology & others)
Domoticz version: 8841
Location: Lyon
Contact:

Re: Tesla hardware module

Post 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
Domoticz v2024.1 on Synology Docker host, RFLink, ESPEasy wemos D1, Ecodevices, relays x8, dahua doorbell, reolink cameras ....
chrispazz
Posts: 81
Joined: Friday 08 July 2016 10:38
Target OS: -
Domoticz version:
Contact:

Re: Tesla hardware module

Post by chrispazz »

Same problem here....
MrHobbes74
Posts: 115
Joined: Sunday 19 January 2020 22:29
Target OS: Raspberry Pi / ODroid
Domoticz version: latest B
Location: Netherlands
Contact:

Re: Tesla hardware module

Post 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...).
MrHobbes74
Posts: 115
Joined: Sunday 19 January 2020 22:29
Target OS: Raspberry Pi / ODroid
Domoticz version: latest B
Location: Netherlands
Contact:

Re: Tesla hardware module

Post 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.
User avatar
dyter
Posts: 40
Joined: Thursday 08 February 2018 15:48
Target OS: NAS (Synology & others)
Domoticz version: 8841
Location: Lyon
Contact:

Re: Tesla hardware module

Post 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
Domoticz v2024.1 on Synology Docker host, RFLink, ESPEasy wemos D1, Ecodevices, relays x8, dahua doorbell, reolink cameras ....
MrHobbes74
Posts: 115
Joined: Sunday 19 January 2020 22:29
Target OS: Raspberry Pi / ODroid
Domoticz version: latest B
Location: Netherlands
Contact:

Re: Tesla hardware module

Post 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.
User avatar
dyter
Posts: 40
Joined: Thursday 08 February 2018 15:48
Target OS: NAS (Synology & others)
Domoticz version: 8841
Location: Lyon
Contact:

Re: Tesla hardware module

Post by dyter »

Perhaps an alternative with mqtt docker ?

I found this bridge but need a powerwall: https://github.com/terafin/mqtt-tesla-bridge
Domoticz v2024.1 on Synology Docker host, RFLink, ESPEasy wemos D1, Ecodevices, relays x8, dahua doorbell, reolink cameras ....
rgroothuis
Posts: 347
Joined: Friday 03 April 2015 17:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Tesla hardware module

Post 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.
User avatar
dyter
Posts: 40
Joined: Thursday 08 February 2018 15:48
Target OS: NAS (Synology & others)
Domoticz version: 8841
Location: Lyon
Contact:

Re: Tesla hardware module

Post 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
Domoticz v2024.1 on Synology Docker host, RFLink, ESPEasy wemos D1, Ecodevices, relays x8, dahua doorbell, reolink cameras ....
hamster
Posts: 42
Joined: Friday 28 April 2017 19:11
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: USA
Contact:

Re: Tesla hardware module

Post 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 :D
Guido
Posts: 1
Joined: Thursday 04 February 2021 11:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Tesla hardware module

Post 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?
MrHobbes74
Posts: 115
Joined: Sunday 19 January 2020 22:29
Target OS: Raspberry Pi / ODroid
Domoticz version: latest B
Location: Netherlands
Contact:

Re: Tesla hardware module

Post 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 Image. Unless there is another developer who wish to dive into it...


Sent from my iPhone using Tapatalk
MrHobbes74
Posts: 115
Joined: Sunday 19 January 2020 22:29
Target OS: Raspberry Pi / ODroid
Domoticz version: latest B
Location: Netherlands
Contact:

Re: Tesla hardware module

Post 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.
MrHobbes74
Posts: 115
Joined: Sunday 19 January 2020 22:29
Target OS: Raspberry Pi / ODroid
Domoticz version: latest B
Location: Netherlands
Contact:

Re: Tesla hardware module

Post 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
User avatar
dyter
Posts: 40
Joined: Thursday 08 February 2018 15:48
Target OS: NAS (Synology & others)
Domoticz version: 8841
Location: Lyon
Contact:

Re: Tesla hardware module

Post 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 ?
Domoticz v2024.1 on Synology Docker host, RFLink, ESPEasy wemos D1, Ecodevices, relays x8, dahua doorbell, reolink cameras ....
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest