Skills2026年5月12日·1 分钟阅读

TeslaMate — Self-Hosted Tesla Data Logger and Visualizer

TeslaMate is a self-hosted data logger for Tesla vehicles that records driving, charging, and battery data and visualizes it through Grafana dashboards.

Agent 就绪

这个资产可以被 Agent 直接读取和安装

TokRepo 同时提供通用 CLI 命令、安装契约、metadata JSON、按适配器生成的安装计划和原始内容链接,方便 Agent 判断适配度、风险和下一步动作。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
TeslaMate Overview
通用 CLI 安装命令
npx tokrepo install 22ae8b3a-4e41-11f1-9bc6-00163e2b0d79

Introduction

TeslaMate is a self-hosted data logger for Tesla vehicles that continuously records driving statistics, charging sessions, battery health, and location history. It stores all data locally in PostgreSQL and presents it through pre-built Grafana dashboards, giving Tesla owners full control over their vehicle data without relying on third-party cloud services.

What TeslaMate Does

  • Logs every drive with distance, energy consumption, speed, and route data
  • Records charging sessions with energy added, cost calculations, and efficiency
  • Tracks battery degradation over time with state-of-health estimates
  • Stores location history with geofencing for home, work, and custom locations
  • Provides over 20 pre-built Grafana dashboards for data visualization

Architecture Overview

TeslaMate is an Elixir/Phoenix application that polls the Tesla API at configurable intervals to collect vehicle state, drive, and charge data. It persists everything in a PostgreSQL database and uses an MQTT broker to publish real-time updates. A bundled Grafana instance reads from the same database to render dashboards. The system supports multiple vehicles under one Tesla account.

Self-Hosting & Configuration

  • Deploy with Docker Compose including TeslaMate, PostgreSQL, Grafana, and Mosquitto
  • Authenticate with your Tesla account via the web UI on first launch
  • Set up geofences to automatically label locations like home and workplace
  • Configure electricity costs per kWh for accurate charging cost calculations
  • Enable MQTT publishing for integration with Home Assistant or other automation platforms

Key Features

  • Fully local data storage with no dependency on third-party analytics services
  • Automatic sleep detection to avoid draining the vehicle's 12V battery
  • Lifetime driving statistics with energy efficiency and cost breakdowns
  • MQTT integration for real-time vehicle state in home automation systems
  • Active open-source community with regular updates and new dashboard contributions

Comparison with Similar Tools

  • TeslaFi — cloud-based with a subscription fee; TeslaMate is free and self-hosted
  • Tessie — proprietary SaaS with polished UI; TeslaMate offers more data control
  • Tesla official app — limited historical data; TeslaMate stores everything indefinitely
  • Teslascope — cloud service focused on fleet tracking; TeslaMate is for individual owners
  • Home Assistant Tesla integration — real-time only; TeslaMate adds historical logging and dashboards

FAQ

Q: Does TeslaMate drain my Tesla battery? A: No. TeslaMate detects when the car is trying to sleep and suspends polling to avoid phantom drain.

Q: Can I track multiple Tesla vehicles? A: Yes. All vehicles under your Tesla account are automatically detected and logged.

Q: What Grafana dashboards are included? A: Over 20 dashboards covering drives, charges, battery health, efficiency, mileage, and visited locations.

Q: Is my Tesla account data secure? A: All data stays on your self-hosted server. TeslaMate communicates directly with the Tesla API using your credentials stored locally.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产