krzym88 / eps8266-arduino-xiaomi-airpurifier

Xiaomi air purifier device controlled via esp8266(arduino environment)
4 stars 0 forks source link

Documentation #1

Open pgedzba opened 4 years ago

pgedzba commented 4 years ago

Hi, I have found your project on google. Is this a replacement for Xiaomi Cloud or do I have to modify my device? This repo is missing documentation, that's why I'm asking

krzym88 commented 4 years ago

Hi, It is not a replacement for Xiaomi Cloud. Is is replacement for poor implementation of automatic mode for xiaomi air purifier in Xiaomi Home EU app. Air purifier device does not have to be modified but additional device(e.g esp8266) is required

pgedzba commented 4 years ago

Could you give me some info on how to setup this? I do have some NodeMCUs with ESP8266 laying around. I would love to set this up and maybe upgrade it somehow :)

krzym88 commented 4 years ago

Here is some info: https://github.com/krzym88/eps8266-arduino-xiaomi-airpurifier/blob/master/README.md

You need to setup purifer.h and purifier.ino with dependencies(ArduinoJson, arduino-crypto, ArduinoMD5) in Arduino IDE, then setup arduino with esp8266(e.g https://www.instructables.com/id/Quick-Start-to-Nodemcu-ESP8266-on-Arduino-IDE/) Dependencies can be just downloaded and copied next to purifier.h and purifier.ino.

Generally this piece of code can be easily ported to any Arduino board with wifi or esp8266/esp32 with Espressif SDK(no Arduino) - here there is only example how to setup this on esp8266 with arduino

Let me know if you do not understand anything