-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Air Purifier 4 Pro #14
Comments
Hi, that's an interesting find. The GD32 basically is a chinese clone of the STM32 (there are some minor differences) so I would assume that they run almost the same firmware. Do you have a logic analyzer or another way (e.g. two UART-USB adapters) to analyze the communication between ESP and GD32? |
I will try it and let u know. BTW Mi 4 Lite from /issue/3 is working with patch thanx to @dhewg so u could add it to the list of supported devices. |
The 4lite patch for this repo can't be merged without breaking the 3h support, so the commited state doesn't support the 4lite. As for the 4pro, it's probably enough to check the serial output to see if this is still using the same protocol. If it is, you can use esphome-miot and its miot spec to add support with only a yaml file. |
Hi, I also flashed my Xiaomi Air Purifier 4 with board "ACM16-AA-B01" with Jaromeyer's project. It took me a while to get things working, but I finally succeeded. P.S, mipurifier.h:
and the .yaml file
And final some screenshots |
Thank you so much! It works great on my Purifier 4. |
Happy to help ! |
@Matthijs33 how did you get the purifier card setup? I've been trying to get it working with the HACSfrontend custom:purifier-card but it requires a fan entity which isn't present to add to the yaml config. |
Hi @terryb8s
Also i have created an script for the set speed / and the purifier will go off when i put the slider back to 0:
|
Thanks this is amazing, while my home assistant is becoming more complex by the day i'm still learning so appreciate the examples!Also thanks for everyone getting the 4 pro going! |
Thanks everyone, I also was able to flash 4 pro without any issues using code modified by @Matthijs33. Small note: when I powered the board with usb to ttl adapter, there were no beeps (says it should beep in readme), but I still was able to backup the firmware and flash esphome successfully. As I spent an embarrassingly long time trying to disassemble this thing while breaking a few plastic tabs, I've recorded this quick video that shows how to do it for anyone that stumbles upon this https://www.youtube.com/watch?v=PHaw3gTkfxE |
Hi, i just disassembled my new purifier, model AC-M15-SC. It hasnt STM32 buy GD32 controller. Will your code work on that controller too? thanx
The text was updated successfully, but these errors were encountered: