node-red-contrib-teslams 0.3.0

Nodes for controlling and getting real-time telemetry from a Tesla Model S using node-red

npm install node-red-contrib-teslams

Node-Red ( nodes for communicating with a Tesla Model S electric car. Based on the teslams javascript libraries (

These programs and documentation do not come from Tesla Motors Inc.

Be careful when using these programs as they can lock and unlock your car as well as control various functions relating to the charging system, sun roof, headlights, horn, climate control, and other subsystems of the car.

Be careful not to send your login and password to anyone other than Tesla or you are giving away the authentication details required to control your car.

Also ensure that you don't overwhelm the Tesla servers with requests. Calling functions at very high frequency can put substantial load on the Tesla servers and might get your IP blocked by Tesla. Tesla might also reset your login for too many failed login attempts.


Run the following command in the root directory of your Node-RED install

npm install node-red-contrib-teslams


You will need a Tesla Model S. The ultimate "thing" to connect to the Internet of Things. You will need an owners account on the Telsa Motors Inc. official web site ( associated with your car(s). Execute the "login" node at least once to get the appropriate security tokens for all the other nodes. All nodes besides the "login" node require the vehicle "id" to be in the input msg.payload.


Use these programs at your own risk. The author does not guaranteed the proper functioning of these applications. This code attempts to use the same interfaces used by the official Tesla phone apps. However, it is possible that use of this code may cause unexpected damage for which nobody but you are responsible. Use of these functions can change the settings on your car and may have negative consequences such as (but not limited to) unlocking the doors, opening the sun roof, or reducing the available charge in the battery.


Hans Jespersen,

#Feedback and Support

For more information, feedback, or community support see the Tesla Motors Club forum at or email [email protected]

Node Info

Version: 0.3.0
Updated 1 year, 3 months ago
License: MIT
Rating: not yet rated


1 in the last day
18 in the last week
102 in the last month


  • login
  • command
  • lock
  • sunroof
  • charger
  • charge-range
  • climate
  • set-temp


  • node-red
  • tesla
  • teslams