Using Shortcuts on iPhone with TeslaFi Sleep Mode

TeslaFi Sleep Mode works by pausing polling for a period of time to allow the vehicle to sleep.  If a drive occurs during this time and the drive is shorter than the remaining time left on the sleep attempt it will be missed.  If the drive is still occurring when the sleep attempt ends most of the data will still be available aside from the starting time and gps data for the map.

Text, email and pushover notifications can be enabled in sleep settings to alert you when a sleep attempt is going to occur so you can cancel a sleep attempt by responding to the notification if you are going to be driving soon after the attempt.

Shortcuts on iPhone can also be an easy way to assure that sleep attempts are not occurring before you start each drive.  This works by your phone sending a notice to TeslaFi each time your phone connects to your Tesla through bluetooth.  Once TeslaFi receives this notice any occurring sleep attempts will be cancelled and timers reset.

To setup Siri Shortcuts with TeslaFi you can follow the steps below:

Create a API Key:

A API Key allows other applications to communicate with TeslaFi.

  1. Navigate to settings->account-advanced->TeslaFi API Access
  2. Click the 'Generate' button near the top to generate your key.
  3. Generating your key will allow anyone with your key to perform the commands listed at the bottom of the page.  The only command needed to assist with TeslaFi Sleep Mode is the Resume Polling Command at the top.  All other commands can be unchecked if not needed.

Download the Shortcut to your iPhone:

  1. Click the following link on your iPhone to download the Shortcut:

  2. Click Add Untrusted Shortcut at the bottom of the screen.  You can review the shortcut before doing this and note the operations of sending your API key to TeslaFi once entered in the next step.
  3. Enter your API Key in the next screen and select 'Done'.

Run The Shortcut When You Connect To Your Tesla

  1. Select the Automation tab at the bottom of the Shortcuts app then select Create Personal Automation.  Image 1803
  2. Scroll down to Settings and select Bluetooth  Image 1804
  3. Click 'Choose' next to Device to choose your vehicle  Image 1805
  4. Select your Tesla under the Devices List and select DoneImage 1806
  5. Select Next on the next screen  Image 1807
  6. Select Add Action to select the shortcut we created earlier  Image 1808
  7. Select Scripting from the following optionsImage 1809
  8. From the Shortcuts section select Run Shortcut  Image 1810
  9. Select the Shortcut text to select the shortcut  Image 1811
  10. Select the TeslaFi Resume Polling shortcut Image 1812
  11. Select 'Next' Image 1815
  12. Select 'Done'  Image 1816

Now when your iPhone connects to your Tesla's bluetooth a banner will appear on your phone and when 'Run' is pressed a signal will be sent to to cancel any sleep attempts and reset polling to ensure no drives are missed.

This article was helpful for 28 people. Is this article helpful for you?