Reverse Engineering My Coway Air Purifier to Ditch the Cloud scottjg.com · 21 po...
HN Best 200 @best
Reverse Engineering My Coway Air Purifier to Ditch the Cloud scottjg.com · 21 points · 2 comments · HN thread
TL;DR The author reverse-engineers his Coway Airmega IconS air purifier, which had depended on Coway's fragile cloud service, and builds a local Home Assistant integration. He finds the fan downloads its root CA over plain HTTP and that its Bluetooth provisioning payload sets the server URLs, so he can point the device at his own server and bridge it to Apple Home.
- The Coway fan was controlled through a reverse-engineered Home Assistant integration that polled Coway's cloud, which broke repeatedly (bans, app rebrands, HTML changes, outages).
- Man-in-the-middle capture with mitmproxy showed the fan fetches the Amazon root CA over plain HTTP, so it had no built-in trust anchor and was interceptable without the eMudhra certificate issue.
- Coway's setup API response supplies the MQTT host, port and client certificates, so controlling that response controls which MQTT server the fan uses.
- An AI assistant decompiled the Android app and Bluetooth logs and reimplemented the provisioning protocol (key exchange, AES encryption, protobuf payload) in about 20 minutes.
- The Bluetooth payload contains caUrl and certSvrUrl, so the author can redirect the fan to his own server without any MITM setup.
- The result is a local Home Assistant integration, provisioned via Web Bluetooth, that bridges the fan to Apple Home so a Good Night button can turn it on.
Discussion Only one comment is present, so there is no real thread. It is a short, friendly account of a similar smart-home setup: a Vornado fan driven by a Broadlink IR blaster, a Shelly smart plug for power monitoring, and a Qingping CO2 monitor, with automation through Claude and Home Assistant and control from Apple Home. The tone is practical and approving.
- Cheap generic smart devices plus Home Assistant beat vendor clouds (a few): The single commenter built an automated fan that runs on CO2 readings and remains overridable from Apple Home. Using a smart plug to confirm the fan is actually running and a power cycle to reset it to a known state are offered as practical workarounds.
#homeAssistant #iot #reverseEngineering #airPurifier #appleHome