Setup Guide

How to connect HedgieMate to your TeslaMate server

Prerequisites

1

System Requirements

HedgieMate works with your existing TeslaMate installation. For remote access, you'll need:

  • Running TeslaMate instance or MyTeslaMate service
  • Without remote access, HedgieMate works only on local network
  • You can use domain with Cloudflare Zero Trust tunnel access, public IP or VPN solution (Tailscale, OpenVPN, etc.)

TeslaMate API Installation

2

Install TeslaMate API

HedgieMate requires TeslaMate API to function. This needs to be installed on the same server where TeslaMate is running.

Visit the TeslaMate API GitHub repository for detailed instructions.

Add this service to your existing TeslaMate docker-compose.yml file and update the environment variables to match your current TeslaMate configuration:

docker-compose.yml
... existing TeslaMate docker-compose configuration ...

services:
  teslamateapi:
    image: tobiasehlert/teslamateapi:latest
    restart: always
    depends_on:
      - database
    environment:
      - ENCRYPTION_KEY=MySuperSecretEncryptionKey
      - DATABASE_USER=teslamate
      - DATABASE_PASS=secret
      - DATABASE_NAME=teslamate
      - DATABASE_HOST=database
      - MQTT_HOST=mosquitto
      - TZ=Europe/Berlin
    ports:
      - 8080:8080

Public Access Setup (Optional)

3

Configure Public Access

Never expose your TeslaMate API publicly without proper authentication. Unauthorized access could compromise your privacy and security.

For remote access to your TeslaMate API, here are some secure options you can consider:

Recommended Solutions

Option 1: VPN Solutions

  • Tailscale Zero-config VPN, easiest setup, no public IP required
    Quick Start Guide
  • ZeroTier Software-defined networking, no public IP required
    Setup Guide
  • WireGuard Modern, fast VPN protocol
    Quick Start
  • OpenVPN Mature, widely supported VPN

Option 2: Reverse Proxy with Authentication

Option 3: Cloudflare Zero Trust (requires domain)

  • Cloudflare Zero Trust Secure tunnel with service token authentication (CF-Access-Client-Id and CF-Access-Client-Secret headers), no public IP required

If you need help setting up secure public access, contact our support team for assistance.

TeslaMate API Installation

2

Use MyTeslamate Service

MyTeslamate provides a hosted connectivity service for TeslaMate API without requiring local installation. Create a MyTeslamate account if you don't have one yet.

Important: Since the latest MyTeslamate update, authentication is ALWAYS required. Use the tobiasehlert/teslamateapi:latest image and select Basic Auth.

  1. In MyTeslamate, go to the Add-on section
  2. Enable Connectivity: TeslaMate API & MQTT and select the tobiasehlert/teslamateapi:latest image
  3. For authentication, choose Basic Auth
  4. Copy the Endpoint URL, Login and Password/Token
  5. In HedgieMate, paste the Endpoint as your API URL, the MyTeslamate Login as Username and the Password/Token as Password
  6. Stuck? Email us at [email protected] and we'll help you out.

Keep your Endpoint URL, Login and Password/Token secure. Never share them publicly – they provide full access to your TeslaMate data.

HedgieMate Configuration

4

Download HedgieMate

Install HedgieMate from the App Store on your iOS device.

Download on the App Store
5

Configure TeslaMate API URL

In HedgieMate, enter your TeslaMate API URL:

  • Public access https://your-domain.com (if using Cloudflare Zero Trust)
  • IP with port https://your-ip:8080
  • Local network http://192.168.1.xxx:8080

The URL should point to your TeslaMate API service running on port 8080.

6

Verify Connection

Test the connection, fetch cars and start exploring your Tesla data with enhanced analytics and insights provided by HedgieMate.

Need Help?

Having trouble with setup? We're here to help you get started.

Help Translate HedgieMate

Help us make HedgieMate available in more languages. Contributors who help translate the app receive a free Pro license as a thank you!

Free Pro License Start Translating