seikan / homebridge-mi-air-purifier

A Xiaomi Mi air purifier plugin for Homebridge.
Other
172 stars 65 forks source link

Failed to discover Mi Air Purifier at 192.168.1.10 #59

Open kelmk opened 5 years ago

kelmk commented 5 years ago

I'm getting this in the log. This is definitely the correct ip. I have a Mi 2S latest firmware. I know the token is correct. I can ping the ip just fine.

Failed to discover Mi Air Purifier at 192.168.1.10
Will retry after 30 seconds

{ "accessory": "MiAirPurifier", "name": "Bed Room Air Purifier", "ip": "192.168.1.10", "token": "xxxxx", "showTemperature": true, "showHumidity": true, "showAirQuality": true, "showLED": true, "showBuzzer": true }

Rob827 commented 5 years ago

You probably have the wrong token, the token needs to be the one while the air purifier is connected to the wifi of your homebridge, not the one you got while connecting directly to it.

spitfire commented 5 years ago

@Rob827 then how do you get token off a device connected to WiFi? It only displays when I'm directly connected to it (and it's been the same with Air Purifier 2, 2S, PM2.5 sensor for me). when I do MiIo discover against these devices paired & connected to wifi all I get is ???

Rob827 commented 5 years ago

@spitfire https://github.com/jghaanstra/com.xiaomi-miio/blob/master/docs/obtain_token.md