# \[APP\]\[Pro\] Tesla Car & Energy - Zero emissions. Zero compromises

**URL:** https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824
**Category:** Apps
**Tags:** app, homey-pro
**Created:** [January 11, 2024, 5:15pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824 "2024-01-11T17:15:52Z")
**Posts on this page:** 20
**Page:** 26

<div class="post-metadata">

### Author: ![MrDutchfighter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mrdutchfighter/32/4295_2.png) [@MrDutchfighter](https://community.homey.app/u/MrDutchfighter)
#### Post date: [October 7, 2024, 3:36pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/508 "2024-10-07T15:36:13Z")

</div>

This would be awesome! 🙂

I created an issue on GitHub as well, also with a link to TeslaMate that currently has this information available. Couldn’t find any information in the Tesla Documentation though… but it probably is somewhere.

> <https://github.com/RonnyWinkler/homey.tesla/issues/2>
>
> Hi there,
> 
> I just installed the Tesla app and it has a lot of features and tri…ggers. However, the one I'm looking for is not yet in their and I think very useful to have as it unleashes a lot of power with regards to notifications.
> 
> So what I want to do is when I leave work (and locations depend, because working at different locations all the time) and enter in my navigation "Home", I want to sent a push notification to my wife with my ETA. However these details are not available, because I can't read the navigational data. It should be available somewhere, but I couldn't find the tesla API documentation.
> 
> If it helps, they implemented this a couple of months ago in the TeslaMate app: https://github.com/teslamate-org/teslamate/discussions/3018. So maybe you can find where they got the data from and add this as available data to Homey as well! :)
> 
> Just having the navigation data available, name, time & distance to destination available is enough!
> 
> Thanks!

---

<div class="post-metadata">

### Author: ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)
#### Post date: [October 8, 2024, 3:42pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/509 "2024-10-08T15:42:15Z")

</div>

> [@RonnyW](#):
>
> Start/stop charging seems to be in the carging commands limit (5x/day).  
> Changing the current should be included in the stabdard commands (50x/day). So it’s better to set current to a low value (or 0A) instead of stopping/starting charging.

**For details please check the API docs which command count to which rate limit.**

See API docs:

[https://developer.tesla.com/docs/fleet-api/endpoints/vehicle-commands](https://developer.tesla.com/docs/fleet-api/endpoints/vehicle-commands)

Example:  
Even really simple commands like open charge port is a charge command now…

 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/e/2e7a7a16f44ecbeb3bce2bce891138d9bc29b54c.png)

But set charge amps ist still a standard command.

 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/7/b7e1983613ec46da8de386c81a1b0f02d62e6e1b.png)

**Current charge commands are:**

- open/close charge port
- start/stop charge
- schedule charging
- set charge limit

---

<div class="post-metadata">

### Author: ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)
#### Post date: [October 8, 2024, 6:55pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/510 "2024-10-08T18:55:27Z")

</div>

New **test version 1.9.6** :

- added **counter for charge commands** to car device (capability and flow trigger)
- added **charge command rate limit details** in car device settings

This update splits the commands into standard commands and charge commands.  
There is now a counter and flow trigger for both.  
And in car device settings the rate limit is shown for both, too.  
Reason: You can hit a rate limti for charge commands while other commands are still possible.  
If you get rate limit errors, you can now check in device settings what limit is affected and how many commands were sent.

I couln’t test finally. So if you get a rate limit, please check if the device settings is showing the details and report not. Thanks.

---

<div class="post-metadata">

### Author: ![copiis](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/copiis/32/171978_2.png) [@copiis](https://community.homey.app/u/copiis)
#### Post date: [October 8, 2024, 7:27pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/511 "2024-10-08T19:27:09Z")

</div>

I’m a bit confused, what are the APIs for now. The firs are the 5 charging commands  
 ![Bildschirmfoto vom 2024-10-08 21-21-19](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/b/db71b9c7dc8b62555b9867f98118b10aa4a3a2b8.png)

![Bildschirmfoto vom 2024-10-08 21-21-02](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/8/98fa0e0440b275f8cc4f991258df3ee23ab10263.png)

![Bildschirmfoto vom 2024-10-08 21-20-48](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/c/bceaff88d07089b5ac37528796b68ca79ec7f91f.png)

---

<div class="post-metadata">

### Author: ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)
#### Post date: [October 8, 2024, 7:41pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/512 "2024-10-08T19:41:14Z")

</div>

For others I add the english screenshots, too.

1. Tesla API = reading car data. The limit is 300 requests/day:  
 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/b/7b5cb0425b262f782d97c52c04981d9ad1ec9c66.png)

2. Command API = sending commands to the car. Limit is 50 commands/day  
 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/4/14baf76f377b28b078d206ea4143dea359c02429.png)

3. Charge commands API = sending charge commands top the car. Limit is 5 commands/day  
 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/f/1f463f3f88c4b87bc376984294c1b1f991040814.png)

There is also a new wake command limit (15 request/day), but this is not added yet.  
It is becoming a bit confusing…

---

<div class="post-metadata">

### Author: ![copiis](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/copiis/32/171978_2.png) [@copiis](https://community.homey.app/u/copiis)
#### Post date: [October 9, 2024, 6:31am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/513 "2024-10-09T06:31:37Z")

</div>

What means this?

API\_COMMAND\_TYPE\_COMMAND\_CHARGE is not defined  
 ![Bildschirmfoto vom 2024-10-09 08-34-25](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/8/3832154e4986c5b53ce78c3d7a0d92c71016a071.png)

---

<div class="post-metadata">

### Author: ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)
#### Post date: [October 9, 2024, 6:38am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/514 "2024-10-09T06:38:10Z")

</div>

Ups, it’s a syntax error in the app. I think it prevents sending commands now. I can check it this afternoon. Can you revert to live version in the meantime?

---

<div class="post-metadata">

### Author: ![Johan\_Persson1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johan_persson1/32/48190_2.png) [@Johan\_Persson1](https://community.homey.app/u/Johan_Persson1)
#### Post date: [October 9, 2024, 12:56pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/515 "2024-10-09T12:56:17Z")

</div>

Hi Ronny!

I suppose my problem I encountered is of the same type…🤪

 ![IMG_2757](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/1/a1b0797f6b229c01eca45867975faf5227bc3b8e.jpeg)

/Johan

---

<div class="post-metadata">

### Author: ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)
#### Post date: [October 9, 2024, 2:44pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/516 "2024-10-09T14:44:09Z")

</div>

New **test version 1.9.7** :

- fixed command error (hopefully 🙂 )

@Johan_Persson1 @copiis FYI

---

<div class="post-metadata">

### Author: ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)
#### Post date: [October 10, 2024, 2:39pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/517 "2024-10-10T14:39:49Z")

</div>

New **test version 1.9.8** :

- added command counter for wake commands

---

<div class="post-metadata">

### Author: ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)
#### Post date: [October 12, 2024, 9:29am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/518 "2024-10-12T09:29:53Z")

</div>

New **test version 1.10.0** :

- Added **active route data** to **location device** (destination, address, time, distance, energy).

---

<div class="post-metadata">

### Author: ![JonE](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@JonE](https://community.homey.app/u/JonE)
#### Post date: [October 17, 2024, 8:40pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/519 "2024-10-17T20:40:36Z")

</div>

hi all,  
I’d like to have a flow that opens the frunk when I am near my Tesla / opening the door while the car has been charging and it’s fully charged. (so I can store away the charging cable in my frunk more quickly).  
However, when I test this flow, see attached, it’s giving me a orange error symbol. Anyone who knows why, perhaps @RonnyW ?  
Oh, and ideally I would also like to unlock the charging cable so I can easily pull it out of the car… Is this also doable in the same flow?

 ![Scherm­afbeelding 2024-10-17 om 22.38.32](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/4/b47c4d4c24b6c4d36526dbbdd628ecf51240e820.png)

---

<div class="post-metadata">

### Author: ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)
#### Post date: [October 17, 2024, 9:06pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/520 "2024-10-17T21:06:07Z")

</div>

Are you sure the charging is completed (charging limit reached and charging stopped)?  
If this condition is false, tha charging state is different. You can check the battery device for the current state.

 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/3/e39b5501f7061f70075c38d5e3f57b9e7e428739.png)

The battery device has a switch to open/close the port.  
And there is a button to unlock if it’s open (technically it’s an open command while port is already open - same like the unlock button in Tesla app).

Yellow=open/close, Red=unlock  
 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/0/2078b32acc3456754965d15e6f6a7e9c640d1187.png)w

There are flows for both. For unlock use the first one in the list.  
 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/b/3bc742217471fc6b66747fc6d10d3d372089a8fa.png)

Sorry, have currently only german screenshots 🙂

---

<div class="post-metadata">

### Author: ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)
#### Post date: [October 18, 2024, 6:25am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/521 "2024-10-18T06:25:02Z")

</div>

New **test version 1.11.1** :

- A first widget is ready 🙂

 ![Screenshot_20241018_081952_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/2/c23fedf88b34733e449fd4eb991902902e6c1561.jpeg)

You need Homey FW \>=12.1.0 and the beta version of Homeys mobile app.

---

<div class="post-metadata">

### Author: ![JonE](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@JonE](https://community.homey.app/u/JonE)
#### Post date: [October 18, 2024, 6:54am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/522 "2024-10-18T06:54:43Z")

</div>

Ah thank you @RonnyW ! This is more clear now.  
One additional question: what exactly is the ‘User Detected As Present’ IF-card in your Tesla-app? How is this user presence detected? Is this when your phone is close enough to your car? Or is it when you open your car door? Or even when the inside camera detects a human?

---

<div class="post-metadata">

### Author: ![JonE](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@JonE](https://community.homey.app/u/JonE)
#### Post date: [October 18, 2024, 6:59am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/523 "2024-10-18T06:59:59Z")

</div>

How exactly do you install the widget? Long-pressing the Homey app-icon on my phone only allows me to install one of my ‘Favorite’ flows but doesn’t show the option to install your Tesla widget. Am I overlooking something?

---

<div class="post-metadata">

### Author: ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)
#### Post date: [October 18, 2024, 7:02am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/524 "2024-10-18T07:02:13Z")

</div>

This will only work if the car is awake and the app is polling car state.  
That means, you have to wake up the car (open door) and the. the car detects your phone as car key. In this case, “you are present” as valid user. Technically it means, your car key is present.

But the flow trigger will just start with the next polling. So it depends on your polling interval. You shouldn’t expect an instand flow start directly after open the door.

When leaving the car it’s the same. Your car key is gone and after next polling the app knows that no user is present (as long as the car is awake).

---

<div class="post-metadata">

### Author: ![JonE](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@JonE](https://community.homey.app/u/JonE)
#### Post date: [October 18, 2024, 7:37am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/525 "2024-10-18T07:37:44Z")

</div>

So then I should decrease the ‘offline polling interval’ to e.g. 1 minute instead of the default 10 minutes?  
Of will I drain the car battery like crazy, then?

---

<div class="post-metadata">

### Author: ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)
#### Post date: [October 18, 2024, 8:15am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/526 "2024-10-18T08:15:17Z")

</div>

> [@JonE](#):
>
> How exactly do you install the widget?

➡ [Homey Dashboards — Public Beta Megathread](https://community.homey.app/t/homey-dashboards-public-beta-megathread/116963)

---

<div class="post-metadata">

### Author: ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)
#### Post date: [October 18, 2024, 8:17am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/527 "2024-10-18T08:17:40Z")

</div>

The offline interval can be set to same interval like online interval.  
After adding the rate limit handling, the app checks first the ‘last known state’ and requests the car only is it’s online.

[Previous page](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824.md?page=25)

[Next page](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824.md?page=27)
