Skip to content
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

Support for Air Purifier 3/3H (zhimi.airpurifier.mb3) #264

Closed
petrkotek opened this issue Nov 26, 2019 · 4 comments
Closed

Support for Air Purifier 3/3H (zhimi.airpurifier.mb3) #264

petrkotek opened this issue Nov 26, 2019 · 4 comments

Comments

@petrkotek
Copy link

Today, I got the newest Xiaomi's Air Purifier delivered - it's Xiaomi Air Purifier 3/3H (and identifies itself as zhimi.airpurifier.mb3).

Soon after, I found out it's not supported by miio yet (and therefore neither by Home Assistant which I use).

I'm a developer myself and happy to contribute & implement the support for it. I'll try to work on this in my spare time (kicking off by reading instructions here https://github.com/aholstenson/miio/blob/master/docs/missing-devices.md).

If somebody else has this device, I'd be happy to collaborate on the implementation.

@petrkotek
Copy link
Author

I'm now to turn ON/OFF the device:

miio protocol call 192.168.0.22 set_properties '[{"did":"MYDID","piid":2,"siid":2,"value":true}]' #ON
miio protocol call 192.168.0.22 set_properties '[{"did":"MYDID","piid":2,"siid":2,"value":false}]' #OFF

Change fan speed, e.g.:

miio protocol call 192.168.0.22 set_properties '[{"did":"MYDID","siid":2,"piid":4,"value":1}]' # level 1
miio protocol call 192.168.0.22 set_properties '[{"did":"MYDID","siid":2,"piid":4,"value":2}]' # level 2
miio protocol call 192.168.0.22 set_properties '[{"did":"MYDID","siid":2,"piid":4,"value":3}]' # level 3

(Big thanks to rytilahti/python-miio#543 (comment) / rytilahti/python-miio#543 (comment))

@petrkotek
Copy link
Author

petrkotek commented Nov 26, 2019

I just realised that Home Assistant actually uses https://github.com/rytilahti/python-miio

As I don't really need the support in this library, I'm closing this thread.

@mouth4war
Copy link

Petrkotek: this library is used by homebridge so if you ever need to get proper homekit integration of your 3h (as air purifier not just fan), you'll need this library then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants