jaromeyer / mipurifier-esphome

ESPHome for the Xiaomi Mi Air Purifier 3H (and similar devices using the same protocol)
The Unlicense
91 stars 12 forks source link

ESPHome for various Xiaomi Air Purification Devices

For a step-by-step guide with pictures visit this thread on the official home assistant forum.

There are two separate microcontrollers inside the device: one STM32F4 which actually controls the device, and one ESP32 which only acts as a gateway to the internet/local network. This config replaces the firmware running on the ESP32 and implements the MIoT protocol used to communicate with the STM32.

Features:

FAQ

Does this remove the Filter remaining 0% warning?

Flashing this firmware does NOT change anything about how the remaining filter life is read/managed. However you can easily reset your filter to continue using it by following this video for example.

Is my air purifier supported?

The following devices are known to work with this library (this list is not exhaustive)

Please don't hesitate to expand this list by opening a pull request if your device also works with this library! Make sure to backup the original firmware on your device's ESP32 before flashing ESPHome.

Flashing

For a step-by-step guide with pictures visit this thread on the official home assistant forum.

Connect any USB-to-serial adapter and power on the ESP32 while GPIO0 and GPIO2 are pulled low.

The following steps have been tested with the AC-M6-B01 Board (REV3-BDR) by using the ESPHome Add-on within Home Assistant:

Typical problems: