Automated Tesla Preconditioning Based on Calendar Events and Travel Time

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.

  1. 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
  1. 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.
  2. A HomeyScript decodes the data, stores it in Logic variables.
  3. 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.
  4. When the countdown reaches zero, Homey checks:
  • Battery level
  • Outside temperature
  1. 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.

2 Likes

Just came to day: great job!

I don’t use iOS but Android but will keep your solution in mind.

1 Like