-
Notifications
You must be signed in to change notification settings - Fork 11
Home
Updates for PSv2 compatibility
See http://www.powershell.no/homeautomation/2017/02/19/manage-tesla-climate-control-system-using-powershell.html for details on using the module with Scheduled Tasks or Azure Automation!
Version 1.0.2: Checked in fix to multi-vehicle support. Thanks to Enrique for assistance!
I just checked in the update which enables OAUTH. Previously this module used the Tesla REST API. However, just a few days after I checked it in, Tesla withdrew the REST API, and now only supports the OAUTH API. (I never saw an official announcement, but others have noticed the same thing.) I have some publicity for https://github.com/JonnMsft/CType queued up around 2015.06.15 which hopefully will mention TeslaPSModule, so I had to scramble to fix TeslaPSModule before then. This code isn't perfectly organized yet, and a few features are missing, mostly "Set-Tesla" commands which require additional values such as temperature settings.
I borrowed the credential caching approach from https://facebookpsmodule.codeplex.com. I find this pretty convenient.
I owe Hans Jespersen big thanks for https://github.com/hjespers/teslams and his assistance with the OAUTH transition.