homebridge-mi-air-purifier icon indicating copy to clipboard operation
homebridge-mi-air-purifier copied to clipboard

Xiaomi Mi Air Purifier 2H - Slow response in Home App on start

Open panjakubpl opened this issue 5 years ago • 12 comments

I have Xiaomi Mi Air Purifier 2H. I’ve successfully added this device to the Home App via Homebridge (I use 1.2.2 version of this plugin). One thing is strange - when I open Home app, it takes few seconds to discover Mi Air Purifier 2H, but first there is always the sign “No response”. When I switch to another tab of the Home App and go back to Favorites, then it works fine. Any ideas why does it happening?

panjakubpl avatar Jan 26 '20 12:01 panjakubpl

same problem here with 2H.

jesperrc2018 avatar Apr 26 '20 15:04 jesperrc2018

Solution is quite easy - dedicated RaspberryPi only for the Air Purifier (as the only device installed via HomeBridge). I've tested many different options and this one looks the best.

panjakubpl avatar Apr 26 '20 17:04 panjakubpl

Thank you for quick response.

jesperrc2018 avatar Apr 26 '20 18:04 jesperrc2018

Is somebody resolved this?

adamrzanek avatar May 21 '20 22:05 adamrzanek

@adamrzanek @panjakubpl Something I'll try today is if making another plugin that queries this one can actually improve the delay by using cached data in the meantime, but I'm not too sure about that

fuomag9 avatar Jul 04 '20 10:07 fuomag9

@adamrzanek @panjakubpl Something I'll try today is if making another plugin that queries this one can actually improve the delay by using cached data in the meantime, but I'm not too sure about that

Hey there, that would be great!!! It's not so comfortable to use this plugin, when there is a few seconds delay.

Video

What is more - in my case, my device works only on version 1.2.2. Anyone knows why?

panjakubpl avatar Jul 04 '20 10:07 panjakubpl

@adamrzanek @panjakubpl Something I'll try today is if making another plugin that queries this one can actually improve the delay by using cached data in the meantime, but I'm not too sure about that

Hey there, that would be great!!! It's not so comfortable to use this plugin, when there is a few seconds delay.

Video

What is more - in my case, my device works only on version 1.2.2. Anyone knows why?

My device (2H) only works with 1.2.2 too, it's probably an issue with the code itself. I've opted for editing the plugin itself instead of making another one, it should make things easier. I'll update you if I manage to fix the issue!

fuomag9 avatar Jul 04 '20 10:07 fuomag9

@adamrzanek @panjakubpl Something I'll try today is if making another plugin that queries this one can actually improve the delay by using cached data in the meantime, but I'm not too sure about that

Hey there, that would be great!!! It's not so comfortable to use this plugin, when there is a few seconds delay.

Video

What is more - in my case, my device works only on version 1.2.2. Anyone knows why?

My device (2H) only works with 1.2.2 too, it's probably an issue with the code itself. I've opted for editing the plugin itself instead of making another one, it should make things easier. I'll update you if I manage to fix the issue!

Great...! Many thanks 👍🏻🙂

panjakubpl avatar Jul 04 '20 10:07 panjakubpl

Hi, I just managed to get my 2H to work with v_1.4.0 with no problems at all. Just add the Air Purifier 2H to the list of supported Air Purifiers in models.js, and that's it.

// Air Purifier 2H 'zhimi.airpurifier.mc2': AirPurifier,

'~/.hoobs/node_modules/miio/lib/models.js' https://github.com/aholstenson/miio/blob/master/lib/models.js

jesperrc2018 avatar Jul 05 '20 15:07 jesperrc2018

Hi,

I just managed to get my 2H to work with v_1.4.0 with no problems at all.

Just add the Air Purifier 2H to the list of supported Air Purifiers in models.js, and that's it.

// Air Purifier 2H

'zhimi.airpurifier.mc2': AirPurifier,

'~/.hoobs/node_modules/miio/lib/models.js'

https://github.com/aholstenson/miio/blob/master/lib/models.js

Hey, after updating your software to 1.4.0 and changing what you have described - do you still have lags like in my case on lower version of the software?

Lags on 1.2.2

panjakubpl avatar Jul 05 '20 15:07 panjakubpl

I haven't experienced that yet, but i did on 1.2.2.

jesperrc2018 avatar Jul 05 '20 17:07 jesperrc2018

I haven't experienced that yet, but i did on 1.2.2.

Great, I will check your solution and share my feedback. I hope it will help me as well.

panjakubpl avatar Jul 05 '20 18:07 panjakubpl