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

<div class="post-metadata">

### Author: ![Andreas\_Se](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andreas_se/32/58318_2.png) [@Andreas\_Se](https://community.homey.app/u/Andreas_Se)
#### Post date: [June 4, 2025, 4:44pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/934 "2025-06-04T16:44:46Z")

</div>

I probably not use this as intended because my credits is ended already about the 10th every month.  
I have a suggestion, is it possible as an option to implement to use the Teslamate API as a datasource instead?

> **[GitHub - tobiasehlert/teslamateapi: TeslaMateApi is a RESTful API to get data...](https://github.com/tobiasehlert/teslamateapi)**
>
> TeslaMateApi is a RESTful API to get data collected by self-hosted data logger TeslaMate in JSON.

---

<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: [June 5, 2025, 7:19pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/935 "2025-06-05T19:19:26Z")

</div>

> [@Andreas\_Se](#):
>
> my credits is ended already about the 10th every month.

Then you are using a too short interval.  
Every data reading is summed for your app id and if your car is awake a long time (charging, sentry), all the wake time the data readings are done.

Just increase the interval to 5min or more. Or use the flow action for car device to set it dynamically. There are some example flows doing this.  
My example: I increase the interval to 10min if the charging cable is connected and the type is IEC. If disconnected, the interval is set back to 1min. This prevents unneeded calls during PV charging. But you can use a personal logic that fits your needs.

> [@Andreas\_Se](#):
>
> implement to use the Teslamate API

No, I won’t mix up different brands in one app.

---

<div class="post-metadata">

### Author: ![Patrick\_Brouilly](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patrick_brouilly/32/120823_2.png) [@Patrick\_Brouilly](https://community.homey.app/u/Patrick_Brouilly)
#### Post date: [June 6, 2025, 7:28am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/936 "2025-06-06T07:28:51Z")

</div>

Hi ! Thanks for all the work done !  
I just have one problem. When I connect the charging cable on my car, the card “Charging state is” with the state “connected” never return “true”.  
I try to use the card “Refresh car data” to refresh the charging state to connected but it doesn’t work.  
Do you have an idea ? 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: [June 6, 2025, 9:09pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/937 "2025-06-06T21:09:21Z")

</div>

What state is shown in device details (sensor view). The condition card is checking the capability value.  
The condition card returns true for state “Connected” if the capability value is not “Disconnected”.

---

<div class="post-metadata">

### Author: ![Just\_Me](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/just_me/32/78909_2.png) [@Just\_Me](https://community.homey.app/u/Just_Me)
#### Post date: [June 15, 2025, 4:24pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/938 "2025-06-15T16:24:54Z")

</div>

Many thanks for your work!

I’m having problems reconnecting to my MX 2018

If someone could help me out, I can’t find a how to for the old API I still need to use

Thanks again

---

<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: [June 15, 2025, 7:09pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/939 "2025-06-15T19:09:03Z")

</div>

What issue do you have in detail? The connection itself (data reading) is equal for all cars. It’s using Fleet-API with individual Tesla developer account (and app registration).

The different API affects only commands. I don’t know if the “old” cars (X/S) still don’t support signed commands or if they got updated already. If the car doesn’t support signed commands, you can chose “REST API” in car device settings.

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

---

<div class="post-metadata">

### Author: ![Just\_Me](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/just_me/32/78909_2.png) [@Just\_Me](https://community.homey.app/u/Just_Me)
#### Post date: [June 15, 2025, 7:50pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/940 "2025-06-15T19:50:51Z")

</div>

Thanks for your reply

Have not used the app in a while, was working great

Now the connection seems lost and I dont know how to repair (using rest API)

None of the Tesla devices are working anymore

Its not clear to me if the rest api should still be used for older vehicles?

74a6e55d-3961-4cb8-bed7-efb4f1b1ede4

Error when trying to switch on Tesla audio as an example:

400 Bad Request: {  
“error”: “invalid\_request”,  
“error\_description”: “The ‘client\_id’ parameter is missing. Include client\_id in the request.”,  
“referenceID”: “1480b6e8-2fa6-4fdc-a8e4-f9c147be78f7-1743673370831. For more information, visit: [https://developer.tesla.com/docs/fleet-api#help-and-support”](https://developer.tesla.com/docs/fleet-api#help-and-support%E2%80%9D)  
}

Which would lead me to think its not trying to use the rest api?

I do have rest API selected thinking I have to with my 2018 car

Do I need to use the other newer connection type?

Please let me know if you need any other Info

Cheers

---

<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: [June 15, 2025, 7:58pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/941 "2025-06-15T19:58:34Z")

</div>

Please read the 1st post of this thread. Tesla changed the API pricing. You need a developer account and a app id. You will find a manual in the blog post linked in 1st post.

---

<div class="post-metadata">

### Author: ![Patrick\_Brouilly](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patrick_brouilly/32/120823_2.png) [@Patrick\_Brouilly](https://community.homey.app/u/Patrick_Brouilly)
#### Post date: [June 16, 2025, 7:54am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/942 "2025-06-16T07:54:28Z")

</div>

Hi Ronny,  
I think I figured out my charging status update problem. When I use the card  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/b/1bc0a26d576fd65c5e357031fa953657938f3979.png)

I need to use “wake up the car” before as it’s explained…

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/3/834dcc08921202ce8f0851b8dc4e934744243093.png)

Finally, no problem, just read the documentation 🙂  
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: [June 16, 2025, 4:28pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/943 "2025-06-16T16:28:57Z")

</div>

New **test version 3.0.0**  
This is big step forward…adding **Bluetooth (BLE)** support for local car access 🎉  
In addition it also includes the update HomeyEnergy to show the car state.

**How it works:**  
The app offers the possibility to connect to your car.  
In device settings you can choose, if BLE should be used of not (or only).  
If active, the app first tries to connect via BLE. If that is not possible (car is not at home), then the FleetAPI is used.  
This can reduce the API costs for all charging at home.

**What is needed:**

- Your Homey must reach your car via BLE. You can check in [developer tools](https://tools.developer.homey.app/tools/ble) if you can find a device starting with “S” and ending with “C”.
- The app must be added a car key (in addition to your FleetAPI key) in repair view.

Details will be added to the Blog soon. For now it’s just to try for the beta users.  
Just report issues or ask if you have questions…

---

<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: [June 17, 2025, 4:04am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/944 "2025-06-17T04:04:14Z")

</div>

Shouldn’t the car appear in the garage when it’s recognized and shouldn’t the garage be open?

 ![Screenshot_20250617-055903_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/2/222413cb3f678572c3e51b036847eb2d93033a52.jpeg)

---

<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: [June 17, 2025, 4:11am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/945 "2025-06-17T04:11:27Z")

</div>

> [@RonnyW](#):
>
> If active, the app first tries to connect via BLE. If that is not possible (car is not at home), then the FleetAPI is used.

Is there any way to check how the command was sent?

---

<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: [June 17, 2025, 6:00am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/946 "2025-06-17T06:00:55Z")

</div>

> [@copiis](#):
>
> Shouldn’t the car appear in the garage

The garage is controlled by the EV charger.  
The car only appears as a button with SoC and charging state.

The ev charger is a house installation and is shown idependently of a connected car. You could charge another car, too.

---

<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: [June 17, 2025, 6:03am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/947 "2025-06-17T06:03:12Z")

</div>

> [@copiis](#):
>
> Is there any way to check how the command was sent?

You can see the statics of sent commands and errors in device settings and insights.  
BLE errors also include connect errors (e.g. if the car is not at home), so this can get a high amount.  
If API readings are raising slower while the car is at home and BLE commands are raising, then it’s good.

---

<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: [June 17, 2025, 6:59am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/948 "2025-06-17T06:59:01Z")

</div>

Seems to work although the transmitter via ble sometimes doesn’t work, with the following error messages.

 ![Bildschirmfoto vom 2025-06-17 08-48-23](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/e/ee68de184f5a93d02fba28919238ac8263ee0a88.png)  
 ![Bildschirmfoto vom 2025-06-17 08-57-47](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/d/9dc095617731f9a2940dec65401ecf542f61d016.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: [June 17, 2025, 8:08am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/949 "2025-06-17T08:08:52Z")

</div>

The advertisement error means: the device is not found to connect (discovering all BLE devices in range).  
Timeout means: Homey got no response on a BLE request (streaming car data). Perhaps your car is close to BLE range or something else disrupts the connection.

---

<div class="post-metadata">

### Author: ![Just\_Me](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/just_me/32/78909_2.png) [@Just\_Me](https://community.homey.app/u/Just_Me)
#### Post date: [June 17, 2025, 3:35pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/950 "2025-06-17T15:35:58Z")

</div>

Thanks for your reply

I was under the impression that the new Fleet API was not to be used for older cars like mine

It seems there are 2 API’s,  
one for sending commands (I still need to use the rest API)  
and the tesla fleet API (should be used by everyone)

All sorted now

Sorry for the misunderstanding and thanks again for your help and great app!

---

<div class="post-metadata">

### Author: ![StevenV](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/stevenv/32/97437_2.png) [@StevenV](https://community.homey.app/u/StevenV)
#### Post date: [June 17, 2025, 3:54pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/951 "2025-06-17T15:54:50Z")

</div>

![IMG_9470](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/5/35b9f445abe58fc5e59f5e677fcada22b488edc9.jpeg)  
What does this error mean? In developer tools I see the device with the same id 744…

---

<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: [June 17, 2025, 4:49pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/952 "2025-06-17T16:49:34Z")

</div>

It seems the device is found via discovery but Homey could not connect.  
The car can handle only 3 parallel BLE connections. Some connected phones can be a reason.

But it’s hard to say. BLE is a bitch.🤷‍♂️

---

<div class="post-metadata">

### Author: ![StevenV](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/stevenv/32/97437_2.png) [@StevenV](https://community.homey.app/u/StevenV)
#### Post date: [June 17, 2025, 5:22pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/953 "2025-06-17T17:22:52Z")

</div>

Sharing my experience with adding the BLE key:  
I don’t know if it was a coincidence or the solution, but after many attempts resulting in this error that I mentioned before or the errors that copiis also obtained, I decided to restart my homey. After restart and new attempt to connect the BLE, I got the popup window on my Tesla screen asking to add the new key.  
After hitting the ok button on the Tesla screen, I however got a timeout message in the app indicating that the response was not received. I tried that several times, every time the popup window, but resulting in a timeout response.  
Then I tried the “controleer sleutelstatus” (check car key status) button, and surprisingly that gave me the response that the key is whitelisted. I suppose this means that adding the key was successful despite the timeout warnings?

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

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