Page 12 of 15
Re: Tesla hardware module
Posted: Friday 12 February 2021 15:27
by chrispazz
Yes, I have.....
Re: Tesla hardware module
Posted: Friday 12 February 2021 15:36
by MrHobbes74
chrispazz wrote:Yes, I have.....
Ok. Well I guess you need to play with the parameters. Otherwise I wouldn’t know it. I’ll try tonight to setup MFA to check.
Sent from my iPhone using Tapatalk
Re: Tesla hardware module
Posted: Friday 12 February 2021 15:51
by MrHobbes74
MrHobbes74 wrote:chrispazz wrote:Yes, I have.....
Ok. Well I guess you need to play with the parameters. Otherwise I wouldn’t know it. I’ll try tonight to setup MFA to check.
Sent from my iPhone using Tapatalk
Did you try to provide a backup passcode instead of the passcode? That will avoid the devices section.
Sent from my iPhone using Tapatalk
Re: Tesla hardware module
Posted: Friday 12 February 2021 15:56
by chrispazz
Tried:
TypeError: <lambda>() takes 1 positional argument but 2 were given

Re: Tesla hardware module
Posted: Friday 12 February 2021 16:00
by MrHobbes74
chrispazz wrote:Tried:
TypeError: <lambda>() takes 1 positional argument but 2 were given

Weird. I’ll have a look tonight. Maybe I’ll copy and adapt it to my own script
Sent from my iPhone using Tapatalk
Re: Tesla hardware module
Posted: Friday 12 February 2021 19:18
by dyter
If you have Teslamate, you can extract the token API with command:
docker exec -it teslamate_database_1 psql -U teslamate -d teslamate -c "select access from tokens;"
(teslamate_database_1 is the name of docker machine)
And on android, you can use MyTeslaCore to get a new API
Re: Tesla hardware module
Posted: Friday 12 February 2021 19:43
by chrispazz
YOU ARE MY HERO!
It works!
Re: Tesla hardware module
Posted: Saturday 27 February 2021 19:44
by dranreb38
Good morning all,
I now own a Tesla Model 3 LR 2021, but I cannot use Tesla hardware because I have an error log:
2021-02-27 19: 09: 35.685 Error: TeslaApi: Received token is zero length.
2021-02-27 19: 09: 35.686 Error: Tesla: Aborting due to too many failed authentication attempts (and prevent getting blocked)!
I enter my email address from my tesla account, with the password. (I do not use two-factor authentication) then my VIN. yet my password is correct. I also use teslamate which works. Thank you for your help
Domoticz 2020.2 (build 12743) on Raspberry Raspbian GNU/Linux 10 (buster)
Re: Tesla hardware module
Posted: Saturday 27 February 2021 21:07
by MrHobbes74
dranreb38 wrote:Good morning all,
I now own a Tesla Model 3 LR 2021, but I cannot use Tesla hardware because I have an error log:
2021-02-27 19: 09: 35.685 Error: TeslaApi: Received token is zero length.
2021-02-27 19: 09: 35.686 Error: Tesla: Aborting due to too many failed authentication attempts (and prevent getting blocked)!
I enter my email address from my tesla account, with the password. (I do not use two-factor authentication) then my VIN. yet my password is correct. I also use teslamate which works. Thank you for your help
Domoticz 2020.2 (build 12743) on Raspberry Raspbian GNU/Linux 10 (buster)
Hi,
Tesla changed the authorization procedure.
You need to update to the latest beta version, there you can add a self generated token. See also earlier in this forum.
Sent from my iPhone using Tapatalk
Re: Tesla hardware module
Posted: Friday 19 March 2021 18:11
by JPSke
@MrHobbes74
In the car you can adjust the charge rate. Any chance of making that possible in Domoticz?
Re: Tesla hardware module
Posted: Thursday 25 March 2021 3:14
by hamster
Hey @MrHobbes74, while you work on getting the new API integrated, would it be difficult to change the "state" of the sensor to something like "token expired" when a manually entered token needs to be refreshed?
Re: Tesla hardware module
Posted: Thursday 25 March 2021 9:06
by MrHobbes74
hamster wrote: ↑Thursday 25 March 2021 3:14
Hey @MrHobbes74, while you work on getting the new API integrated, would it be difficult to change the "state" of the sensor to something like "token expired" when a manually entered token needs to be refreshed?
Good point! I’m not working on getting the API integrated at the moment due to lack of time. But this I can do, I think it’s a good idea. Keep you posted!
Re: Tesla hardware module
Posted: Monday 29 March 2021 0:26
by JeandelaPierre
MrHobbes74 wrote: ↑Friday 05 February 2021 8:57
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
How do I install the new hardware module ... sorry I'm quite a newbie on this. I have the toke n zero length issue as we!l.... But i can't find the how to update the hardware module anywhere ....
Thnx in advance mrHobbes...
Re: Tesla hardware module
Posted: Monday 29 March 2021 0:37
by hamster
you have to update to the latest domoticz beta
Re: Tesla hardware module
Posted: Friday 02 April 2021 20:48
by PVuser
Using
https://abetterrouteplanner.com, the login is always available. Also they have some additional Values. I really don't know how they do it, but perhaps they are open for information. SmartHome is a really other section

Re: Tesla hardware module
Posted: Tuesday 06 April 2021 17:46
by JeandelaPierre
hamster wrote: ↑Monday 29 March 2021 0:37
you have to update to the latest domoticz beta
thnx! did that onze and my database crashed ... and had to reinstall everything all over again .... I'm going to look for the right procedure. Thnx!
grtz,
John
Re: Tesla hardware module
Posted: Saturday 24 April 2021 15:13
by mjvh
dyter wrote: ↑Friday 12 February 2021 19:18
If you have Teslamate, you can extract the token API with command:
docker exec -it teslamate_database_1 psql -U teslamate -d teslamate -c "select access from tokens;"
(teslamate_database_1 is the name of docker machine)
And on android, you can use MyTeslaCore to get a new API
Hi all,
im new here and running EVVehicle for my Tesla S and installed Teslamate to extract a token to use EVVehicle.
Can anyone tell me step-by-step how to extract my token from Teslamate? Tnx all!
Re: Tesla hardware module
Posted: Thursday 06 May 2021 20:20
by dyter
This is the only one step !
Re: Tesla hardware module
Posted: Sunday 08 August 2021 20:12
by hamster
@MrHobbes74 would you be able to provide a quick example on how to force an Active update via URL? was thinking it would be nice to force an update when i got home from my phone via Tasker/cURL/similar, but not sure where to start. checked wiki but didnt see any example commands yet. thanks!
Re: Tesla hardware module
Posted: Monday 24 January 2022 18:22
by JPSke
Is there someone still involved in maintenance for this plugin?
I am noticing some strange behaviour lately: although everything seems normal, I get these weird messages in the log:
2022-01-24 16:24:01.013 Status: Tesla: Executing command: Get Location state
2022-01-24 16:24:02.866 Status: Tesla: Executing command: Get Charge state
2022-01-24 16:24:04.706 Status: Tesla: Executing command: Start charging
2022-01-24 16:24:05.206 Error: Tesla: Timeout requesting Start charging. Will retry.
2022-01-24 16:24:10.509 Status: Tesla: Executing command: Start charging
2022-01-24 16:24:10.961 Error: Tesla: Timeout requesting Start charging. Will retry.
2022-01-24 16:24:16.326 Status: Tesla: Executing command: Start charging
2022-01-24 16:24:16.871 Error: Tesla: Timeout requesting Start charging. Will retry.
and:
Status: Tesla: Executing command: Start charging
Error: Tesla: Multiple tries requesting Start charging. Assuming car asleep.
Thanks in advance for any help.
JP