Node Red
Vehicle Commands
Control your Tesla vehicle with Node-RED
Vehicle Command Node
The teslemetry-vehicle-command node allows you to send commands to your Tesla vehicle.
Node Configuration
| Property | Description |
|---|---|
| Teslemetry Config | Select your Teslemetry configuration node |
| VIN | The vehicle's VIN (can be overridden via msg.vin) |
| Command | The command to execute (can be overridden via msg.command) |
Available Commands
| Command | Description | Required Parameters |
|---|---|---|
| vehicleData | Get current vehicle data | - |
| wakeUp | Wake the vehicle from sleep | - |
| flashLights | Flash the vehicle's lights | - |
| honkHorn | Honk the vehicle's horn | - |
| lockDoors | Lock all doors | - |
| unlockDoors | Unlock all doors | - |
| actuateTrunkRear | Open/close rear trunk | - |
| actuateTrunkFront | Open frunk | - |
| startAutoConditioning | Start climate control | - |
| stopAutoConditioning | Stop climate control | - |
| setTemps | Set cabin temperature | msg.driver_temp, msg.passenger_temp |
| setSeatHeater | Set seat heater level | msg.seat, msg.level (0-3) |
| setSteeringWheelHeaterOn | Turn on steering wheel heater | - |
| setSteeringWheelHeaterOff | Turn off steering wheel heater | - |
| startCharging | Start charging | - |
| stopCharging | Stop charging | - |
| openChargePort | Open charge port door | - |
| closeChargePort | Close charge port door | - |
| setChargeLimit | Set charge limit | msg.percent (0-100) |
| setChargingAmps | Set charging current | msg.amps (5-48) |
| setSentryModeOn | Enable sentry mode | - |
| setSentryModeOff | Disable sentry mode | - |
| remoteStart | Enable keyless driving | - |
| triggerHomelink | Trigger Homelink | msg.lat, msg.lon |
| navigationRequest | Send navigation destination | msg.value |
Seat Heater Values
For the setSeatHeater command, the msg.seat parameter accepts:
front_leftfront_rightrear_leftrear_centerrear_rightthird_row_leftthird_row_right
Example Flow
[
{
"id": "inject-node",
"type": "inject",
"name": "Lock Car",
"payload": "",
"wires": [["command-node"]]
},
{
"id": "command-node",
"type": "teslemetry-vehicle-command",
"name": "Lock Doors",
"vin": "5YJ3E1EA1KF000000",
"command": "lockDoors",
"wires": [["debug-node"]]
}
]
Dynamic Commands
You can override the VIN and command at runtime by setting msg.vin and msg.command:
msg.vin = "5YJ3E1EA1KF000000";
msg.command = "setChargeLimit";
msg.percent = 80;
return msg;