# How to Check if Bluetooth Is On in Shortcuts on iPhone and Mac

Updated: November 24, 2026

- [Actions](https://sindresorhus.com/actions.md): Additional actions for the Shortcuts app. Price: Free. Platforms: macOS, iOS, visionOS. Get it from: [App Store](https://apps.apple.com/app/id1586435171). Requires macOS, iOS, or visionOS 26 or later. Size: 13 MB on Mac, 29 MB on iPhone and iPad. Free older versions for macOS 15, 14, 13, and 12: [download](https://sindresorhus.com/actions#older-versions). US App Store rating: 4.8/5 (703 ratings).

URL: https://sindresorhus.com/guides/shortcuts-check-bluetooth-on

Add the “Is Bluetooth On” action of the free [Actions](https://sindresorhus.com/actions.md) app, and check its result in an “If” action. [Without an app](https://sindresorhus.com/guides/shortcuts-check-bluetooth-on#without-an-app), Shortcuts can turn Bluetooth on or off with “Set Bluetooth”, but it has no action that tells if it is on. On Mac, a “Run Shell Script” action can check it.

## With Actions

1. Install [Actions](https://sindresorhus.com/actions.md), and open it once. On iPhone, allow it to use Bluetooth when it asks. The action does not work without this access.
1. In your shortcut, add the [“Is Bluetooth On”](https://sindresorhus.com/actions#:~:text=Is%20Bluetooth%20On) action of Actions. It has no options.
1. Add an “If” action below it that checks if the result is true.
1. Put the actions for when Bluetooth is on in the “If” part, and the other actions in the “Otherwise” part.

If the action says “No access to Bluetooth”, give the access in “Settings › Apps › Actions” on iPhone, or turn on Actions in “[System Settings › Privacy & Security › Bluetooth](x-apple.systempreferences:com.apple.settings.PrivacySecurity.extension?Privacy_Bluetooth)” on Mac.

- To check one device, use “Is Bluetooth Device Connected” with the identifier that “Get Bluetooth Devices” gives.
- To check if your AirPods play the audio of the iPhone, [use “Get Audio Playback Destination”](https://sindresorhus.com/guides/shortcuts-check-airpods-connected-iphone.md).

## Without an app

On iPhone, the Shortcuts app can change Bluetooth, but it cannot read it:

- The “Set Bluetooth” action turns Bluetooth on or off. If your shortcut needs Bluetooth, add it with “On” before the actions that need it. This is often enough, as it does nothing when Bluetooth is already on.
- The “Bluetooth” automation runs a shortcut when a device that you choose connects or disconnects.

On Mac, a “Run Shell Script” action can read it with this command, which gives 1 when Bluetooth is on and 0 when it is off:

```sh
system_profiler SPBluetoothDataType | grep -c 'State: On' || true
```

A script needs “Allow Running Scripts”: choose “Shortcuts › Settings”, click “Advanced”, and turn it on.

On iPhone, for a shortcut that must do one thing when Bluetooth is on and another when it is off, use the action of Actions.
