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

meel4chris
Posts: 41
Joined: Monday 03 October 2016 15:11
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: New: Tesla hardware module

Post by meel4chris »

MrHobbes74 wrote: Thursday 20 February 2020 23:16
meel4chris wrote: Thursday 20 February 2020 23:10
MrHobbes74 wrote: Thursday 20 February 2020 23:07 I use the token/bearer code. The tesla falls asleep quite fast. And even when not asleep, it is slow. In the app this is also the case.
If all switches are off (you are not heating/charging) the polling is once per 10 minutes. I think that doesn't cost much battery.
If you are charging, every minute the values are requested.
ok. any particular reason why it only works when the car is at home?
Because I don't feel safe if domoticz is accidentally sending commands to my car when I'm driving....but I could replace it with 'speed is 0' :lol:
haha, better not while driving indeed :lol:
autopilot already gives us enough surprises already :lol:
meel4chris
Posts: 41
Joined: Monday 03 October 2016 15:11
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: New: Tesla hardware module

Post by meel4chris »

but you did a great job! would really love to see it in the next beta.
changing the at home check to speed 0 would be a good one indeed. and maybe parameterizing the polling interval?
I know the sentry mode costs a lot of energy if enabled and parked on the airport for a few days ;)
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 »

Thanks! I'll have a look at the new requirements ;-) For now, a good night!
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 more patching needed, the next beta contains the Tesla module!
meel4chris
Posts: 41
Joined: Monday 03 October 2016 15:11
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: New: Tesla hardware module

Post by meel4chris »

Great, installed and working!
sbaloo
Posts: 10
Joined: Wednesday 15 February 2017 18:20
Target OS: -
Domoticz version:
Contact:

Re: New: Tesla hardware module

Post by sbaloo »

Do you plan to manage sleep mode.
Because it seems that the tesla module stop the sleep process of the car.

Thanks for you work
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 »

Right now, when the car is not charging, the car is polled for information every 10 minutes. So it wakes up the car every 10 minutes. In between, the car sleeps. When it is charging (only when at home) this changes to an update every minute. I plan to make this configurable, depending on users needs. What is your observation?
sbaloo
Posts: 10
Joined: Wednesday 15 February 2017 18:20
Target OS: -
Domoticz version:
Contact:

Re: New: Tesla hardware module

Post by sbaloo »

When the car is sleeping, it will be great to not wake up it to read infos that should be the same.
If you click on the climate or defrost of course you need to wake up the car.
I'm not charging my car at home because i can charge it at work for less money than at my home.
I know that teslafi is doing something to not wake up the car when it's sleeping.
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 »

Fair enough! But if you don’t charge at home, using the Tesla module has not much use anyway 😉. Except for warming up the car automatically in the morning. But in a next update I will allow the user to choose the update frequency, or 0 for no update. 0 of course will mean you cannot monitor the battery (e.g if you want to charge only when the battery is lower than a certain percentage).
sbaloo
Posts: 10
Joined: Wednesday 15 February 2017 18:20
Target OS: -
Domoticz version:
Contact:

Re: New: Tesla hardware module

Post by sbaloo »

the tesla module could be helpful also to see the battery graph. So yes it can be helpful.
For me the best for the update frequency of course is to configure the value, but also as i said to investigate in detecting if the car is sleeping and to let it sleep. If you are interesting i could try to see how teslafi has done
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 »

The only command to figure out if the car is sleeping or not, is the wake up command...the Tesla app also always wakes up the car. There is no other way that I can find from the Tesla api (described in https://tesla-api.timdorr.com/). So there is no way to check if the car is sleeping and then leave it alone....the check wakes up the car. But if you know a way, let me know!
sbaloo
Posts: 10
Joined: Wednesday 15 February 2017 18:20
Target OS: -
Domoticz version:
Contact:

Re: New: Tesla hardware module

Post by sbaloo »

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 »

Interesting! I will definitely investigate this and see what I can do about it. Thanks!
sbaloo
Posts: 10
Joined: Wednesday 15 February 2017 18:20
Target OS: -
Domoticz version:
Contact:

Re: New: Tesla hardware module

Post by sbaloo »

You're welcome take me posted, I will test it. For now i disable the module when i want that my car sleeps.
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 »

In the latest beta (merged today) I reduced the number of api calls with less wake-up calls, so the response is much faster. I also added two options to the Tesla hardware: a default poll interval, and a poll interval for when charging at home. I have not yet implemented a keep asleep function, but it’s on the list!
sbaloo
Posts: 10
Joined: Wednesday 15 February 2017 18:20
Target OS: -
Domoticz version:
Contact:

Re: New: Tesla hardware module

Post by sbaloo »

MrHobbes74 wrote: Thursday 27 February 2020 17:55 In the latest beta (merged today) I reduced the number of api calls with less wake-up calls, so the response is much faster. I also added two options to the Tesla hardware: a default poll interval, and a poll interval for when charging at home. I have not yet implemented a keep asleep function, but it’s on the list!
Thanks
meel4chris
Posts: 41
Joined: Monday 03 October 2016 15:11
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: New: Tesla hardware module

Post by meel4chris »

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

The new stable release introduces a new feature in the Tesla hardware. There is now an option to avoid the car to wake up in case it sleeps. This is turned on by default. The hardware also detects an occasional wake up during sleep to retrieve updates.

This will avoid battery drain! It requires a default update frequency of no less than 20 minutes, else the car will not go to sleep at all. Note: commands via the switches sent to the car will always wake up the car, no matter the setting.

Happy driving!
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 »

hi, great, does this also work 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 »

If domoticz work on Ubuntu 18.04, then of course it works 😊
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest