Control air purifier

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

Scripting Actions

Control Home
Set the state of [name of Home set up in the Home app] by selecting scenes and accessories to automate.
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).

Extra Details

Link to Run Shortcut
shortcuts://run-shortcut?name=Control%20air%20purifier
Link to Open Shortcut
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 saved stories

Opens into the Saved Stories tab of the News app, where you can quickly access news stories you’ve saved for later – I’ll often save multiple stories as I browse, then visit this tab to read them all one-by-one.

Get Shortcut »

Send Quick Notes to Cursor

Copy text saved with Quick Notes and paste it into a Cursor agent chat in Plan Mode.

Takes recent saved notes, presents a list, copies the text of your chosen option, and opens into Cursor, starts a new Agent Chat, shifts to Plan mode, and presses Enter to send – all using AppleScript key codes.

Get Shortcut »


Get way deeper into Shortcuts – become a member.

Browse more