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

device timeout

Open matphillips opened this issue 6 years ago • 5 comments

Tried this plugin without success, log shows: [MiRobotVacuumPlatform][ERROR]RobotVacuumFanAccessory - On - getOn Error: Error: Call to device timed out

I have correct IP address and token via --discover -sync Vacuum firmware is 3.3.9_003077 Node 7.10.1 npm 4.2.0

nmap of vacuum IP address finds only port 22 filtered, no other ports.

Anything I can try to get it working?

matphillips avatar Sep 16 '17 13:09 matphillips

There seems to be a general problem because of changes in the latest firmware, the miio library can't connect to the device.

adidoes avatar Oct 08 '17 01:10 adidoes

make sure token is right.

YinHangCode avatar Oct 09 '17 02:10 YinHangCode

This took me forever to fix, the new firmware doesn't expose the 32-character token any more. Most people who are using this app or the other plugins have the token from before the firmware was updated so they aren't aware of the issue.

http://forum.smartapfel.de/forum/thread/370-saugroboter-xiaomi-mi-robot-vacuum-token-auslesen/?postID=7021#post7021 explains how to get the token, but it is in german and the translation is kind of confusing.

Essentially you make a new iTunes backup of your iPhone after adding the vacuum to the mii app, you use iBackup Viewer to export the sqlite database from the xiaomi app in your iPhone backup, then find the 92-character key (which is actually the 32-character key encoded via AES with a stupid simple key - 32 0's) using an SQLite browser of some sort. Then you decode the key via AES with the key '00000000000000000000000000000000' (32 0's) and that will give you the token you need.

ersan avatar Nov 14 '17 01:11 ersan

By following the steps provided by @ersan, it works for me. The token got by miio is wrong, the decrypted one works well.

linjunpop avatar Nov 15 '17 12:11 linjunpop

I'm a noob with this stuff, can someone provide further detail on extracting the sqlite database from the xiaomi app

llyons92 avatar Feb 21 '18 00:02 llyons92