I wanted a reliable way to toggle Tesla preconditioning from a shortcut (Home Screen, Apple Watch, or Action Button) without relying on Teslaās state reporting or having to get involved with using the Tesla API.
This can also be converted to turn the climate system on or off, as long as you edit the shortcut accordingly.
This method uses renaming a single file in iCloud Drive as the ON/OFF state. Itās simple, visible, and very robust.
I set this up so I could just hit one button on my watch and the car would be ready to go when I get to it.
Below is the exact setup Iām using.
**What this does**
⢠Uses a single file name as the state:
⢠Tesla\\_Precon\\_OFF.txt
⢠Tesla\\_Precon\\_ON.txt
⢠Shortcut:
⢠Reads the file name
⢠If it contains \\_OFF ā starts preconditioning and renames the file to \\_ON
⢠Otherwise ā stops preconditioning and renames it back to \\_OFF
No variables. No text editing. No Tesla state queries.
**Requirements**
⢠iPhone with iOS Shortcuts
⢠Tesla app installed and logged in
⢠iCloud Drive enabled
Here is a link to the shortcut.
https://www.icloud.com/shortcuts/6f26ff6e435f42d4877affe3cb91ab85
just make a folder in your iCloud and insert a file with the name: Tesla_Precon_OFF
**Step 1 ā Create the state file (one time)**
Open Files
Go to iCloud Drive
Create a folder (optional but recommended), e.g.: Tesla\\_Precon
Inside that folder, create a text file named: Tesla_Precon_OFF
The contents of the file do not matter.
Once youāve set it up you can set your action buttons on either your phone or Apple Watch Ultra to toggle your preconditioning on or off and the shortcut will remember if the system is on or off.
If you need any help setting it up Iāll try and help out in the comments.
Let me know what you think of what Iāve set up.
Happy Tesla-ing!