A lot of hackers are rightfully concerned about the privacy issues that surround numerous of today’s “smart” gadgets, but it’s hard to argue that the ability to remotely control devices around your home isn’t convenient. enter self-hosted, open source projects like home Assistant. This offers the framework for building out a home automation system without having your soul information sold, but as you might expect, you’re going to have to put some effort in to get the most of it.
For example, take a look at this Phillips AC4014 air purifier that [Anton] connected to home assistant by way of an ESP32. rather than getting too bogged down in reverse engineering the purifier’s surprisingly complex internal electronics, he took the easy way out and wired a couple of relays across the power and fan speed buttons; this allows the device to be easily controlled by the microcontroller, without impacting the functionality of the original controls.
But because those front panel controls still work, that implied [Anton] needed a way for the ESP32 to discover the device’s status and report that to home assistant so everything stayed in sync. So he looked around on the PCB for a trace that got powered up when the air purifier was up and running, which he connected to a pin of the microcontroller through a transistor. This let’s the firmware identify if the device is running or not just by checking if the suitable pin has gone high.
Speaking of the firmware, [Anton] chose to use ESPHome rather than trying to write his own code from scratch. This project allows you to rapidly add new devices to home assistant by offering the firmware with a relatively easy YAML configuration file, which he’s offered as an example. In fact, he’s offered quite a lot of examples with this project, down to an annotated image of the PCB that shows where to tap your wires into. He’s done quite a service for anybody who’s got this same model of air purifier.
This unit doesn’t appear to have any capability of actually checking the quality of the air in the room, but we’ve recently seen a inexpensive IKEA product that can do exactly that. even better, it can be easily modified to report its findings over the network using the ESP8266.