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

<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: [February 9, 2025, 9:29pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/670 "2025-02-09T21:29:55Z")

</div>

You can use a short interval between 1 and 5min I think, because it only counts if your car is online. It depends on the average online time during a day.  
Long daily journeys or long sentry time =\> use a longer interval  
Short journeys and no or short sentty times =\> use a short interval

---

<div class="post-metadata">

### Author: ![Rudi\_Hendrix](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rudi_hendrix/32/31931_2.png) [@Rudi\_Hendrix](https://community.homey.app/u/Rudi_Hendrix)
#### Post date: [February 10, 2025, 6:49am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/671 "2025-02-10T06:49:32Z")

</div>

This morning I tried to add a flow that controls the climate and I got:  
“Error  
401 Unauthorized: {  
“error”: “unauthorized\_client”,  
“error\_description”: “We don’t recognize this client\_id. Please use the client\_id found in your app details.”,  
“referenceID”: “###########. For more information, visit: [https://developer.tesla.com/docs/fleet-api#help-and-support](https://developer.tesla.com/docs/fleet-api#help-and-support)”  
}”

For obvious reasons I masked the referenced ID. Am I trying to use a command not yet available? Or is something else wrong?  
At first glance of the list of commands I would say the former.

---

<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: [February 10, 2025, 7:28am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/672 "2025-02-10T07:28:58Z")

</div>

That’s strange. Sound like the client\_id is missing in the app.  
Can you please check the repair view? Go to auth view until the client\_id screen is shown.  
Is the client\_id field filled?

If yes, then I perhaps missed an adjustment somewhere for token refresh.  
Is your device ok and showing data in mobile app?

Which app version are you using? 2.0.2?

PS: if the client\_id or client\_secret is changed in pair/repair view, a new public key is generated. In this case, the app must be added again as car key.

---

<div class="post-metadata">

### Author: ![Rudi\_Hendrix](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rudi_hendrix/32/31931_2.png) [@Rudi\_Hendrix](https://community.homey.app/u/Rudi_Hendrix)
#### Post date: [February 10, 2025, 8:01am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/673 "2025-02-10T08:01:11Z")

</div>

Ah, yes I see. Whereas it was working yesterday, the “device” in the mobile app shows an exclamation mark now. Clicking the repair button shows the same error as mentioned above. I will perform the suggested steps and update this reply

Edit: I have to click the “Change login” button, right? Then, yes, the client ID is filled.  
I continued logging in and got the confirmation to use the MFA. After that I got the message that I could close the window. I did, using the x in the left top of the window.  
After that it returned with a window indicating I have to log into the manufacturer’s website. It’s been there for minutes now

Edit 2: closed the window and the exclamation mark is gone. Using version 2.0.2

Edit 3: Tested the flow again. No immediate error, but after a while a time out.  
Tried adjusting the climate manually from the app and the car switches to maximum cooling. If I change the climate settings from the car controls, it is reflected in the Homey app

> [@RonnyW](#):
>
> PS: if the client\_id or client\_secret is changed in pair/repair view, a new public key is generated. In this case, the app must be added again as car key.

Not sure if this is the case

---

<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: [February 10, 2025, 8:19am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/674 "2025-02-10T08:19:00Z")

</div>

Hm, can’t reproduce the issue. Can you send a diagnostics report?

---

<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: [February 10, 2025, 8:36am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/675 "2025-02-10T08:36:49Z")

</div>

I couldn’t see an error in the log. Perhaps it was too long ago.

To everyone having similar issues: Please send me a diagnostics report with comment “client\_id not set”. And perhaps describe if that happens in normal use or after a while.

---

<div class="post-metadata">

### Author: ![Rudi\_Hendrix](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rudi_hendrix/32/31931_2.png) [@Rudi\_Hendrix](https://community.homey.app/u/Rudi_Hendrix)
#### Post date: [February 10, 2025, 9:45am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/676 "2025-02-10T09:45:06Z")

</div>

So, I restarted the app and the exclamation mark is back.  
I was in the car, but now I am at my desk. I will try to repair the device once more. See what happens.

Ok, repaired. I saw the screen with the API credential and secret. It logged in (this time around I didn’t have to fill out my Tesla credentials using the MFA). Now I got back to the “vehicle” screen and everything seems up and running again.

As I am not anywhere near my car I will not try to open the frunk or trunk 🙂

Restarting the app almost instantly makes the exclamation mark reappear

---

<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: [February 10, 2025, 9:51am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/677 "2025-02-10T09:51:13Z")

</div>

Is it a HP19 or HP23?

---

<div class="post-metadata">

### Author: ![Rudi\_Hendrix](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rudi_hendrix/32/31931_2.png) [@Rudi\_Hendrix](https://community.homey.app/u/Rudi_Hendrix)
#### Post date: [February 10, 2025, 10:02am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/678 "2025-02-10T10:02:17Z")

</div>

It’s HP23

---

<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: [February 10, 2025, 10:10am UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/679 "2025-02-10T10:10:00Z")

</div>

Can you please show the device details with a screenshot?  
And please restart again and if the error is back, send a diagnostics report.  
Thanks.

---

<div class="post-metadata">

### Author: ![Thomas\_Cronqvist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thomas_cronqvist/32/123415_2.png) [@Thomas\_Cronqvist](https://community.homey.app/u/Thomas_Cronqvist)
#### Post date: [February 10, 2025, 3:59pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/681 "2025-02-10T15:59:27Z")

</div>

Hi, I removed the old app and devices. New app 2.0.2 and fresh apps in [developer.tesla.com](http://developer.tesla.com). Data readingfs are fine but all commands fails: “Session info hmac invalid”. Any tips?

---

<div class="post-metadata">

### Author: ![Jan\_Penning](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jan_penning/32/71173_2.png) [@Jan\_Penning](https://community.homey.app/u/Jan_Penning)
#### Post date: [February 10, 2025, 4:44pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/682 "2025-02-10T16:44:51Z")

</div>

I noticed the same issue as @Rudi_Hendrix

- A red exclamation mark on the Tesla device

- Error message 401:  

- Repairing the device (same clientID and secret) fixes the problem, car data is coming again.

- Restart the app (2.0.2) and the red exclamation mark is there again.

Diagnostic report has been sent: d79b52f5-1d38-4123-8efa-0c2375c6238f

---

<div class="post-metadata">

### Author: ![Paladin](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/paladin/32/128097_2.png) [@Paladin](https://community.homey.app/u/Paladin)
#### Post date: [February 10, 2025, 4:45pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/683 "2025-02-10T16:45:45Z")

</div>

Greetings, I am using app version 2.0.2, and have finished the steps on [developer.tesla.com](http://developer.tesla.com). In the app, I enter the Client ID and Client Secret generated by [developer.tesla.com](http://developer.tesla.com) and select “Next” and this error appears:

400 Bad Request: {“response”:null,“error”:“Invalid EC public key”,“error\_description”:“”,“txid”:“_ **deleted for privacy** _”}

I have the correct URLs defined on [developer.tesla.com](http://developer.tesla.com):

Allowed Origin(s)

> **[Homey - A Better Smart Home](https://homey.app/en-us/)**
>
> Create a better smart home with Homey. Control, automate and monitor your entire smart home from a single place. Homey supports 50,000+ devices from thousands of brands.

[https://rwdevelopment.de/](https://rwdevelopment.de/)

Allowed Redirect URI(s)  
[https://callback.athom.com/oauth2/callback](https://callback.athom.com/oauth2/callback)

Any suggestions?

---

<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: [February 10, 2025, 4:45pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/684 "2025-02-10T16:45:57Z")

</div>

I’ve created a flow that dynamically adjusts the query interval.  
With 300 queries a day, it’s possible to do about 1 query in 5 minutes.  
The flow adjusts the query interval every 5 minutes depending on whether you’re above or below the average.  
At UTC, the counter is reset to 0.

 ![Bildschirmfoto vom 2025-02-10 17-48-44](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/1/01fa7a58264a7830659419583bb7369ad40f7307.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: [February 10, 2025, 5:16pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/685 "2025-02-10T17:16:32Z")

</div>

New **test version 2.0.3** :

- Added climate commands: vent, temperature, preconditioning, defrost, overheat protection

---

<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: [February 10, 2025, 5:29pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/686 "2025-02-10T17:29:13Z")

</div>

> [@Paladin](#):
>
> “Invalid EC public key”

It seems Tesla could not read the public key from your Homey. Can you please try the following URL, replace the [ID] with your HomeyID.

```auto
https://[ID].tesla.rwdevelopment.de/.well-known/appspecific/com.tesla.3p.public-key.pem

```

Please check if you can download the key file (starting with -----BEGIN PUBLIC KEY-----) or if you get an error.

---

<div class="post-metadata">

### Author: ![Paladin](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/paladin/32/128097_2.png) [@Paladin](https://community.homey.app/u/Paladin)
#### Post date: [February 10, 2025, 5:47pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/687 "2025-02-10T17:47:52Z")

</div>

I am getting an error:  
{“error”:“homey\_offline”}

My Homey is online, I can access the dashboard through the cloud URL at `https://my.homey.app/homeys/ ***My Homey ID*** `

---

<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: [February 10, 2025, 6:01pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/688 "2025-02-10T18:01:29Z")

</div>

Can you access it also on your phone from outside your LAN?  
Of yes, then it’s perhaps caused by a regional URL. In that case I have to ask Athom…

---

<div class="post-metadata">

### Author: ![Paladin](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/paladin/32/128097_2.png) [@Paladin](https://community.homey.app/u/Paladin)
#### Post date: [February 10, 2025, 6:38pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/689 "2025-02-10T18:38:28Z")

</div>

Yes, I can access my Homey on my phone outside my LAN. If it helps, I am in the US.

---

<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: [February 10, 2025, 6:57pm UTC](https://community.homey.app/t/app-pro-tesla-car-energy-zero-emissions-zero-compromises/100824/690 "2025-02-10T18:57:25Z")

</div>

@Jan_Penning@Rudi_Hendrix

Is the error still present with v. 2.0.3?  
Can you try ro re-install the test version via app store? I have no ideas what’s wrong if only you are affected. I sounds as if not all app files got updated 🤷‍♂️

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

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