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

Movie Setup

Turns on the TV, opens the Apple TV Remote, and sets the Movie Time scene before turning down brightness, enabling Do Not Disturb, and activating my Letterboxd shortcuts.

Get Shortcut »

More From The Library

Show my Quick Action shortcuts

Use this shortcut to quickly access, organize, and edit your Quick Actions shortcuts set as Services on macOS.

This shortcut uses the Open Folder action, which includes the auto-generated folders Shortcuts creates for features like Quick Action.

Get Shortcut »

Check my sleep data

Opens into a variety of pages in the Health app, including: sleep, nutrition, handwashing, toothbrushing, activity, flights climbed, body measurements, mobility, heart data, VO2 max info, environmental volume levels, and headphone levels.

Get Shortcut »


Get way deeper into Shortcuts – become a member.