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

chrispazz
Posts: 81
Joined: Friday 08 July 2016 10:38
Target OS: -
Domoticz version:
Contact:

Re: Tesla hardware module

Post by chrispazz »

Yes, I have.....
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: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
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:
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
chrispazz
Posts: 81
Joined: Friday 08 July 2016 10:38
Target OS: -
Domoticz version:
Contact:

Re: Tesla hardware module

Post by chrispazz »

Tried:

TypeError: <lambda>() takes 1 positional argument but 2 were given

:(
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: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 Image


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 »

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
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 »

YOU ARE MY HERO!

:D :D :D

It works!
dranreb38
Posts: 1
Joined: Saturday 27 February 2021 19:17
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Tesla hardware module

Post 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)
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 »

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
JPSke
Posts: 32
Joined: Wednesday 11 November 2020 11:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Sint-Gillis-Waas, Belgium
Contact:

Re: Tesla hardware module

Post by JPSke »

@MrHobbes74
In the car you can adjust the charge rate. Any chance of making that possible in Domoticz?
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 »

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?
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 »

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!
JeandelaPierre
Posts: 2
Joined: Monday 21 December 2020 14:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Tesla hardware module

Post 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...
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 »

you have to update to the latest domoticz beta
PVuser
Posts: 33
Joined: Monday 30 March 2020 19:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: DE
Contact:

Re: Tesla hardware module

Post 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 ;-)
JeandelaPierre
Posts: 2
Joined: Monday 21 December 2020 14:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Tesla hardware module

Post 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
mjvh
Posts: 1
Joined: Saturday 24 April 2021 15:08
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Tesla hardware module

Post 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!
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 »

This is the only one step !
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 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!
JPSke
Posts: 32
Joined: Wednesday 11 November 2020 11:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Sint-Gillis-Waas, Belgium
Contact:

Re: Tesla hardware module

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest