Hi everyone! ![]()
We continue the North American series
with something big: Tesla, for cars and Powerwalls. It perfectly fits Gladys’ energy focus ![]()
It goes through Teslemetry: the official Tesla Fleet API requires each user to declare a developer application and host a key on their own domain, which is to say, no one. Teslemetry takes care of all that for a simple token. It’s a paid subscription with them, I prefer to say it right away.
What it does
For each car :
battery, range (km or miles depending on your profile), charging status and power, plug connected or not;
interior and exterior temperatures, mileage, car awake or asleep;
from Gladys: start or stop charging, set the charging limit and intensity, the climate control and its temperature, lock, activate Sentry Mode.
For the Powerwall and solar : production, home consumption, grid (drawing / injection), battery charge and discharge, grid presence, adjustable operating mode, and energy tracking in kWh.
Two widgets : « Tesla Vehicle » and « Energy Flow ».
The cool thing
Car plugged in and solar surplus → start charging
Power outage → notification, and cut off the big consumers
Charge completed → « Your Tesla is ready » on the phone
And I promise: fetching data never wakes up the car. It is only woken up for a command you have requested, so no battery drained secretly ![]()
Installation
Gladys 5.1 minimum.
- Create an account on teslemetry.com, link your Tesla and generate an access token.
- In Gladys: Integrations → Tesla → Install, paste the token, then the Discovery tab to add the car and the energy site.
Small honest reservations: no GPS position (on purpose), nor trunk, windows or heated seats for now, and the energy indexes start from zero on installation.
Developed without the hardware : I don’t have a Tesla or a Powerwall. Tests are based on the test data of the Home Assistant integration and the official documentation, but nothing replaces a real test.
Like the previous ones, it is developed with Claude Code
. Independent project, not affiliated with Tesla or Teslemetry.
Do you have a Tesla or a Powerwall? I count on you for the first feedback
@mutmut, I saw that you have a Powerwall gen3: if you feel like testing the energy part, I’m interested ![]()
