-
-
Notifications
You must be signed in to change notification settings - Fork 566
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
Add support for Xiaomi Air purifier 3C #899
Conversation
I bought a 3C and just found out it doesn't work with home assistant. LMK if I can help and test this on a real device. Looking at the code - feature set seems correct, I can confirm that this model doesn't provide temperature/humidity. Thanks for working on this! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks straightforward to me, thanks for the PR!
A couple of minor issues should be changed and then this is ready to be merged.
Cool! Let's merge this PR as soon the minor issues are fixed. |
Howdy, I tried to use these changes, but I'm struggling to get it working.
set_favorite_rpm makes it beep but it still fails on
When I hardcode
I checked out that project and exported Am I doing something wrong? Am I missing something? Thanks in advance. |
@jagub2 I'm going to apply the suggestions above tomorrow, so I'll check what's wrong then. I tested it using HA but maybe omitted something on the CLI 🤔 Thanks for letting me know |
@jagub2 could you pull changes, install and check everything is ok now? |
@arturdobo I confirm, everything works great now. Thank you! |
Hello, I also have the 3C version. Can you please explain step by step what I have to do to make it work with HA. I mean the modification of a component. I have the token out. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple of minor issues to be fixed, then this is ready to go! 👍 Please also update the supported devices listing in README!
Co-authored-by: Teemu R. <tpr@iki.fi>
Co-authored-by: Teemu R. <tpr@iki.fi>
Co-authored-by: Teemu R. <tpr@iki.fi>
@rytilahti all suggestions have been applied. Regarding |
@arturdobo Maybe just adding |
@mbatorowicz I'm definitively not a python developer so I did it a hacky way at the beginning of development by replacing the class in the @rytilahti I added a whole list of air purifiers I use and I'm sure |
LGTM, let's get it merged. Thanks again! 🎉
Great! Oh, you have multiple purifiers? Could you create a separate PR to add a list of model identifiers to the docstrings of the respective implementation classes? |
Yeah! One air purifier per room, but I wanted to replace the old Sure, I'll add those models to appropriate docstrings |
yeah, these are the only changes so far.
@arturdobo So I have to do a pull request? How do I do that? Sorry, I'm not really familiar with this kind of integrations... |
Once @rytilahti releases a new version of |
ahh okay thanks, so I have to wait for a new release. That's fine for me, it's not something that I have to have right now :D Thanks for the clarification! |
I'll try to prepare some PR in HA and see how it will work 😉 |
I have to wait for a new release. Thanks |
@arturdobo I am currently working on implementing Config Flow for all Miio platforms. Probably you will want to wait untill the Config Flow is done before implementing this new device, but of course it is up to you. |
it'd be great if you could. |
@arturdobo just made the PR: home-assistant/core#46866 |
Could you please clarify - can zhimi.airpurifier.mb4 be added to HomeAssistant? I tried with the latest Dev without success |
@abrilevskiy the config flow PR is merged, but the zhimi.airpurifier.mb4 has not been implemented. |
@rytilahti could you please release the new |
Is 3C supported now?
The same command is working for 2H. |
I think it should be supported as per this PR? Feel free to open a separate issue if that's not the case. |
The argument you provide is wrong, |
Thank you, it's working with |
This PR adds support for Air purifier 3C (
zhimi.airpurifier.mb4
) which according to specification provides only a subset of i.e. mb3 functionalities.