Page 4 of 15
Re: New: Tesla hardware module
Posted: Monday 23 March 2020 13:25
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
Re: New: Tesla hardware module
Posted: Monday 23 March 2020 13:46
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
Re: New: Tesla hardware module
Posted: Monday 23 March 2020 13:46
by peterpijpelink
yes I did, and the VIN number, no errors, all seems to work, but I do not see devices show up...
Re: New: Tesla hardware module
Posted: Monday 23 March 2020 13:48
by MrHobbes74
Can you show me the logging filtered for Tesla (and remove private info)?
Re: New: Tesla hardware module
Posted: Monday 23 March 2020 13:50
by MrHobbes74
Devices will show up in your device list. You have to enable them yourself.
Re: New: Tesla hardware module
Posted: Monday 23 March 2020 14:13
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.
Re: New: Tesla hardware module
Posted: Monday 23 March 2020 14:38
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...
Re: New: Tesla hardware module
Posted: Monday 23 March 2020 14:44
by peterpijpelink
works! allow new sensors did the trick...
Re: New: Tesla hardware module
Posted: Monday 23 March 2020 14:52
by MrHobbes74
ah
Great to hear!
Re: New: Tesla hardware module
Posted: Monday 23 March 2020 14:52
by MrHobbes74
By the way i suggest to change the interval from 10 to 20 minutes
Re: New: Tesla hardware module
Posted: Monday 23 March 2020 14:55
by peterpijpelink
yes will do, 30mins is enough, thanks
Re: New: Tesla hardware module
Posted: Monday 23 March 2020 22:27
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?
Re: New: Tesla hardware module
Posted: Monday 23 March 2020 23:06
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.
Re: New: Tesla hardware module
Posted: Monday 23 March 2020 23:12
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 (88.77 KiB) Viewed 5041 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?
Re: New: Tesla hardware module
Posted: Monday 23 March 2020 23:16
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?
Re: New: Tesla hardware module
Posted: Monday 23 March 2020 23:18
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.
Re: New: Tesla hardware module
Posted: Monday 23 March 2020 23:20
by MrHobbes74
Location can be set in domoticz: setup - settings - system
Re: New: Tesla hardware module
Posted: Tuesday 24 March 2020 7:38
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).
Re: Tesla hardware module
Posted: Wednesday 25 March 2020 22:57
by MrHobbes74
I have created a WIKI for the standard questions:
https://www.domoticz.com/wiki/EVehicles
Re: Tesla hardware module
Posted: Friday 27 March 2020 11:07
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