xiaomi_airpurifier
xiaomi_airpurifier copied to clipboard
Add Mi Air Purifier 3C (zhimi.airpurifier.mb4) support
Hey,
could you please add support for the Xiaomi Air purifier C3. miiocli info attached:
Model: zhimi.airpurifier.mb4
Hardware version: esp32
Firmware version: 2.0.8
Regards Marc
@MarcE85 I received this air purifier couple of days ago and now I'm working on that
It turned out to be a little bit more difficult than I thought. First, the following issue needs to be resolved in python-miio
Im interested un this integration too
https://github.com/rytilahti/python-miio/pull/899 has been created in python-miio
I'm also interested in this integration, any ideas in which timeframe this can be added?
@TomStarren as I mentioned above, first PR in python-miio
needs to be merged. So it's good to ask there about reviewing status ;)
https://github.com/rytilahti/python-miio/pull/899 has been merged
Once the newest version of python-miio
is released, integration with 3C in this repo can be added π
@syssi What's the relation between this repo and the same code in the HA repo? I saw there is some problem regarding adding new integrations with Xiaomi devices to HA using the old way. Could you more details? Is there any work in progress to improve that?
@arturdobo Take a look at this paragraph: https://github.com/syssi/xiaomi_airpurifier/#what-is-the-difference-between-this-custom-component-and-the-one-in-home-assistant-core
One point is missing: We are abusing attributes to provide the values of some properties (temperature, humiditiy, etc.) at the moment. This isn't allowed anymore. A device (the Air Purifier) must register multiple entities (fan, sensor, binary_sensor, switch, etc.) now. The xiaomi_miio
component must be refactored. @starkillerOG is doing some great work here already (https://github.com/rytilahti/python-miio/issues/929). I'm trying to provide support as much as I can.
Feel free to provide a pull request for this custom component as first step to support your device. I'm trying to refactor the component to be merged as official HA component again some day.
Any update?
nope
We need wait update "zhimi.airpurifier.mb4"
Things a little bit changed and now it'd be better to wait until this is merged. Then I believe the newest version of python-miio
will be released so adding a new device should be easier.
As soon as it becomes possible to work zhimi.airpurifier.mb4, I also hope to find a possible plugin for domoticz
Does domoticz use python-miio
directly, or is there any middleware?
Like this on https://github.com/xiaoyao9184/DomoticzXiaomiPlugins and this plugin use python-miio. But i think, they need be updated too!
At the first glance, it looks like only the only thing you need is to python-miio
be released. Maybe it'd be good to open an issue regarding that.
Yes arturdobo! Maybe that's it. I'll wait for the update. May it be soon, i hope.
@arturdobo support for 3C is already implemented in python-miio. Any chance to expect this functionality here soon? Thanks for the support!
@postscriptumpl yeah, I know, because I was the author π I've just created this following issue https://github.com/rytilahti/python-miio/issues/969
Ups...that was not very smart of me π Anyway I keep fingers crossed π€π»π
@arturdobo a shy reminder βΊοΈ python released π
Chase me, if it's not done till end of this week
@postscriptumpl it looks like PR for adding 3C is already there. So I'll add support for Qingping Air Monitor Lite
then
@arturdobo do You think that it's going to be released with the newest update of HA? Or how it works?
No idea TBH
Any updates on this? Seems to be added to python-miio
@bartohz its domoticz you have?