Control air purifier

Toggles a smart switch by checking its current power state and turning it off or back on accordingly.

Actions Used

shortcuts-action-icon-if.webp
If
Tests if a condition is true, and if so, runs the actions inside. Otherwise, the actions under “Otherwise” are run.
Get the state of Home
Get the state of [name of Home set up in the Home app).
Control Home
Set the state of [name of Home set up in the Home app] by selecting scenes and accessories to automate.

Extra Details

Run Shortcut deep link
shortcuts://run-shortcut?name=Control%20air%20purifier
Open Shortcut deep link
shortcuts://open-shortcut?name=Control%20air%20purifier
AppleScript code
tell application “Shortcuts Events” run shortcut “Control air purifier” end tell

More From This Folder

More From The Library

Toggle Voice Control

Switches the Voice Control so you can issue commands to your device, giving you hands-free control of your devices.

Works great for Accessibility purposes, as well as simply using a device when you can’t reach it – I use this on my iPad Pro when it’s on the stand I have on my desk.

Get Shortcut »

Open Health settings

Opens the Settings app to the Health section to let you change your Health Details and Medical ID information, plus Data Access and Devices, Health Records, and Health Checklist.

Get Shortcut »


Get way deeper into Shortcuts – become a member.