Automations
Set up your iPhone to lock your car when it disconnects from CarPlay or your car’s Wi-Fi. First, choose whether you want to be asked before the car locks.
1. Choose How Your Car Locks
Tap the button for the option you want, then tap Add Shortcut on your iPhone. Follow the steps below for either option.
Before You Continue
- Install Bluelocke if you have not already.
- Open bluelocke in Scriptable, sign in, and check that your car appears.
- In Scriptable, the script should be called bluelocke.
- Your iPhone needs an internet connection for Bluelocke and its shortcuts to work.
2. Set It to Run When You Leave
Choose one option below. If you need to create a new automation, open Shortcuts, tap Automation, then tap + or New Automation.
Recommended: When Your Phone Leaves the Car’s Wi-Fi
This is the recommended option for walk-away auto-lock. Your phone starts the shortcut when it disconnects from your car’s Wi-Fi. You need wireless CarPlay and your car’s Wi-Fi must appear in Shortcuts.
Watch the Wi-Fi Setup
This 23-second video shows how to set up Wi-Fi disconnect for Auto-lock. Follow the same steps for Auto-Lock (Safe). The video has no sound.
If your shortcut already has a Wi-Fi automation, open the shortcut, tap the Wi-Fi name, and choose your car’s network. Then turn the automation on in the Automation tab. Keep only the one you want to use turned on.
If your shortcut doesn’t have a Wi-Fi automation, add one using these steps:
- While connected to your car’s wireless CarPlay, choose Wi-Fi in the new automation.
- Tap Choose and select your car’s Wi-Fi name. Do not choose Any Network, or it may run when you leave other Wi-Fi networks too.
- Choose When I Disconnect. If this option or your car’s Wi-Fi is missing, use the CarPlay option below instead.
- Choose Run Immediately if shown. If you see Ask Before Running instead, turn it off.
- Tap Next if shown, then choose Auto-Lock (Safe) or Auto-lock. If you see a screen for adding actions, add Run Shortcut and choose it there.
- Tap Done to save.
When CarPlay Disconnects
This also works with wired or wireless CarPlay. CarPlay can disconnect as soon as you turn the car off or unplug your phone, so add a Wait step to give yourself time to get out.
- Choose CarPlay, then Disconnects.
- Choose Run Immediately if shown. If you see Ask Before Running instead, turn it off.
- Tap Next if shown, then choose New Blank Automation or the option to add your own actions.
- Search for Wait and add it. Set the number of seconds you want to wait before locking.
- Add Run Shortcut below Wait, then choose Auto-Lock (Safe) or Auto-lock.
- Tap Done to save.
The steps must be in this order: Wait → Run Shortcut. If it still locks too quickly, increase the number of seconds in Wait.
The screens may look a little different depending on your iPhone’s software version. For Apple’s instructions, see adding an automation.
If you chose Auto-Lock (Safe): Your phone will still ask before locking the car. Run Immediately starts the shortcut; it does not skip that question.
3. Check That It Works
- Park, leave the car unlocked, and take your phone and key with you.
- End CarPlay or leave the car’s Wi-Fi, depending on the option you chose.
- If you chose Auto-Lock (Safe), answer the question on your phone. Unlock your phone if asked.
- Wait, then check the car door to make sure it locked.
Try this a few times before relying on it. Your phone starts the shortcut when it disconnects; it does not measure how far you have walked from the car.
If Something Goes Wrong
- It cannot find Bluelocke: In Scriptable, check that the script is called bluelocke. In the shortcut’s Run Script steps, select bluelocke.
- It does not work when you tap it: Open Bluelocke, sign in if asked, and check your internet connection. Get this working before trying the automatic setup.
- It works when tapped, but not when leaving: Check that your automation is turned on and uses the right shortcut. If you chose Wi-Fi, check the network name or try CarPlay instead.
- It is waiting for an answer: Auto-Lock (Safe) needs you to confirm before it locks. Check your phone.
- It runs too early with CarPlay: Increase the Wait time before Run Shortcut, or use the recommended Wi-Fi option.
- It runs more than once: Check the Automation list for extra copies. Keep only one enabled while testing.
You can change your mind later: edit the automation and choose the other shortcut. You do not need to set up a second automation.
More Shortcuts
You can also use shortcuts to lock, unlock, warm, or cool your car. See Siri & Shortcuts.