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
| Property | Description |
|---|---|
| Credential | Select your Teslemetry credentials |
| VIN | Optional vehicle filter (empty for all) |
| Event Type | Type of events to trigger on |
| Signal Field | Specific field for Signal events |
Event Types
| Event | Description |
|---|---|
| All Events | Trigger on any event |
| Data | Telemetry data updates |
| State | Vehicle state changes (online, asleep, driving) |
| Vehicle Data | Full vehicle data responses |
| Errors | Error events from the vehicle |
| Alerts | Alert notifications (sentry, etc.) |
| Connectivity | Connection status changes |
| Credits | API credit usage updates |
| Config | Configuration changes |
| Signal | Specific 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 chargeChargeState- Charging statusLocation- GPS coordinatesSpeed- Vehicle speedInsideTemp- Cabin temperatureOdometer- 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%:
- Teslemetry Trigger - Signal: BatteryLevel
- IF Node - Value less than 20
- Slack/Email - Send notification
Arrival Detection
Trigger home automation when arriving:
- Teslemetry Trigger - Signal: Location
- Code Node - Calculate distance from home
- IF Node - Distance less than 500m
- HTTP Request - Trigger smart home scene
Charging Complete
Notify when charging is finished:
- Teslemetry Trigger - State events
- IF Node - Check for charge complete state
- 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.