Winix Air Purifier Control

Claude Code discovered and confirmed the purifier controls, then OpenClaw takes over to manage room air quality automatically.

The Winix Air Purifier Control by @antonplex is a clever two-agent collaboration story. Claude Code was used first to reverse-engineer the Winix air purifier's control protocols — discovering the API endpoints, authentication flow, and command structure for a device that was never designed to be smart-home controllable. Once the protocols were confirmed working, OpenClaw took over to manage air quality automatically based on conditions, time of day, and other contextual factors. This showcase demonstrates a powerful pattern: using a coding agent for the discovery and reverse-engineering phase, then handing off to OpenClaw for ongoing automation. The Winix purifier didn't have a public API or documented control interface. Claude Code probed the device, found the control endpoints, tested commands, and built a working integration. OpenClaw then uses that integration to make intelligent decisions about fan speed, operating mode, and scheduling. The project has resonated with the IoT community because it shows that any network-connected device — even 'dumb' ones without official smart-home support — can potentially be brought under AI control. The combination of reverse engineering + ongoing automation is a template that applies to countless appliances, from air purifiers to coffee makers to HVAC systems.

Tags: automation, hardware, air-quality, iot

Category: automation

Tips

  • Use a coding agent (Claude Code or Codex) for the initial reverse-engineering phase — it's better suited for probing APIs and testing endpoints
  • Capture the device's network traffic with Wireshark or mitmproxy first to understand the communication patterns before automating
  • Once the control protocol is documented, create an OpenClaw skill so the automation is persistent and shareable
  • Combine air quality control with weather data — adjust purifier intensity based on outdoor air quality and whether windows are open
  • Set up monitoring with a cron job that logs air quality metrics over time to spot patterns and optimize your automation rules

Community Feedback

@antonplex went deep on air quality. They have a Winix air purifier that wasn't designed to be smart. Claude Code discovered the control protocols. Now Clawdbot manages air quality based on conditions, time of day, and whatever else makes sense. A dumb device made intelligent through pure determination.

— Generative AI Publication

Claude Code discovered and confirmed the purifier controls, then OpenClaw takes over to manage room air quality automatically.

— Twitter/X

Frequently Asked Questions

Does this work with all Winix air purifier models?

It depends on whether the model has WiFi connectivity and uses a similar control protocol. Network-connected Winix models likely share similar API patterns, but each model may need its own discovery phase.

Is reverse-engineering device protocols legal?

For personal use, reverse-engineering your own devices to control them is generally considered acceptable in most jurisdictions. You're not circumventing DRM or accessing someone else's system — you're controlling hardware you own.

Can this approach work with other IoT devices?

Yes. The pattern — use a coding agent to discover protocols, then OpenClaw to automate — works for any network-connected device. Community members have applied it to coffee makers, blinds, and HVAC systems.

How does OpenClaw decide when to adjust the purifier?

You configure the rules based on your preferences: time-based schedules, integration with air quality sensors, weather conditions, or even manual triggers through chat. The agent applies your rules and makes adjustments automatically.