[APP][PRO] Tesla - Zero emissions. Zero compromises

Evening @RonnyW i’ve enabled the energy integration awhile ago but it turned it off as I had been previously using a Home Assistant for my solar and house meter. Today I switched those off and reenable Tesla energy integration ( disabled exclude from energy) but I’m seeing a weird impact to the solar graph. As you can see from the image solar is showing at 9 o’clock in the evening, and seems to be tracking the site energy, but if I open the historical in the Tesla Solar card it shows correct information.

Just want to check if I’m doing something stupid or completely missing something.

The solar chart in HomeyEnergy is showing your production from 12 to 14:00. In the eveneing, another device seems to report energy. The chart is showing measure_energy value of devices with class ‘solarpanel’. Do you have other dehices with this class (virtual devices, HA imported devices etc.) that have energy data with that amount?

Nothing, very strange. I’ve decided to completely remove and re-add to see what happens. I’ve reset the data as well in the Energy Dash as well.

Thanks! I’ll come back if still issues.

Completely deleted the existing solar and meter from HA.

Deleted and reinstalled the Tesla energy devices.

Reset the energy dashboard, deleted all data.

After a little wait for the data to start showing, I’m getting the same thing. Removed power meter (Energy site) and left solar, still showing. Removed solar and all not showing. Finally added site energy only back, get the issue. Will leave overnight / tomorrow and see what happens.

I’ve created a diagnostics report.

06431777-865f-4047-a48d-588ca6bab1df

Both solar and site energy enabled.

Both disabled.

Finally, added back only site energy enabled (Wilton Crescent Power) and showing the same issue.

Edit: this morning also noticed, my “site energy” is different from the one on your blog post (and from posted in post history from someone else)

my site energy.

From your blog post.

Can you please first check if the solar panels are the only solar device?
Homey Developer Tools
Search for “solarpanel” and check devices with this atribute:

grafik

Do you see a corresponding value for the ~1kW up to 1,4kW?
Is there a value similar in Tesla mobile app?
I wil check the app later to see if a solar capability is somehow filled wrong.

Please try the test version. I forgot to submit to approval :sweat_smile:

This should fix some issues.

1 Like

Added this evening, will test and revert.

Edit: Brilliant, many, many thanks - that seemed to have done it! All working :tada:

I’ll continue to monitor.

2 Likes

Anybody else experiencing this when trying to add the car to homey after inserting client ID and secret?

Please check in Tesla developer account that all URLs are correct. The URLs are shown in pair view wher you can also copy them.

Just insert all URLs in the correct fields in Tesla developer app creation view.

It worked out in the end. After editing the URL, I had to go all the way out and log in from the beginning. then the URL was accepted.

Tried several different ones but unable to connect

422 Unprocessable Entity: {“response”:null,“error”:“Validation failed: Domain has already been taken”,“error_description”:“”,"txid xxxxxxxxx

You already registered a client_id for your Homey. If you try tonise a second client_id for a second car…that’s not working. You have to use use first used client_id for the second car, too.

It’s a technical restriction caused by the car key assignment where the public Homey URL is registered to the client_id.

If you have a second Homey. you could use a second client_id.

How to remove it? I sold that car

The car is idependent from your app definition (the client ID in Tesla developer account).

I think you already reloved the car device from Homey.

To add a new car, use your already existing client_id. The client_id is ‘your’ Tesla developer account app for your subscription (or the 10€ free usage).