Run the air purifier when indoor air quality drops

Watch an air quality sensor for a sustained unhealthy reading, run the purifier, and turn it off again once the air has stayed clear for a while.

Best for: A room with both an air quality sensor and a purifier that can be switched or controlled remotely.

Not for: Homes without any air quality sensor, or treating this as a substitute for evacuating during a genuine hazard such as heavy smoke.

Why this exists

Cooking, cleaning products, and pet activity all cause brief air quality dips that clear on their own. Reacting to every small spike leads to a purifier that runs constantly and an alert nobody trusts. Requiring a sustained reading, then confirming the air has cleared before stopping, keeps the automation both useful and quiet.

What I used

Job Good enough Never think about it Notes
Control a plug-in air purifier Minoston 800 Series Z-Wave plug Ezlo 800 Series Z-Wave smart plug Confirm the plug’s current rating covers the purifier’s startup draw, and keep the purifier’s own physical switch usable.
Measure indoor air quality No personally verified recommendation yet No personally verified recommendation yet I have not verified a specific air quality or PM2.5 sensor. Any sensor used here should report a stable, current reading before it drives the purifier.

See recommended gear for the job-first checklist. Product links on this page are direct, non-affiliate Amazon links. Product recommendations and any future affiliate relationships are explained in the disclosure.

Logic

IF the air quality sensor reports unhealthy AND the reading holds for several minutes THEN turn on the purifier IF the air quality sensor reports healthy AND the purifier is currently on AND the healthy reading holds for a similar confirmation period THEN turn off the purifier

Setup notes

  1. Place the sensor away from the kitchen, a litter box, or other constant local sources so it reflects the room’s general air rather than one corner.
  2. Record a few days of readings to see the sensor’s normal range before choosing thresholds.
  3. Require the unhealthy reading to hold for several minutes before starting the purifier, so a brief cooking spike does not trigger it.
  4. Require a similar clear period before stopping, so the purifier does not cycle on and off around the threshold.
  5. Confirm the purifier’s own switch and app control still work after wiring it through a smart plug.
  6. Test with a deliberate short-lived source, such as burnt toast, to confirm the automation ignores it.

Advanced features

Graduated speed by severity

Where the purifier supports more than one speed, use a lower speed for a moderate reading and reserve the highest speed for a clearly unhealthy one.

Notify without a purifier

If no purifier is connected yet, send a notification suggesting ventilation or checking outdoor air quality before opening windows, instead of taking no action at all.

Failure modes

Done when

FAQ

Why require a sustained reading instead of reacting to a single spike?

Cooking and brief odors cause short spikes that clear on their own. A sustained reading over several minutes better reflects an actual air quality problem worth running the purifier for.

What if there is no air quality sensor at all?

Send a notification suggesting ventilation instead of guessing. Do not run the purifier on a fixed schedule with no sensor to justify it.

Should the purifier ever run at maximum speed automatically?

Only when the sensor is available and reporting a clearly unhealthy reading. Treat a missing or unavailable reading as unknown, not as a reason to run at maximum.