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

Add support for Xiaomi Air Purifier Pro H please #648

Closed
memphis3 opened this issue Mar 22, 2020 · 13 comments
Closed

Add support for Xiaomi Air Purifier Pro H please #648

memphis3 opened this issue Mar 22, 2020 · 13 comments

Comments

@memphis3
Copy link

Hello !
Will Xiaomi Air Purifier Pro H have support for HA?
Model: zhimi.airpurifier.va1

@rezmus
Copy link

rezmus commented Mar 28, 2020

it should be more or less the same as ma4/mb3.

@memphis3
Copy link
Author

Yes, but ma4 / mb3 is also not on the support list. I tried to integrate it by auto-detecting and also adding the model, unfortunately, with no result

@rezmus
Copy link

rezmus commented Mar 29, 2020

#634

@rytilahti
Copy link
Owner

Could you try miiocli airpurifiermiot info command and paste the results here? Is mirobo discover discovering it?

@elfrinjo
Copy link

elfrinjo commented Mar 29, 2020

Hi, I have this device and tested the new release today (5.0 not 5.0.1). These were my steps and results:

  • Reset the air purifiers network config
  • Connect pc to the devices own WiFi
  • Run mirobo discover --handshake 1
    -- Command returns token
  • Test miiocli airpurifiermiot status
    -- Command returns device status
  • Use mirobo to reconfigure wifi to switch to use the actual home-wifi
  • Reconnect to the home network and rerun miiocli airpurifiermiot status command again
    -- This time the command times out

(IP and token options were applied to the commands)

@rytilahti
Copy link
Owner

rytilahti commented Mar 29, 2020

Hi,

* Run `mirobo discover --handshake 1`
  -- Command returns token

Does it work without the handshake option? mirobo -d discover will show some additional details (we are interested in something with ._miio._udp.local. at the end, that's the device type for autodetection).

* Test `miiocli airpurifiermiot status`
  -- Command returns device status

What does that status display? Is the information correct?

Can you please do miiocli airpurifiermiot info? The model number is what

* Use `mirobo` to reconfigure wifi to switch to use the actual home-wifi

* Reconnect to the home network and rerun `miiocli airpurifiermiot status` command again
  -- This time the command times out

This is normal. Every time a device gets reconfigured (at least during the provisioning after a reset), a new token is generated. Unfortunately there is no easy way to obtain that new token afterwards :(

@rezmus
Copy link

rezmus commented Mar 29, 2020

after you connect device to wifi token changes. you need to find another way to obtain token after device is connected like for example mi home mod (tokens are in profile > share > share the device).

@elfrinjo
Copy link

Darn - I just realize, I have a 3H and not a Pro H. Sorry for the confusion.

@memphis3
Copy link
Author

Could you try miiocli airpurifiermiot info command and paste the results here? Is mirobo discover discovering it?

Unfortunetly I`m noob in programing, can you tell me where I have to put this command ? Also I have mod mi app - I can give you some info from there

@rytilahti
Copy link
Owner

@memphis3 those are command-line commands, so you can execute them in the environment where you have installed python-miio.

@Notrial
Copy link

Notrial commented May 22, 2020

Anyone tested Pro H model with MiOT for 3/3H?

@LostSoulfly
Copy link

LostSoulfly commented Jun 10, 2020

I'm also having issues with my 3 and 3H. INFO works occasionally, but STATUS does not ever.
image

image

But works fine with my vacuum:
image

And I can control them with on/off:
image

image

edit:
As I personally don't miss the fine controls and just want to be able to turn the darn thing on and off, I wrote a quick and dirty python flask API that I run on a different machine to call miiocli from Home Assistant on demand. This imperfect solution will work for me until the issues are resolved.
image

@latel
Copy link

latel commented Feb 13, 2021

it works for me!

image

~ miiocli --version
miiocli, version 0.5.4

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

No branches or pull requests

7 participants