TeslaMate records detailed driving and charging data from your Tesla into Postgres and visualizes it with bundled Grafana dashboards. It minimizes extra vehicle wake time and supports multiple cars per account.
Overview
TeslaMate is a self-hosted data logger for Tesla vehicles. It collects high-precision drive and charging information, stores it in a PostgreSQL database, and pairs with Grafana for analysis through many prebuilt dashboards covering battery health, trips, efficiency, locations, updates, and related metrics.
The web interface handles sign-in with Tesla API tokens, settings, and links to dashboards. Features include automatic address lookup, geo-fenced custom locations, charge cost tracking, MQTT export for Home Assistant, Node-RED, or Telegram workflows, multi-vehicle support per account, and imports from TeslaFi or tesla-apiscraper. The UI is available in many languages with English fallback.
Official installation uses Docker Compose on a always-on host with outbound internet to reach Tesla. Images support aarch64 and amd64, including 64-bit Raspberry Pi boards. Components typically include the TeslaMate app, Postgres, Grafana, and Mosquitto for MQTT. Documentation recommends securing internet exposure with VPN, tunnel, or hardened reverse proxy because API tokens are sensitive on untrusted networks.
TeslaMate is an independent project unaffiliated with Tesla, Inc. License terms require derivatives to remain open source when shared, and integrations are expected to use the documented MQTT surface.
Key features
- High-precision drive and charge logging
- Postgres storage with Grafana dashboards
- MQTT integration for home automation
- Geo-fencing and address lookup
- Multi-vehicle Tesla account support
- Charge cost tracking
- Import from TeslaFi or tesla-apiscraper
- Low extra vampire drain when parked
Use cases
- Analyzing Tesla efficiency and trip history
- Tracking battery health and degradation
- Feeding vehicle data into Home Assistant
- Self-hosted alternative to paid Tesla loggers
- Monitoring charging costs and patterns