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 ?
Do you see the manual API key entry in the Tesla hardware configuration?
dyter wrote: ↑Friday 05 February 2021 11:41
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 ?
You need the latest build (12917) for the fixed Tesla hardware module and there is no way you can workaround that with an earlier build. Now that @Jadahl stopped building new Synology packages you will have to wait until someone else will take over that role.
Other options are to move to another platform or to docker on Synology for your domoticz system.
MrHobbes74 wrote: ↑Friday 05 February 2021 13:10
Yes I show the new API case but I think a file is missing somewhere. I try with a docker version for test
File missing? You need to fill in the API key yourself. There is no other file
Sent from my iPhone using Tapatalk
[/quote]
I move hardware folder binaries with winSCP to my synology folder !
MrHobbes74 wrote: ↑Friday 05 February 2021 13:10
Yes I show the new API case but I think a file is missing somewhere. I try with a docker version for test
File missing? You need to fill in the API key yourself. There is no other file
Sent from my iPhone using Tapatalk
I move hardware folder binaries with winSCP to my synology folder ![/quote]
You also need the new Domoticz executable else it won’t work.
@ MrHobbes74: is there any chance to incorporate the API key box in the release version of domoticz? I have updated to the beta version get a key from Tesla and now the Tesla plugin is OK, but some other functions are not working anymore. Or sometimes the browser displays an empty screen and must be shut down and restarted to get it working again. Thanks in advance!
MrHobbes74 wrote: ↑Friday 05 February 2021 12:34
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 wrote: ↑Friday 05 February 2021 12:34
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.
Do you know how to terminate the API generated by this site ?
If you want to be sure of that, change your password . But I can’t imagine it. I have never used Teslatasks. However, I also notice my Tesla doesn’t sleep anymore, already for a while. I haven’t figure out the reason yet.
MrHobbes74 wrote: ↑Monday 08 February 2021 19:14
If you want to be sure of that, change your password . But I can’t imagine it. I have never used Teslatasks. However, I also notice my Tesla doesn’t sleep anymore, already for a while. I haven’t figure out the reason yet.
Sent from my iPhone using Tapatalk
I changed my tesla account password but API work always in domoticz
MrHobbes74 wrote: ↑Monday 08 February 2021 19:14
If you want to be sure of that, change your password . But I can’t imagine it. I have never used Teslatasks. However, I also notice my Tesla doesn’t sleep anymore, already for a while. I haven’t figure out the reason yet.
Sent from my iPhone using Tapatalk
I changed my tesla account password but API work always in domoticz
cr1cr1 wrote: ↑Tuesday 12 May 2020 18:14
Hi @MrHobbes74,
Well done for that Tesla module, congrats!
I just migrated my Domoticz Pi server from a good old Pi 2 to a Pï 4 running Buster & Domoticz 2020.2 and I discovered it.
I have a couple of Questions before configuring the module :
- Is there a way to just enter the Tesla token and not the full user id / pwd ?
- I have installed the excellent TeslaMate docker on the same Pi 4 server. It runs great and provides awesome reports. Would it be possible to integrate TeslaMate date into Domoticz using MQTT as an option? See: https://docs.teslamate.org/docs/integrations/mqtt
Regarding your questions: currently you can only enter the user name and password, just like in the app. If you are afraid of security, please check the code in GitHub .
I think the purpose of Teslamate exceeds the purpose of the domoticz module. The domoticz module is meant for automation only (e.g. start/stop charging based on various conditions, warning when the car is open etc, warming or de freezing the car when you get up) just like the other sensors and switches in the house. I do not intend to make it a full tracking system for the Tesla. That’s what apps like teslamate is for.
I don’t know about mqtt, it may be possible but it’s not my expertise.
The streaming interface of the Tesla therefor also is not needed. Polling as I implemented in domoticz also doesn’t wake up the car so there is no issue in that regard.
I tested teslamate, and geofence is a very fast and good solution for automation of doors, house gate ...
MQTT command is "teslamate/cars/$car_id/geofence" but need to be integrate in json format of domoticz