Self-hosted trip tracking, charge logging and remote control for Škoda cars (TeslaMate for Škoda)
2.4K
Self-hosted trip tracking, charge logging and remote control for Škoda cars: TeslaMate for Škoda. Uses Škoda's official public API with an API key from the MyŠkoda app (no account e-mail or password) and keeps the history in a local SQLite database.
Personal use only. Škoda licenses the public API for private use, not for commercial services.
Source, docs and screenshots: https://github.com/steffenr/skoda-mate
DEMO=1), 15 languages (Catalan, Czech, Danish, Dutch, English, Finnish, French, German, Hungarian, Italian, Norwegian, Spanish, Swedish, Turkish, Ukrainian), up to 5 carsWith Docker Compose (recommended):
mkdir -p ~/skoda-mate && cd ~/skoda-mate
curl -LO https://raw.githubusercontent.com/steffenr/skoda-mate/main/docker-compose.yml
docker compose up -d
docker compose logs -f skoda-mate
Without Compose (NAS, script):
docker run -d --name skoda-mate \
-p 8080:8080 \
-v "$PWD/data:/data" \
--restart unless-stopped \
steffenr/skoda-mate:latest
Open http://localhost:8080 and finish the setup in the browser: choose a login (e-mail and a password of 8+ characters), then paste your API key and VIN(s). Create the key in the MyŠkoda app (go.skoda.eu/api-keys). The 4-digit S-PIN is optional and only needed for the auxiliary heater. Enter your battery capacity in Settings afterwards: the API doesn't report it, and energy, consumption and costs need it.
Try it without a car: add -e DEMO=1 (-e DEMO_CARS=2 adds a second car).
Port: change the left side of -p 8080:8080 (or of ports: in the Compose file).
Škoda Mate is also listed in Unraid Community Applications (template uses /mnt/user/appdata/skoda-mate, port 8080; set Autostart on). See docs/UNRAID.md.
Multi-arch image for linux/amd64 and linux/arm64, tagged latest, X.Y and X.Y.Z. Pin a version (steffenr/skoda-mate:<version>) instead of latest if you prefer.
docker compose pull && docker compose up -d. The schema migrates on start and ./data survives.docker compose stop, then copy ./data (database, secret.key, and setup-code.txt on a first run). The database also has a backup function in Settings.docker compose exec -u 10001 skoda-mate python -m skoda_mate reset-password (hidden prompt, signs out all sessions; add --email [email protected] to change the address or create the login). The Škoda API key is not affected./data holds the database, secret.key and (on first run) setup-code.txt. Back it up, keep it private, never delete it. The API key and S-PIN are encrypted with secret.key, so protect the folder as a whole and don't put it on a share other household users can open./data writable for that user on start. If chown isn't possible on your volume (some NAS/NFS shares), run sudo chown -R 10001:10001 ./data once, or set user: "10001:10001".setup-code.txt, or set your own with SETUP_CODE).Set them in a .env file next to docker-compose.yml, or with -e for docker run.
| Variable | Default | Purpose |
|---|---|---|
DB_PATH | /data/skoda_mate.db | SQLite database path |
COOKIE_SECURE | off | true forces the Secure flag on the session cookie (HTTPS) |
API_TOKEN | unset | Bearer token so scripts can call the JSON API without a session |
SETUP_CODE | generated | Your own first-run setup code; no setup-code.txt is written |
DEMO / DEMO_CARS | off / 1 | Fictional car(s) with 60 days of history, no account, no network |
MQTT_HOST, MQTT_PORT, MQTT_USER, MQTT_PASSWORD | unset, 1883, empty | Home Assistant fallback for older installs; dashboard settings win |
MQTT_PREFIX | skoda_mate | Discovery and topic prefix |
Logins and Škoda keys are never read from the environment.
--proxy-headers --forwarded-allow-ips=<proxy ip> (never '*') and see the Security section on GitHub.Full README · Configuration · API limits · Security
License: AGPL-3.0-only
Inspired by leapmotor-mate by Silvio Bressani; an independent project with no shared code.
Spare-time project, free software. If it is useful to you: https://buymeacoffee.com/steffenr
docker pull steffenr/skoda-mate:latest