Created
February 19, 2017 11:32
-
-
Save janegilring/1af6d498f02abcfa43129d75fee3ff3a to your computer and use it in GitHub Desktop.
Schedule Tesla auto conditioning - basic example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Import-Module -Name Tesla | |
| Connect-Tesla | |
| Write-Output "$(Get-Date): Starting heating and sleeping for 10 minutes" | |
| Set-Tesla -Command auto_conditioning_start | |
| Start-Sleep 600 | |
| Write-Output "$(Get-Date): Stopping heating" | |
| Set-Tesla -Command auto_conditioning_stop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment