Scott J. Goldman has cut his Coway Airmega IconS (AP-1022K) air purifier off Coway's IoCare cloud and connected it straight to Home Assistant. He described how in a blog post dated 11 November 2026 and published the code as Coway Local, an MIT-licensed custom integration. Tom's Hardware covered the project on 15 November.

Why the cloud had to go

The IconS is discontinued, and the only way to control it remotely is through Coway's cloud. The existing Home Assistant integration logs into that cloud, and Goldman says it broke once or twice a year. Tom's Hardware adds that Coway once banned the community integration for overloading its servers before allowing it again after a dispute.

A root certificate over HTTP

Goldman put the purifier on an isolated Wi-Fi network run from a Raspberry Pi and sent its traffic through mitmproxy. His first plan was to impersonate Coway's servers with the eMudhra root CA, whose private keys had turned out to be weak (the same problem behind Shelly's recent advisory). He did not need it. During setup the purifier downloads its trusted root certificate, AmazonRootCA1.pem, from an S3 bucket over plain HTTP. Serving his own CA at that moment was enough to read all the HTTPS traffic that followed. As he puts it, the device "was always MitM-able".

The app's commands reach the purifier over MQTT with TLS on port 8883, through AWS IoT. When the device enrols, Coway's server tells it which MQTT host and port to use and where to download its certificate and private key.

The simplest route turned up in the Bluetooth setup. With AI help, Goldman reconstructed the protocol from Android Bluetooth logs and the decompiled Coway app; he says the AI took about 20 minutes. The setup message itself carries the address of the root certificate and of the certificate server. Whoever sends that message can point the purifier at their own server, with no interception needed.

How Coway Local works

A setup page uses Web Bluetooth to send the purifier the Wi-Fi details and the address of Home Assistant. The integration runs its own MQTT broker, and the purifier connects to it instead of to Coway. Home Assistant gets power, three fan speeds, the Smart and Sleep modes, PM2.5, ambient light and filter life.

According to the README, you need Home Assistant Core 2026.10.2 or newer, a 2.4 GHz Wi-Fi network and Chrome on a Mac or Android device within Bluetooth range for the one-time setup; Safari and iPhone browsers do not work. Home Assistant also needs a fixed LAN address, because the address is written into the purifier, which has to be set up again if it changes.

The purifier talks to Home Assistant on ports 8080 (HTTP), 9443 (HTTPS) and 9883 (MQTT over TLS), and the README says not to forward them from the internet. Once set up this way, the purifier no longer responds to the Coway app.

The project is experimental. It implements the protocol observed on one AP-1022K, and the only other model it has been used with is the AP-1720G. The Airmega 250S (product code 02F9R), which creates its own hotspot instead of using Bluetooth, can be set up with a script on a Mac or Linux computer.

The weak point is Coway's design. A device that takes its root certificate over unencrypted HTTP can be fooled by anyone who controls the network while it is being set up. Goldman used that on his own purifier, on his own network.