Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save janegilring/1af6d498f02abcfa43129d75fee3ff3a to your computer and use it in GitHub Desktop.

Select an option

Save janegilring/1af6d498f02abcfa43129d75fee3ff3a to your computer and use it in GitHub Desktop.
Schedule Tesla auto conditioning - basic example
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