YinHangCode / homebridge-mi-airpurifier

XiaoMi air purifier plugins for HomeBridge.
114 stars 34 forks source link

Call to device timed out: Xiaomi Air Purifier 2S (mc1) #32

Open degofedal opened 5 years ago

degofedal commented 5 years ago

Hi

Thanks for a great plugin. Just got my Xiaomi Air Purifier 2S in the door and succeed in getting the token and plugin up and running with.

The device itself however is not responding in Apple Home app. Quite possibly due to lack of support for model "zhimi.airpurifier.mc1" in miio? Link

Any chance support for zhimi.airpurifier.mc1 will be added directly to the plugin?

I'm getting a"call to device timed out" in Homebridge: Screenshot 2019-04-09 at 21 28 09

Thanks again :)

degofedal commented 5 years ago

Just an update on this issue. Fixed it by obtaining a token via this method

Everything now work as it should.

bucikowyyy commented 5 years ago

it's work ? becouse I have the same issue. I'm connected straight to 2S and i useing mioo dicover --sync after that i copied token and write in config.json in homebridge. I have fresh install homebridge and i used @lastversion during install miio, packages and homebridge

degofedal commented 5 years ago

it's work ? becouse I have the same issue. I'm connected straight to 2S and i useing mioo dicover --sync after that i copied token and write in config.json in homebridge. I have fresh install homebridge and i used @lastversion during install miio, packages and homebridge

Try getting your token using this method. Got my token initially from miio discover but it seems like it is unreliable. Good luck.

bucikowyyy commented 5 years ago

Yes you have right working s2 all the time change token when have new connect to wifi. It’s work thank you ;)

MickL commented 5 years ago

Thanks i successfully used the iOS method to get the token! I am pretty sure they read and follow this and other repositories. I wouldnt be suprised if they implement better encryption on the token in the iOS sql database. Maybe the best is to not never connect the device to Mi App and never update it.

@degofedal Please close this issue