ABOUT
TeslaMate is a self-hosted data logger for Tesla vehicles. It records drives, charges, battery health, efficiency and vehicle updates into PostgreSQL and visualizes everything through a set of prebuilt Grafana dashboards, with optional MQTT publishing for home automation.
warningTwo web interfaces: TeslaMate on port 4000 (sign in with your Tesla account there) and Grafana on port 3000 with the TeslaMate dashboards. The Grafana credentials admin/admin must be changed on first login.
warningTeslaMate has no authentication of its own. Your Tesla API tokens are stored in it, so never expose port 4000 to the internet without putting an authenticating reverse proxy in front of it.
infoA local Mosquitto broker is installed and TeslaMate publishes to it on 127.0.0.1. Point your home automation at port 1883, or set DISABLE_MQTT=true in /opt/teslamate.env if you do not need it.
warningENCRYPTION_KEY in /opt/teslamate.env encrypts the stored Tesla tokens - losing it means re-authenticating every vehicle. Set TZ to your local timezone for correct drive and charge timestamps. Vehicle data lives in the PostgreSQL database 'teslamate'.
infoBuilt from source with Elixir/Phoenix - the initial build takes several minutes.
INSTALL
Approved local installer
DefaultDebian 13
Approved locally2 CPU4096 MB RAM16 GB disk
Config path/opt/teslamate.env
Run this command in the Proxmox VE shell. It downloads the immutable approved file, verifies SHA-256, and only then executes it.
( url='https://scripts.francoisvw.com/snapshots/c19711ea1b2526bec67e34be948114e255b5a811/ct/teslamate.sh'; sha='bd939d4c8d61662a63e78e43deab4ee8a27a2a4c45d111afd23b7573ce5a542f'; tmp="$(mktemp)" || exit; curl -fsSL "$url" -o "$tmp" && printf '%s %s\n' "$sha" "$tmp" | sha256sum -c - && bash "$tmp"; rc=$?; rm -f "$tmp"; exit "$rc" )
View approved source ↗Path ct/teslamate.shSHA-256 bd939d4c8d61662a63e78e43deab4ee8a27a2a4c45d111afd23b7573ce5a542f LOCAL CHANGE REVIEW
Approved vs latest fetched source
Sign in with a passkey to inspect pending source changes. Approved content remains public.