I’ve set up a system using Homey Pro and iOS Shortcuts to automatically start preconditioning my Tesla based on upcoming calendar events and travel time.
- iOS Shortcut runs every few hours and checks next upcoming calendar events (excluding Microsoft Teams meetings). It extracts:
- Event start time
- Event location
- Driving time from current location
- These values are URL-encoded and sent to Homey via a webhook, using a single tag parameter that contains all data in a structured format.
- A HomeyScript decodes the data, stores it in Logic variables.
- Another script calculates the number of seconds until the event starts, subtracts travel time and a 15-minute buffer, and starts a countdown using the CountDown app.
- When the countdown reaches zero, Homey checks:
- Battery level
- Outside temperature
- If all conditions are met, Homey triggers Tesla climate preconditioning and, if needed, defrost mode.
I have attached a picture of the flow.
I would very much like some feedback on improvements I can make.