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

No Response #1

Open
bjornand1 opened this issue Jul 6, 2019 · 14 comments
Open

No Response #1

bjornand1 opened this issue Jul 6, 2019 · 14 comments

Comments

@bjornand1
Copy link

Hi, I have a couple of questions arising when trying to set up my new Mi Air Purifier 2S:

  • I am able to add it to a Homebridge server running on a Mac (set up just to test this), but all the tiles of the unit shows "No response", even if the purifier is on and can be controlled from the Mi app
  • I My permanent Homebridge server is running in a Docker on a Synology, but installing the plugin and adding the exact same config text here, the server won't restart. I suspect this could be related to the Synology not being on the same network as the purifier?

Any insights into how I could proceed to get this fully running?

@bjornand1
Copy link
Author

First of all, I realized that the token I used was wrong, I had extracted that from an iPhone backup, but I now have installed an Android emulator and obtained it that way. But still, the Homebridge server won't restart after editing the config file. Any help would be appreciated!

@bjornand1
Copy link
Author

I realize I am only responding to my own posts, but I provide updates in the hope that someone can offer som advice...

I have two Homebridge servers running, both with problems with this plugin:

  • The main server, on a Synology NAS, simply will not restart after adding the air purifier accessory to the config file (there are no syntaks errors). I must admit that I wonder, though, if there is a need to have two accessory instances, as in the sample, which lists both a bed room and a living room purifier? In any case, I have tried both, but nothing works.

  • A test server, on a Mac, restarts and the air purifier shows up in HomeKit, but all tiles consistently say «No response»

I have managed to add the air purifier to SmartThings and from there to HomeKit, but that way only shows temperature and humidity data as well as a «fan» that allows turning it on and off, but no option to change the mode. I would truly like to get this to work, as the Mi Home app is cumbersome in that the air purifier is region locked to SIngapore and my other devices to China, meaning I must change region to access the air purifier.

@bjornand1
Copy link
Author

I won't give up! After installing the plugin with sudo -g from terminal on the Synology, I finally managed to restart the Homebridge server and have the six tiles show up. However, all of them say "No response" and I have no clue why that would be...

@clauzewitz
Copy link
Owner

If you have reset your homekit?
If you delete the existing homekit and re-register and run it, most will be resolved.

@bjornand1
Copy link
Author

Hi clauzewitz, thanks for your feedback. I have so complex a setup with dozens of devices and automations that resetting this is not an option. But I guess one way to test this could be to add a second home in HomeKit and just add the air purifier to that?

@malmentm
Copy link

malmentm commented Jul 16, 2019

I have a similar problem, my devices shows up and all looking good but when i try to start / stop. It says "turnings off" and the Wheel keeps spinning

@fluidof
Copy link

fluidof commented Oct 21, 2019

Hi clauzewitz, thanks for your feedback. I have so complex a setup with dozens of devices and automations that resetting this is not an option. But I guess one way to test this could be to add a second home in HomeKit and just add the air purifier to that?

Hi, I have the same issue. I've also tried the main plugin from which this ione is forked, I've noticed v1.4 fails. while 1.2.2 works.
Maybe some problem in the code?

@mouth4war
Copy link

Turned on debugging to see this:
Device discovered at 192.168XXX is not Mi Air Purifier

Seems like there is an issue with type: air-purifier not being reported for 2s.

@mouth4war
Copy link

Line 173 if (device.matches('type:air-purifier')) should be if (device.matches('type:air-purifier') or device.matches('type:miio')). Can someone try?

@santiagos5
Copy link

santiagos5 commented Dec 10, 2019

Hello, i’ve no response for my air 2s. I try with ‘type:miio’ but nothing change..
Need to change something in device.js?

@mouth4war
Copy link

The real fix is upstream in aholstenson/miio#220

@mouth4war
Copy link

mouth4war commented Dec 10, 2019

https://github.com/LukaszLapaj/miio/ seems to be what i would use instead of the year-old miio library.

EDIT: Can confirm that it works.

@mouth4war mouth4war mentioned this issue Dec 20, 2019
@fluidof
Copy link

fluidof commented Dec 29, 2019

The real fix is upstream in aholstenson/miio#220

Following that link and done "npm install -g miio".
Then try again to install: npm install -g homebridge-xiaomi-purifier miio
with this configuration:{
"accessory": "MiAirPurifier",
"name": "Purifier",
"ip": "192.168.1.236",
"token": "3b78773a442910ea36dfc6440ce8c2b7",
"showTemperature": true,
"showHumidity": true,
"showAirQuality": true,
"enableLED": true,
"enableBuzzer": true
},

But still not responding in Homekit. Which is my error?

@fluidof
Copy link

fluidof commented Dec 29, 2019

https://github.com/LukaszLapaj/miio/ seems to be what i would use instead of the year-old miio library.

EDIT: Can confirm that it works.

I have this error:
npm ERR! code 128
npm ERR! Command failed: git clone --depth=1 -q -b master https://github.com/LukaszLapaj/miio.git /root/.npm/_cacache/tmp/git-clone-80017ec2
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-80017ec2': Permission denied

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

6 participants