This Nodeserver works with both Polyglot V2 (On-premises installation) and Polyglot cloud.
- Own a Tesla Vehicle
- Have your Tesla account user ID and password.
- If you want to use it on the cloud, you also need an ISY Portal account, and a license to access your ISY.
If you want to use this Nodeserver in the cloud, just go to polyglot.isy.io, click on Store, and add the Tesla Nodeserver.
If you want to use it on-premises:
- Install Polyglot-V2. Instructions here
- Make sure you have Node.js & NPM installed
sudo apt install nodejs
sudo apt install npm
- Install this node server
Go to Nodeservers|Nodeserver Store, and add the Tesla Nodeserver.
- Login to Polyglot and go to your Tesla nodeserver.
- Enter your Tesla account user ID and password
- You should see a "Tesla Controller" node appear in the ISY admin console, and your vehicle(s) underneath. You may need to restart the admin console.
- As of version 1.0.4 polling behaviour has changed. The short poll value is defaulted to 15 seconds and is intended to give near real time updates without letting the vehicle go to sleep. By default short polling will not be active so you may not see data populate in the ISY admin area at first launch. Issuing the "Wake" command will enable the short poll to call the Tesla API. Issuing the "Let vehicle sleep" command will again disable short polling. Note that if you do not issue the "Let vehicle sleep" command then the Tesla will not go to sleep as the polling rate is fairly high and accessing the Tesla API will keep the vehicle awake.
- As of version 2.1.0 when the General node is in wake mode it will refresh on the short poll and so will the Security and Climate nodes.
- As of version 2.1.0 the ability to enable/disable the security commands. By default "Enable Security Commands" is set to false.
- As of version 2.1.0 a configuration value to change the logging level to help in debugging.
- As of 2.2.0 the long poll is used to limit the "wake" period. The Query command may be used to refresh the nodes independent of the wake status.
Long polling is now defaulted to 2700 seconds (45 minutes) to allow the Tesla time to fall asleep but still periodically gather data from it if it happens to be awake. The long poll is also the limit of time that the "wake" command will run the short poll.
The use case intended for more real time short term polling with the ability to enable/disable it programmatically is so you could issue a command to the vehicle (e.g. start the climate control system) and then get a notification when the vehicle is now up to temperature.
You can adjust in Polyglot the short and long poll values which represents how frequently data is refreshed, in seconds.
The configuration setting "Enable Security Commands" allows you to limit security sensitive controls like your vehicle's doors, frunk, trunk, or windows. Values for the configuration are "true/false". Enter the value "true" to enable all the security commands. Or, individual commands may be enabled with a comma separated list of values from "lock", "sunroof", "charge_port", "windows", "trunk", "frunk", "sentry", and "software_update".
If you want to use the Home Location functionality, enter your home latitude and longitude in the Home Lat Lon. The decimal values must be separated by a space. e.g. 37.4924845 -121.944623
The configuration setting Custom Logging Level may have the values "error", "warn", "info", "verbose", "debug".