TeslaMate iOS App Setup Guide — Mytess Documentation
Get started with Mytess, the best TeslaMate iOS app, in three simple steps. This guide walks you through deploying the API service, connecting the app, and viewing your Tesla data.
Step 1 — Deploy TeslaMateAPI
Deploy the mytesla/teslamateapi service alongside your TeslaMate instance using Docker Compose. If you are starting from scratch, use our one-line install script: curl -fsSL https://mytess.net/scripts/mytess-install.sh | bash. This automatically sets up TeslaMate, the API service, PostgreSQL, Grafana, and Mosquitto MQTT broker. If you already have TeslaMate running, add the teslamateapi service to your existing docker-compose.yml and run docker compose up -d.
Step 2 — Configure the Mytess iOS App
Download Mytess from the App Store. Open the app and go to Settings. Enter your TeslaMateAPI address (e.g. http://your-server-ip:3030) plus API Access Key and API Secret Key. These are the TeslaMateAPI credentials, not TeslaMate's Tesla access/refresh tokens. Tap Test Connection to verify. If your server is behind a Cloudflare Tunnel or reverse proxy, enter the public HTTPS URL. You can also enable Basic Auth or use Cloudflare Service Auth (CF-Access-Client-Id / CF-Access-Client-Secret headers) for extra security.
Step 3 — View Your Tesla Data
Once connected, Mytess displays your Tesla's real-time status, battery health, trip history, charging costs, and statistics. Enable push notifications in Settings to receive alerts for charge complete, parking overtime, and more. A one-time PRO upgrade ($12.99) unlocks all premium features including battery degradation tracking, drive insights, advanced statistics, and Live Activity on the Dynamic Island.
Need Help?
Visit the FAQ page for common issues, or join our Telegram group for community support. You can also email us at hi@mytesla.cc.
Mytess & TeslaMate FAQ — Common Questions & Troubleshooting
How can I get help?
Join our Telegram group for the fastest support! You can also reach us via email at hi@mytesla.cc, our Discord community, or check the documentation below.
What is the difference between Free and Mytess PRO?
Free includes live vehicle Status, the most recent 3 calendar days of drives/charges/parking and statistics, My Footprint, Place Insights, Sentry Events, Home Screen widgets, Siri Shortcuts, viewing/editing existing Trips, manual parking Live Activity, and generating Share Posters within your visible range. Mytess PRO ($12.99 one-time in-app purchase on self-hosted setups) unlocks full unlimited history and statistics, Map Mode, Battery Health & Trends, Mileage & Milestones, creating & sharing new Trips, Geofence Time-of-Use & Parking Fee rules, Cost Review, Automatic Classification rules & full CSV export, Push Notifications & Charging/Navigation/Camp Mode Live Activities, Home Badge Stickers, Weekly/Monthly/Annual/Lifetime Recaps, and 7d/30d/This Month trends on Apple Watch.
Will Mytess wake up my Tesla or drain battery while parked?
No. Mytess is a read-only companion app that never sends remote wake-up or control commands to your vehicle. It reads state published by TeslaMate and MQTT, preserving your Tesla's natural sleep cycle.
How do I reset Battery Health after replacing my battery pack?
Go to Status › tap the Battery Ring (or Settings › Data & Records › Battery Health), tap the Battery Replacement Date option, and pick the date your replacement pack was installed (requires API 2.9.3+). Mytess will recalculate capacity retention and range baseline from that date onward while keeping earlier records intact if you later clear the date.
Does Mytess support Apple Watch, iPad, and foldable iPhone Duo?
Yes. Mytess supports iPhone (iOS 18.0+), iPad (adaptive two-column split layouts), foldable iPhone Duo (side-by-side split views, Tent Mode, and Tabletop Mode), and Apple Watch (watchOS 11+ read-only stats app, Digital Crown trend scrubbing, watch-face complications, Smart Stack cards, and Watch Live Activities).
Why do some drives or charges show '--' for cost or energy?
Mytess follows a strict 'never fake unknown data' policy—if TeslaMate hasn't recorded electricity rates for a charging location or a drive lacks sufficient telemetry samples, Mytess displays '--' instead of inventing zeros. To add costs to unpriced sessions, open Settings › Data & Records › Locations, set up your geofence rate or parking fee rule, then swipe right on the location and tap Batch Update to backfill past charges.
What is mytesla/teslamateapi?
mytesla/teslamateapi is the API service that bridges your TeslaMate data with the Mytess app. It is based on tobiasehlert/teslamateapi (thanks to the original author) and is supported by the official myteslamate connect feature. It only reads data from your database and MQTT service, never modifies any existing TeslaMate data structures, and never uploads your vehicle or driving data. To light up regions in My Footprint, it downloads public administrative boundary files on demand from file.mytess.net and saves them locally on your server. If notifications or Live Activities are enabled, alerts are forwarded to Apple APNs via Mytess's push relay service—which only relays messages without storing any data and never includes unique vehicle identifiers such as VIN. Data privacy is our top priority, so you can use it with confidence.
Why does mytesla/teslamateapi connect to file.mytess.net or the push relay service? Is my data safe?
Rest assured: your vehicle, location, and trip data always stays on your own server and is never uploaded or collected. mytesla/teslamateapi only makes external network requests for two specific features: 1. Downloading administrative boundary data from file.mytess.net To light up the cities and regions you've visited in My Footprint without bloating the Docker image, the API service downloads public administrative boundary map files on demand from file.mytess.net and caches them on your own server. This is strictly a one-way download of public map data—your GPS coordinates, routes, and vehicle details are never uploaded, and all footprint matching runs locally on your server. 2. Delivering notifications through the APNs push relay service When you turn on alerts (such as charging or arrival/departure notifications) or Live Activities, Apple Push Notification service (APNs) requires requests to be signed with the app developer's credentials, so a self-hosted server cannot push directly to Apple. Instead, the API service forwards those notifications to Apple APNs through Mytess's push relay service. The relay only forwards messages in real time—it never stores or logs notification content, device tokens, or vehicle history, and never includes unique vehicle identifiers (such as VIN) or Tesla account details. If notifications are turned off, no push requests are sent.
How to upgrade mytesla/teslamateapi?
To upgrade TeslaMateAPI to the latest version, you can use our one-click tool or run the commands manually. The one-click tool will only pull and restart the teslamateapi service — your TeslaMate, database, and MQTT services will not be affected. Keep the API data volume when upgrading. Mount teslamateapi-data at /opt/app/data and add teslamateapi-data: to the existing top-level volumes: section (create that section only if absent). If /opt/app/data already has a volume, keep it instead. This preserves downloaded Footprint boundaries and API files across container replacement. Missing boundaries download automatically; network failures retry. Do not delete the volume or run docker compose down -v during an upgrade. Pull the new image and recreate only teslamateapi; a simple restart does not update the image.
How to backup TeslaMate data?
It is strongly recommended to backup your TeslaMate database regularly. The backup creates a PostgreSQL dump file that contains all your vehicle data, trip records, charging history, etc. You can use our one-click tool or run the pg_dump command manually. The backup file size depends on your usage — typically between 5 MB and 500 MB. Make sure to store the backup file in a safe location (external drive, cloud storage, etc.). ⚠️ Some Docker GUIs may DELETE the folder containing your compose file when updating, which could also delete your backup. Always move backups to a separate safe location!
How to automatically back up TeslaMate data to S3 object storage?
Yes. Use the S3 automatic backup script. It follows the official TeslaMate backup method: pg_dump creates a PostgreSQL backup from the database container; the script runs without a TTY so it works from cron, compresses the file as .bck.gz, and uploads it to your configured S3 bucket. On the first run it asks for Bucket, object prefix, Region, Endpoint, Access Key ID, and Secret Access Key. After the first successful upload, it can install a daily crontab job for you. If AWS CLI is not installed, the script can automatically install AWS CLI v2 into ~/.mytess on Linux x86_64/aarch64 or macOS Intel/Apple Silicon, without requiring root access. On Linux the installer needs curl plus unzip or python3; on macOS it uses AWS's official PKG installer. If automatic installation is unavailable, it tells you how to install AWS CLI manually. The setup wizard tests the bucket by uploading a tiny object, checking it with HEAD, and deleting it. If the test fails, it explains the likely issue and asks whether to reconfigure. If clock skew is detected, the script attempts to enable NTP/chrony/time synchronization automatically and retries before failing. Remote storage keeps one stable backup object by default: for better S3-compatible reliability, backups under 5GB are uploaded as a single PUT to a timestamped staging object, the script verifies its size with retries, then replaces teslamate_latest.bck.gz only after the new upload is confirmed. If upload or verification fails, the previous cloud backup is left untouched. Locally, the script keeps the latest 3 backup files. Common international S3 services: Amazon S3 (create a bucket, create an IAM access key, choose the bucket region; endpoint can usually be left empty), Cloudflare R2 (create a bucket and R2 API token; endpoint is https://<account_id>.r2.cloudflarestorage.com, region often uses auto), Backblaze B2 (create an S3-compatible bucket and application key; the bucket page shows the S3 endpoint and the region is part of that endpoint), Wasabi or DigitalOcean Spaces (create a bucket/space and access key, then use the provider's regional endpoint). Keep the bucket private, use a least-privilege key for the backup prefix, and enable server-side encryption if your provider supports it.
How to restore TeslaMate data?
To restore from a backup file, the process will: 1. Stop TeslaMate to prevent write conflicts 2. Drop and recreate the database schema (with required extensions) 3. Restore data from the backup file 4. Restart TeslaMate ⚠️ WARNING: This is a destructive operation! All current data will be replaced with the backup data. Make sure you have the correct backup file before proceeding. It is recommended to create a backup of the current data first.
How do I clear all data from a one-click TeslaMate deployment?
⚠️ This cannot be undone. Back up first and store the backup somewhere safe. This command stops the selected Compose project and removes its containers (including orphans), non-external networks and data volumes. For a standard one-click deployment, this deletes all vehicle history, Grafana settings and MQTT data. The default installation path is $HOME/teslamate/docker-compose.yml; replace it if you chose another directory. Check the displayed file, services and volumes, then type DELETE to confirm. Enter or any other input cancels. Stopped installations are also supported. Images, Compose configuration, backup files, host bind mounts (such as data and import) and external volumes are kept. Custom mounts require separate cleanup. Services remain stopped; run the installer again or use the optional start command below for a fresh instance.
Mytess homepage shows no data on first use?
This is normal! Here's why: Mytess gets data through this flow: TeslaMate → MQTT (Mosquitto) → TeslaMateAPI → Mytess App. TeslaMate pushes vehicle status to MQTT in real-time. TeslaMateAPI subscribes to MQTT to receive this data. If TeslaMate hasn't pushed any data yet (e.g., after a fresh install or restart), the homepage will appear empty. Solution: Try restarting all TeslaMate services. This will trigger TeslaMate to re-push the latest data to MQTT, and TeslaMateAPI will pick it up.
How to collect diagnostic info for troubleshooting?
If you're experiencing issues, you can collect diagnostic information and share it with our support team. The tool will collect: • Service status — which containers are running, stopped, or unhealthy (docker compose ps) • Resource usage — CPU and memory usage of each container (docker stats) • TeslaMateAPI logs — the last 100 lines of TeslaMateAPI container logs No sensitive data (passwords, tokens) will be included in the report. The output is saved to a text file you can share with us.
What if the address names for charging, parking, and trip start/end points are inaccurate?
TeslaMate uses OpenStreetMap for reverse geocoding by default, which may not always provide accurate address names in some regions. Solution: Replace the TeslaMate image with mytess/teslamate, an enhanced version based on TeslaMate with improved reverse geocoding. Apply for a Google Maps API key with Geocoding API permission enabled, then configure the GOOGLE_MAPS_API_KEY environment variable.
Domande frequenti
Risposte su funzioni Mytess, licenza PRO e gestione di TeslaMate.