TeslaMatrix

0.9.98

TeslaMatrix is a powershell module for managing your Tesla car from the command line.

If you are about to order a new tesla car, please consider using my referral code.
For that you (and I) will get 1000 miles / 1500 km of free super charging and you will have a chance to win a Model Y (one time per month) and a Roadster (once every 3 months)
Click this link https:/
TeslaMatrix is a powershell module for managing your Tesla car from the command line.

If you are about to order a new tesla car, please consider using my referral code.
For that you (and I) will get 1000 miles / 1500 km of free super charging and you will have a chance to win a Model Y (one time per month) and a Roadster (once every 3 months)
Click this link https://ts.la/john53080 or use the method Get-FreeSuperCharging in the module.

How to get:
The module is automatically pushed to the Powershell gallery https://www.powershellgallery.com/packages/TeslaMatrix
To install it on your system, just simply type Install-Module TeslaMatrix -scope CurrentUser

How to use:
Import the module is done just by typing Import-Module TeslaMatrix
During Import the module will ask for your tesla credentials.
You can also save your credentials in a local credential object and pass it to the Import-Module command as shown below.
Import-Module TeslaMatrix -argumentlist @{Credential=$cred}
You can also, if preferred, only send your tesla refresh token to the module. The module will ask the tesla API for a new token based on that.
Import-Module TeslaMatrix -argumentlist @{RefreshToken="1234567890"}

Most functions in this module takes as input the id of the vehicle you want to do the operation to.
The default value, if id is not specified, is the currently selected vehicle.
If you only have one vehicle in your account that vehicle is the selected vehicle.

If you have more than one vehicle, then you can easily select the active vehicle using the Select-Vechicle function
Either by using the id of the vehicle or the name. When you import the module, the first vehicle in your account is automatically selected.

Select-Vechicle -name Neo
or
Select-Vehicle -id 1234567890

To view the vehicles in your account, use the function Get-Vehicles.

To get the list of functions in the module, you can write Get-Command -Module TeslaMatrix.
To get help on functions you can write Get-Help FunctionName (as in Get-Help Invoke-ValetMode)

Sourcecode can be found on github (https://github.com/jower999/TeslaMatrix).
You are most welcome to contribute by forking the code and sending me a pull-request.

TeslaMatrix powershell module is based on the unofficial documentation of the tesla API
The documentation can be found on https://tesla-api.timdorr.com/
Show more

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name TeslaMatrix

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name TeslaMatrix

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) John Petersen. All rights reserved.

Package Details

FileList

Version History

Version Downloads Last updated
0.9.98 (current version) 262 2/5/2021
0.9.97 48 2/5/2021
0.9.95 48 2/4/2021
0.9.9 52 1/25/2021
0.9.8 47 1/25/2021
0.9.7 46 1/24/2021
0.9.6 50 1/14/2021
0.9.5 47 1/14/2021
0.9.4 46 1/11/2021
0.9.3 48 1/10/2021
0.9.2 44 1/7/2021
0.9.1 46 1/6/2021
0.9.0 48 1/6/2021
Show more