N8n

Trigger Node

Start workflows from real-time Tesla events

Teslemetry Trigger Node

The Teslemetry Trigger node starts workflows when events occur on your Tesla vehicles. It connects to Teslemetry's streaming API for real-time event delivery.

Node Configuration

PropertyDescription
CredentialSelect your Teslemetry credentials
VINOptional vehicle filter (empty for all)
Event TypeType of events to trigger on
Signal FieldSpecific field for Signal events

Event Types

EventDescription
All EventsTrigger on any event
DataTelemetry data updates
StateVehicle state changes (online, asleep, driving)
Vehicle DataFull vehicle data responses
ErrorsError events from the vehicle
AlertsAlert notifications (sentry, etc.)
ConnectivityConnection status changes
CreditsAPI credit usage updates
ConfigConfiguration changes
SignalSpecific telemetry field changes

Signal Event

When using the Signal event type, you must specify a VIN and the telemetry field to monitor. The trigger fires whenever that field value changes.

Common signal fields:

  • BatteryLevel - State of charge
  • ChargeState - Charging status
  • Location - GPS coordinates
  • Speed - Vehicle speed
  • InsideTemp - Cabin temperature
  • Odometer - Total mileage

Output

The trigger outputs event data:

{
  "vin": "5YJ3E1EA1KF000000",
  "timestamp": "2024-01-15T10:30:00Z",
  "type": "state",
  "data": {
    "state": "online"
  }
}

For Signal events:

{
  "field": "BatteryLevel",
  "value": 75,
  "topic": "signal"
}

Example Workflows

Low Battery Alert

Notify when battery drops below 20%:

  1. Teslemetry Trigger - Signal: BatteryLevel
  2. IF Node - Value less than 20
  3. Slack/Email - Send notification

Arrival Detection

Trigger home automation when arriving:

  1. Teslemetry Trigger - Signal: Location
  2. Code Node - Calculate distance from home
  3. IF Node - Distance less than 500m
  4. HTTP Request - Trigger smart home scene

Charging Complete

Notify when charging is finished:

  1. Teslemetry Trigger - State events
  2. IF Node - Check for charge complete state
  3. Push Notification - Alert user

Connection Handling

The trigger node maintains a persistent connection to the streaming server. If the connection drops, it automatically reconnects. During workflow execution, the connection status is shown in the n8n canvas.