homebridge-mi-airpurifier icon indicating copy to clipboard operation
homebridge-mi-airpurifier copied to clipboard

Call to device timed out

Open pawelrup opened this issue 5 years ago • 6 comments

When I run Homebridge paired with iOS home app, the air purifier accessories are not responding and Homebridge logs this:

Homebridge is running on port 51826.
[MiAirPurifierPlatform] [MiAirPurifierPlatform][ERROR]MiAirPurifier2AirQualityAccessory - AirQuality - getAirQuality Error: Error: Call to device timed out
[MiAirPurifierPlatform] [MiAirPurifierPlatform][ERROR]MiAirPurifier2HumidityAccessory - Humidity - getHumidity Error: Error: Call to device timed out
[MiAirPurifierPlatform] [MiAirPurifierPlatform][ERROR]MiAirPurifier2TemperatureAccessory - Temperature - getTemperature Error: Error: Call to device timed out
[MiAirPurifierPlatform] [MiAirPurifierPlatform][ERROR]MiAirPurifier2AirPurifierAccessory - SilentModeSwitch - getOn Error: Error: Call to device timed out
[MiAirPurifierPlatform] [MiAirPurifierPlatform][ERROR]MiAirPurifier2AirPurifierAccessory - LockPhysicalControls - getLockPhysicalControls Error: Error: Call to device timed out
[MiAirPurifierPlatform] [MiAirPurifierPlatform][ERROR]MiAirPurifier2AirPurifierAccessory - RotationSpeed - getRotationSpeed Error: Error: Call to device timed out
[MiAirPurifierPlatform] [MiAirPurifierPlatform][ERROR]MiAirPurifier2AirPurifierAccessory - Active - getActive Error: Error: Call to device timed out
[MiAirPurifierPlatform] [MiAirPurifierPlatform][ERROR]MiAirPurifier2AirPurifierAccessory - TargetAirPurifierState - getTargetAirPurifierState: Error: Call to device timed out
[MiAirPurifierPlatform] [MiAirPurifierPlatform][ERROR]MiAirPurifier2AirPurifierAccessory - CurrentAirPurifierState - getCurrentAirPurifierState Error: Error: Call to device timed out
[MiAirPurifierPlatform] [MiAirPurifierPlatform][ERROR]MiAirPurifier2AirPurifierAccessory - FilterChangeIndication - getFilterChangeIndication Error: Error: Call to device timed out

Token is the proper one. I got it when connected to zhimi-airpurifier-m1_miapXXXX wifi, but then when I connect air purifier 2 with MiHome app, miio discover sync command returns this:

Device ID: 6136XXXX
Model info: Unknown
Address: 192.168.0.185
Token: ???
Support: Unknown

pawelrup avatar Feb 09 '19 09:02 pawelrup

i have the same problem did you manage to deal with this ??

wroblewski6 avatar Feb 13 '19 18:02 wroblewski6

Does the mi home app work to control the air purifier?

What version of node are you running? Miio needs an older version of node otherwise it gives weird errors

Hinchukardt avatar Feb 13 '19 20:02 Hinchukardt

I manager to Deal with this problem and the reason was incorrect token , I could not get correct token by miio device so I used iOS backup option to get token and it worked

Wiadomość napisana przez Hinchukardt [email protected] w dniu 13.02.2019, o godz. 21:18:

Does the mi home app work to control the air purifier?

What version of node are you running? Miio needs an older version of node otherwise it gives weird errors

— You are receiving this because you commented. Reply as to this email directly, view it on GitHub, or mute the thread.

wroblewski6 avatar Feb 14 '19 00:02 wroblewski6

Does the mi home app work to control the air purifier?

What version of node are you running? Miio needs an older version of node otherwise it gives weird errors

Yes, mi home app works fine with air purifier. My node version is v8.9.4. In the end, I managed to get the token like described here: https://github.com/jghaanstra/com.xiaomi-miio/blob/master/docs/obtain_token.md

pawelrup avatar Feb 15 '19 20:02 pawelrup

Had the same issue. Turns out it was the token obtained from miio cli.

Tried this method and now everything is working as it should

degofedal avatar Apr 10 '19 12:04 degofedal

I can confirm i used the iOS method with latest firmware as of today. Please close this issue, getting the token is not even related to homebridge-mi-airpurifier anyway.

MickL avatar Jun 13 '19 21:06 MickL