# \[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:** 15

<div class="post-metadata">

### Author: ![Paul\_Nas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/paul_nas/32/80581_2.png) [@Paul\_Nas](https://community.homey.app/u/Paul_Nas)
#### Post date: [March 23, 2024, 9:42am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/285 "2024-03-23T09:42:15Z")

</div>

Thanks for the awesome app @RonnyW ! The deprecated version had the distance to home, which I use in an automation (different distances trigger different events) but the new app doesn’t. Any chance that’ll be added?

---

<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: [March 23, 2024, 11:27am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/286 "2024-03-23T11:27:18Z")

</div>

> [@Paul\_Nas](#):
>
> distance to home

Hi, what’s your use case? Do you mean distance in m/km? Or only a leaft/reached trigger?

The trigger you can use after adding the “location” device. You can set locations based on coordinates or GoogleMaps links in device settings.  
Then activate location readings in car device settings.

Then you can use these triggers:  
 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/0/8092b6d8fe85dab039c652d543a03683823e4141.png)

Or use a generic trigger with only coordinates or GoogleMaps link:  
 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/9/497aa7e8bb5d4cdab1cce2415687afc0f4b72527.png)

---

<div class="post-metadata">

### Author: ![Paul\_Nas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/paul_nas/32/80581_2.png) [@Paul\_Nas](https://community.homey.app/u/Paul_Nas)
#### Post date: [March 24, 2024, 11:25am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/287 "2024-03-24T11:25:06Z")

</div>

Yeah that would work for the triggers. I also log the distance from home and I don’t think I can do that with the above.

---

<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: [March 26, 2024, 6:45pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/288 "2024-03-26T18:45:54Z")

</div>

New **live version 1.3.0** :

- Added **charging history**  
 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/2/52037651c6c6dde884449fbe1789c65a20dfeb3b.png)  
Check you charging sessions in repair view of your battery device. All sessions are stored from now, not only the SuC chargings.  
The history entry is created on start charging and stopped on diconnected cable. This way, paused chargings (PV) are all counted on one session.

- Added **SuC charging history** :  
You can now check your SuC chargings in repair view of your battery device. It’s the data from the API showing the same data like shown in the Tesla app.  
 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/8/d8bbe9d3c5dad3b603f91cfc1f8320713b17de92.png)

- Added **energy meter** :  
If a charging session is completed (cable is disconnected), the added energy is added to a meter capability of your battery device.  
You can set an initial meter value using a flow action.

---

<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: [March 27, 2024, 2:31pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/289 "2024-03-27T14:31:16Z")

</div>

> [@Paul\_Nas](#):
>
> . I also log the distance from home

Hi, the distance was a capability (meters from home), right? I think something similar can be added, too.

---

<div class="post-metadata">

### Author: ![Paul\_Nas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/paul_nas/32/80581_2.png) [@Paul\_Nas](https://community.homey.app/u/Paul_Nas)
#### Post date: [March 27, 2024, 7:45pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/290 "2024-03-27T19:45:44Z")

</div>

Yes, I put **#Distance from home** into a variable before I log it in a Google sheet.

---

<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: [March 27, 2024, 7:54pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/291 "2024-03-27T19:54:57Z")

</div>

I added the distance in the current test version (1.3.2). But I use km and not m as unit to keep it easier to read in the device sensor view.

---

<div class="post-metadata">

### Author: ![Stianaj](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/stianaj/32/80048_2.png) [@Stianaj](https://community.homey.app/u/Stianaj)
#### Post date: [April 6, 2024, 10:17pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/292 "2024-04-06T22:17:03Z")

</div>

Hi Ronny

Thanks for a great app!

I am having severe battery drain issues, around 10%pt/24hrs. I have done everything the Tesla-community suggests, to no avail.

So, I set the polling interval to 600 minutes for both online and offline. No change.

Then I removed the access for the Tesla Homey app in my Tesla account. The drain went down to 1-2%pt/24hr.

Any ideas on this?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/7/e7d81aacb83f07eede68894ed583ff7e27c9bccb.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: [April 7, 2024, 6:31am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/293 "2024-04-07T06:31:22Z")

</div>

Hi,  
a simple polling doesn’t wake up your car. If it’s asleep, the API just returns the asleep state.  
Do you have some flows running with commands?  
As you have set the “wake up to send commands” the app wakes up the car if it’s asleep to send a command.

PS: you can set your interval back to 1/10min. Then use ths state changed trigger of you car device and log if/when the car wakes up to check if there are flows running at this time or in the same interval.

---

<div class="post-metadata">

### Author: ![Stianaj](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/stianaj/32/80048_2.png) [@Stianaj](https://community.homey.app/u/Stianaj)
#### Post date: [April 8, 2024, 12:06pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/294 "2024-04-08T12:06:19Z")

</div>

Hi Ronny

Thanks for your quick answer.

Yes, I have a flow that checks if the charging port is open. This must be the reason. I have this because I have not found a card that tells me when the car is plugged in. I want to have the battery level reported only when the car is at home, charging.

The reason for this is that I charge the car in the daytime when I have excess energy from the solar panels. But I want it to charge to a minimum level at any given time, and thus I cannot have 4 hours between every check.

Any ideas on how to manage what I want?

---

<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: [April 8, 2024, 1:30pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/295 "2024-04-08T13:30:39Z")

</div>

Perhaps you could share your flows?

Some facts and ideas…

1. The app is reading car state by polling. The offline interval os only used to not spam the Tesla servers.
2. Polling doesn’t wake up your car.
3. If you wake up the car (flow action, device or from the car itself), the next poll sees the car is online and new data is fetched. This updates the device capabilities.
4. So just use the “has changed” triggers ro react on changes. No need to send commands.
5. The new app splits car functionality into single devices. If you want to get battery data/actions, the add the battery device. This device has it’s own flows and capabilities.
6. The battery device has a charging state changed trigger and condition cards for charging state. Use this for the “plugged” check.

To prevent to wake up the car, please check if you are using actions like “set SoC limit”.

---

<div class="post-metadata">

### Author: ![Stianaj](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/stianaj/32/80048_2.png) [@Stianaj](https://community.homey.app/u/Stianaj)
#### Post date: [April 8, 2024, 2:24pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/296 "2024-04-08T14:24:46Z")

</div>

> Hi

 ![image.png](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/2/42da2ee751ac0ffe5fca0ba1f88bdb1bb12bb3f4.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: [April 8, 2024, 7:03pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/297 "2024-04-08T19:03:49Z")

</div>

Some ideas about your flow…

I think this is causing your issue;

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

If the car goes to sleep while the charge port is open, the capability won’t change. And if you change the variable timebased, this flow will run to the wallbox settings. And if you activate the wallbox (start charging), the car wakes up and starts charging.  
Add a timeline entry to check when and how often this happens.

And this is not needed:  
 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/4/646cc7bdee091ec179c7ce9f67f6ee1157cf1ca2.png)  
The capability can only change if new data is received. That means: a data refresh is changing the capability, so you don’t need a manual refresh.

---

<div class="post-metadata">

### Author: ![Stianaj](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/stianaj/32/80048_2.png) [@Stianaj](https://community.homey.app/u/Stianaj)
#### Post date: [April 8, 2024, 7:40pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/298 "2024-04-08T19:40:50Z")

</div>

Thanks a lot for personal support! I will try your tips, once I find out how to add a timeline entry 😉

man. 8. apr. 2024 kl. 21:13 skrev Ronny Winkler via Homey Community Forum \<[notifications@athom.discoursemail.com](mailto:notifications@athom.discoursemail.com)\>:

---

<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: [April 8, 2024, 7:58pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/299 "2024-04-08T19:58:31Z")

</div>

New @Homey?

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

Or just send push messaged 😉

---

<div class="post-metadata">

### Author: ![Stianaj](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/stianaj/32/80048_2.png) [@Stianaj](https://community.homey.app/u/Stianaj)
#### Post date: [April 8, 2024, 9:24pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/300 "2024-04-08T21:24:33Z")

</div>

Well, yeah 🙂 At least in hours spent playing around with it.

Thanks again for great support!

man. 8. apr. 2024 kl. 22:08 skrev Ronny Winkler via Homey Community Forum \<[notifications@athom.discoursemail.com](mailto:notifications@athom.discoursemail.com)\>:

---

<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: [April 19, 2024, 8:41am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/301 "2024-04-19T08:41:06Z")

</div>

New **Live version 1.4.0** including all changes sinde 1.3.0:

- Distance from home:  
The **location device** is showing the **distance from home** in km/miles.  
 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/c/1c8ae99d1a21d2647a34a69c7fd90908596bdef7.png)

- The **location device** offers a flow action to start **navigation to a Supercharger**. The selection field is showing nearest SuCs. The car must be awake to get the SuC list. If “wake up if needed” is set, the car is woken up when the input field gets active. The list is showing the distance and free stalls.  
 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/5/b5e47bf445ed9cefbca8bb570c08b27fb812de01.png)

- The **location device** has a **manintenace view** now.  
You can access a list all **nearest SuCs and a list of nearest destination chargers**.  
The view needs an awake car to get the data via API.  
You can start navigation directly from the list (1st button) or you can show the charger in GoogleMaps (coordinates from the API are used, so perhaps less accurate).  
 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/a/da1bcda7a503adf824bddaf815073c5d4e2b677b.png)  
 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/6/96291c256c113e37624b9600cb19641d0dede549.png)  
 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/5/e56b88686f746a5cb17ca8f2d8296c8684ea8d17.png)

---

<div class="post-metadata">

### Author: ![D0N](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/d0n/32/60674_2.png) [@D0N](https://community.homey.app/u/D0N)
#### Post date: [April 21, 2024, 9:14am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/302 "2024-04-21T09:14:06Z")

</div>

Hey. I installed your app, connection works well, thank su a lot!

now i would start to charge my car if i have overproduction on my PV, but i don’t have any option in flows to start charching. Do I need to configure something? other options are avaiable, but none for charging.

thank you  
Angelo

---

<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: [April 21, 2024, 9:23am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/303 "2024-04-21T09:23:10Z")

</div>

> [@D0N](#):
>
> i don’t have any option in flows to start charching.

Please read the begining of the thread  
Do you have the Battery device?

**How to start?**

This app offers several devices you can add.  
**Start with the car device**. This connects to your car and allows some central functions to be controlled.  
Then add devices for special purposes you want to control like battery/charging, climate or location.

![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/0/901a78fbbed64b68667ebb18728adb9597e93d5a.png)

---

<div class="post-metadata">

### Author: ![D0N](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/d0n/32/60674_2.png) [@D0N](https://community.homey.app/u/D0N)
#### Post date: [April 21, 2024, 9:48am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/304 "2024-04-21T09:48:44Z")

</div>

ok, now all is clear. starting charging is still not possible, i got the error the car is not registred?`all rights are granted in tasla account…

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

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