
Teslamate
Self-hosted Tesla data logger with Grafana dashboards, AGPL-3.0
Replaces Teslafi, Tessie, Teslascope, Tezlab, Myteslamate
Who it's for
TeslaMate records battery capacity from every charge session, feeding the projected range and battery health dashboards. Over months and years, you can see exactly how capacity has changed since new, something the Tesla app does not expose. Owners tracking warranty claims or resale value use this data directly.
You only want to check current charge level or recent trip stats. TeslaMate requires an always-on server; for occasional reference use, the Tesla app covers those needs without infrastructure overhead.
The MQTT layer streams real-time vehicle data including location, charge level, inside temperature, and locked status to any MQTT-compatible platform. Home Assistant users trigger automations when the car arrives home, finishes charging, or drops below a charge threshold, with no custom API polling required.
Your home automation setup has no MQTT broker and you do not want to add one. Setting up MQTT purely for TeslaMate adds infrastructure complexity that may not justify the integration for a non-smart-home user.
Cloud-hosted Tesla logging services store your API token and vehicle history on external servers. TeslaMate keeps all data in a Postgres database on your own hardware, with credentials never leaving your network. This is the primary reason privacy-focused owners choose it over subscription services.
You are comfortable with a managed cloud service and have no data ownership concerns. A hosted service is easier to start and maintain for users who do not want to run their own server.
TeslaMate includes an import tool for TeslaFi and tesla-apiscraper exports, allowing you to migrate your full historical record without starting from scratch. The migration is a one-time process documented in the official docs.
You have no prior Tesla logging history to import. The import feature adds no value when starting fresh with TeslaMate.
The problem
Tesla's built-in app shows current charge level and recent trip summaries, but provides no long-term analytics: no battery degradation curve, no charging cost history broken down by session, no efficiency trends across weeks or months, and no way to see when the car is draining charge while parked. For owners who want that depth, the main options are paid subscription services that require handing over your Tesla API token to a server you do not control. That means your precise location history, daily driving patterns, and home charging schedule are stored on a third party's infrastructure, with recurring costs and no option to retain your own copy of the data. Owners who switch services or cancel lose their history unless the provider offers an export.
How it works
Ships with dashboards for battery health, charging history, drive details, efficiency, projected range, states (online, asleep, charging), vampire drain, temperature, mileage, and a lifetime driving map using OpenStreetMap tiles. Each dashboard is a standard Grafana panel set that can be edited in the Grafana UI or by modifying the JSON definition directly.
Every vehicle data point, including location, charge state, inside temperature, and online status, is published to a local Mosquitto MQTT broker in real time. Home Assistant, Node-Red, and Telegram can subscribe to these topics directly without custom code, enabling automations triggered by charge completion, arrival location, or battery level thresholds.
Records energy added per charge session and calculates actual cost against user-defined electricity rates. The charges dashboard breaks costs down by location and session, letting owners compare home charging costs against Supercharging over time and across locations.
Monitors the Tesla API without keeping the vehicle awake beyond its normal sleep schedule. TeslaMate pauses frequent polling when the car sleeps and resumes when it wakes, avoiding the known issue where third-party apps poll too aggressively and drain the battery overnight.
One TeslaMate instance tracks multiple vehicles under the same Tesla account. The geo-fencing feature creates named locations such as home, work, and recurring charging stops, so drives and charges in the dashboards display location labels rather than raw coordinates.
Existing history from TeslaFi or tesla-apiscraper can be imported as a one-time migration, preserving prior records when switching to TeslaMate. This prevents starting with a blank history and is documented in the official docs.
Features
- 22-plus pre-built Grafana dashboards
- MQTT vehicle state publishing
- Charge cost tracking by session and location
- No additional vampire drain
- Multi-vehicle support and geo-fencing
- Import from TeslaFi and tesla-apiscraper
How to install
Self-hosting deploys with Docker Compose; pull the application image and then follow the full setup guide at docs.teslamate.org for the complete compose file.
docker pull teslamate/teslamate:latestRecommended for this setup
Strengths
- Full data ownership with no third-party credential exposure: TeslaMate runs entirely on your own infrastructure. Your Tesla API token is stored locally and never sent to an external service, removing the attack surface that comes with cloud-hosted alternatives. Your location history, driving patterns, and charging records stay in a Postgres database you control.
- 9,200-plus GitHub stars with active maintenance: With 9,214 GitHub stars, 1,034 forks, and a last commit pushed on 2026-10-31, TeslaMate is one of the most actively maintained Tesla community tools. The project also holds an OpenSSF Best Practices badge, indicating security-aware development practices and documented governance.
- Fully editable Grafana dashboards: The 22-plus dashboards ship as editable Grafana panel definitions, not locked views. You can add panels, adjust queries, change thresholds, and build custom visualizations directly on the raw Postgres data. Cloud-hosted services offer fixed interfaces with no equivalent customization.
- Web interface in 19 languages: TeslaMate's web interface is localized in 19 languages including English, German, French, Japanese, Korean, and Simplified Chinese. Untranslated strings fall back to English. This breadth reflects the active international contributor community around the project.
Trade-offs
- Four-container Docker stack with no single-binary install: The standard deployment runs Postgres, Grafana, Mosquitto, and TeslaMate together via Docker Compose. This is manageable on a Raspberry Pi 4 or a small Linux server, but users without Docker or Linux experience will find the initial setup non-trivial. There is no one-click or managed install path.
- AGPL-3.0 restricts closed-source derivatives: Running TeslaMate for personal or internal use is unrestricted. If you modify TeslaMate's source code or build a product from it, you must release your version under AGPL-3.0. The project explicitly prohibits closed-source derivatives. Integrations that connect only via MQTT are not restricted.
- Depends on Tesla's unofficial API: TeslaMate reads vehicle data through Tesla's API, which Tesla does not officially document or guarantee for third-party use. API changes have disrupted logging in the past, and recovery depends on community response time to update the integration. There are 51 open issues on GitHub as of October 2026.
Tech stack
FAQ
No. TeslaMate is designed to let the car fall asleep on its normal schedule, pausing frequent polling and resuming when the vehicle wakes. The README documents this explicitly as a design goal, distinguishing it from third-party apps that poll too aggressively and keep the car awake overnight.
A Raspberry Pi 4 with at least 2 GB of RAM is the most common self-hosted setup, but any Linux server running Docker works. The stack includes TeslaMate, Postgres, Grafana, and Mosquitto, all deployed via Docker Compose. A home server or a low-cost VPS is sufficient for a single vehicle.
TeslaMate stores your Tesla API token locally on your own server and never sends it to a third party. The project warns explicitly against unofficial forks and modified versions that may misuse credentials, and recommends installing only from the official repository at github.com/teslamate-org/teslamate. Running the official version on your own hardware is lower risk than cloud-hosted services that store your token externally.
Yes. A single TeslaMate instance supports multiple vehicles on the same Tesla account, with each vehicle appearing separately in the dashboards and drive history.
You can run TeslaMate on your own hardware for personal or commercial internal use at no cost. If you modify TeslaMate's source code or build a product from it beyond the MQTT integration surface, you must release your version under AGPL-3.0. The project explicitly prohibits closed-source forks and derivatives.