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

peterpijpelink
Posts: 10
Joined: Sunday 22 February 2015 19:09
Target OS: OS X
Domoticz version:
Contact:

Re: New: Tesla hardware module

Post by peterpijpelink »

okay so, eh maybe stupid question, I should see devices right? When I add them, no devices show up...

Domoticz 2020.1 (build 11835) on ubuntu 18.04
MrHobbes74
Posts: 115
Joined: Sunday 19 January 2020 22:29
Target OS: Raspberry Pi / ODroid
Domoticz version: latest B
Location: Netherlands
Contact:

Re: New: Tesla hardware module

Post by MrHobbes74 »

I assume you filled in your email and password in the configuration? And VIN number? Check the log to see if you get Tesla errors
Last edited by MrHobbes74 on Monday 23 March 2020 13:47, edited 1 time in total.
peterpijpelink
Posts: 10
Joined: Sunday 22 February 2015 19:09
Target OS: OS X
Domoticz version:
Contact:

Re: New: Tesla hardware module

Post by peterpijpelink »

yes I did, and the VIN number, no errors, all seems to work, but I do not see devices show up...
MrHobbes74
Posts: 115
Joined: Sunday 19 January 2020 22:29
Target OS: Raspberry Pi / ODroid
Domoticz version: latest B
Location: Netherlands
Contact:

Re: New: Tesla hardware module

Post by MrHobbes74 »

Can you show me the logging filtered for Tesla (and remove private info)?
MrHobbes74
Posts: 115
Joined: Sunday 19 January 2020 22:29
Target OS: Raspberry Pi / ODroid
Domoticz version: latest B
Location: Netherlands
Contact:

Re: New: Tesla hardware module

Post by MrHobbes74 »

Devices will show up in your device list. You have to enable them yourself.
MrHobbes74
Posts: 115
Joined: Sunday 19 January 2020 22:29
Target OS: Raspberry Pi / ODroid
Domoticz version: latest B
Location: Netherlands
Contact:

Re: New: Tesla hardware module

Post by MrHobbes74 »

I just removed and re-added my tesla. Devices show up normally in the device list. But to add them to domoticz switches/temperature and utilities tab, you need add them first, because by default they are set to unused in the device list.
peterpijpelink
Posts: 10
Joined: Sunday 22 February 2015 19:09
Target OS: OS X
Domoticz version:
Contact:

Re: New: Tesla hardware module

Post by peterpijpelink »

2020-03-23 14:34:26.740 Status: Tesla: Worker started...
2020-03-23 14:34:26.739 Error: : Warning: default interval of 10 minutes will prevent the car to sleep.
2020-03-23 14:34:27.740 TeslaApi: Attempting login.
2020-03-23 14:34:29.810 TeslaApi: Car found in account: VIN NUMBER NAME XYZ
2020-03-23 14:34:29.810 TeslaApi: Login successful.
2020-03-23 14:34:30.811 Status: Tesla: Executing command: Get Awake state
2020-03-23 14:34:31.664 Tesla: Car is awake
2020-03-23 14:34:32.665 Status: Tesla: Executing command: Get Awake state
2020-03-23 14:34:33.482 Tesla: Car is awake
2020-03-23 14:34:33.482 Status: Tesla: Executing command: Get All states
2020-03-23 14:34:34.591 Tesla: Location: XY Speed: 0 Home: false

No devices show up...
peterpijpelink
Posts: 10
Joined: Sunday 22 February 2015 19:09
Target OS: OS X
Domoticz version:
Contact:

Re: New: Tesla hardware module

Post by peterpijpelink »

works! allow new sensors did the trick...
MrHobbes74
Posts: 115
Joined: Sunday 19 January 2020 22:29
Target OS: Raspberry Pi / ODroid
Domoticz version: latest B
Location: Netherlands
Contact:

Re: New: Tesla hardware module

Post by MrHobbes74 »

ah :-D Great to hear!
MrHobbes74
Posts: 115
Joined: Sunday 19 January 2020 22:29
Target OS: Raspberry Pi / ODroid
Domoticz version: latest B
Location: Netherlands
Contact:

Re: New: Tesla hardware module

Post by MrHobbes74 »

By the way i suggest to change the interval from 10 to 20 minutes
peterpijpelink
Posts: 10
Joined: Sunday 22 February 2015 19:09
Target OS: OS X
Domoticz version:
Contact:

Re: New: Tesla hardware module

Post by peterpijpelink »

yes will do, 30mins is enough, thanks
rgroothuis
Posts: 347
Joined: Friday 03 April 2015 17:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New: Tesla hardware module

Post by rgroothuis »

I just successfully added the "Tesla Model S/3/X" device in my Domoticz, vin/loginname/password entered into the configuration and everything seems to work.
2020-03-23 22:09:49.140 Status: Tesla: Worker started...
2020-03-23 22:09:49.140 Error: : Warning: default interval of 10 minutes will prevent the car to sleep.
2020-03-23 22:09:53.810 Status: Tesla: Executing command: Get Awake state
2020-03-23 22:10:52.902 Status: Tesla: Executing command: Get Awake state
2020-03-23 22:11:54.027 Status: Tesla: Executing command: Get Awake state
2020-03-23 22:12:55.096 Status: Tesla: Executing command: Get Awake state
2020-03-23 22:13:56.138 Status: Tesla: Executing command: Get Awake state
2020-03-23 22:14:57.232 Status: Tesla: Executing command: Get Awake state
2020-03-23 22:15:58.499 Status: Tesla: Executing command: Get Awake state
2020-03-23 22:16:59.577 Status: Tesla: Executing command: Get Awake state
How can I use this new module in Domoticz? What can I do with this feature? How can I control my Tesla? Where can I find more info?
MrHobbes74
Posts: 115
Joined: Sunday 19 January 2020 22:29
Target OS: Raspberry Pi / ODroid
Domoticz version: latest B
Location: Netherlands
Contact:

Re: New: Tesla hardware module

Post by MrHobbes74 »

You can program domoticz to start charging after 9 (cheaper electricity) or to warm up the car in the morning before you leave for work. Or you can charge the car when it’s sunny and you have solar panels. There are many ways. You can keep graphs of the battery usage during the days weeks years. Track its sleeping behavior. Send you a warning if the battery is at certain level. Be creative! The module creates 7 devices, 4 for monitoring, 3 for controlling.
Last edited by MrHobbes74 on Monday 23 March 2020 23:13, edited 1 time in total.
rgroothuis
Posts: 347
Joined: Friday 03 April 2015 17:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New: Tesla hardware module

Post by rgroothuis »

MrHobbes74 wrote: Monday 23 March 2020 23:06 You can program domoticz to start charging after 9 (cheaper electricity) or to warm up the car in the morning before you leave for work. Or you can charge the car when it’s sunny and you have solar panels. There are many ways. You can keep graphs of the battery usage during the days weeks years. The module creates 7 devices, 4 for monitoring, 3 for controlling.
Thanks for the quick response. When I checked the Device page again I indeed now see the extra devices you are referring to. It makes more sense now. Thanks.
Screenshot 2020-03-23 at 23.10.13.png
Screenshot 2020-03-23 at 23.10.13.png (88.77 KiB) Viewed 5034 times
Do you have example scripts available on how to program (in Lua I assume) the Tesla? For example to enable charging after 21.00 or when at 7.00 AM the temperature is below a certain level the heating is automatically enabled?
rgroothuis
Posts: 347
Joined: Friday 03 April 2015 17:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New: Tesla hardware module

Post by rgroothuis »

Another question, based on what is determined when the car is "At home"?
2020-03-23 23:14:38.631 Error: Tesla: Car not home. No commands allowed.
Now I get the error message that the Car is not at home, fur sure the car is parked in front of my house. Is this a config setting somewhere?
MrHobbes74
Posts: 115
Joined: Sunday 19 January 2020 22:29
Target OS: Raspberry Pi / ODroid
Domoticz version: latest B
Location: Netherlands
Contact:

Re: New: Tesla hardware module

Post by MrHobbes74 »

No, I don’t have those yet. I’ve been working on the module, and now it’s rolled out, so I can start thinking of scripts. I’m planning to write a wiki with examples, but didn’t get the time yet to do it. I’m actually using dzVents for my scripting. If I may give one advise: put the default timeout to 20 minutes. That will enable the car to fall asleep. And to be able to control the charging, the car must be home, so you need to set it’s parked location (found in the logging) in the domoticz location.
MrHobbes74
Posts: 115
Joined: Sunday 19 January 2020 22:29
Target OS: Raspberry Pi / ODroid
Domoticz version: latest B
Location: Netherlands
Contact:

Re: New: Tesla hardware module

Post by MrHobbes74 »

Location can be set in domoticz: setup - settings - system
rgroothuis
Posts: 347
Joined: Friday 03 April 2015 17:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New: Tesla hardware module

Post by rgroothuis »

Excellent, thanks for your feedback. Your tips are working perfectly. The home issue has been resolved, indeed the location in the Domotics settings was not aligned with the Tesla home (in the car) configuration).
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 have created a WIKI for the standard questions:
https://www.domoticz.com/wiki/EVehicles
oliviers
Posts: 73
Joined: Wednesday 16 September 2015 22:10
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Paris area, France
Contact:

Re: Tesla hardware module

Post by oliviers »

Wonderful !
Thanks to all those who worked on this !
Just two suggestions for future enhancements:
- Allow to set the desired charge limit
- Allow to set the desired internal temperature
Paris area
Raspberry Pi 4 - RFXComm 433 - IrTrans - Zwave
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests