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

Disable listening history

Asks you to pick a focus mode, then sets the Music Focus Filter for “Use Listening History”” to off so you can listen to anything without it being added to your Apple Music Replay.

Get Shortcut »

Add Personal Finance spreadsheet

Presentes a list of templates from the Personal Finance category in Numbers, including a simple budget, personal budget, personal savings, stock portfolio tracker, and calculators for shared expenses, net worth, college savings, retirement savings, loan comparison, and mortgages.

Get Shortcut »

Open Reminders list

Presents the option to choose from “Work” or “Personal” groups, then from the set of lists, then opens the chosen list in Reminders. Works great in the Shortcuts widget.

Get Shortcut »


Get way deeper into Shortcuts – become a member.