Closed philboycn closed 6 years ago
Is your NAS server and the robot within same local area network? Try to reboot the robot and try again.
the problem is, you can't connect directly to the mi-wifi with the synology. you have to install homebridge with the mii command on another computer with wifi. i did it with ubuntu and docker
@th3cube Thanks for clarification, I'm never use a Synology before :)
@seikan yes,same local network. reboot doesn't help. but your other homebridge-plugin works perfect, like mi-camera and mi-air-purifier.MiAirPurifier, Synology can get the token as well. only robot-vacuum cannot get the token.
@th3cube thanks, i'll try a virtual machine.
got token with a virtual machine can wifi. but token are different with every homebridge server,so it can't use on pc without wifi...
the token just changes when you reset the robot. i use it on a synology and it works very well. I also got the token with a different machine and put it into my synology. do not reset the robot again when u get the token...
@th3cube when i got the token i didn't reset the robot ,i just put it in config.json and reboot homebridge server, it cannot work with homekit.what your step is could you please tell me..thanks
(node:17) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 6): Error: Call to device timed out
now i think it is not about the token...
Here is what i did,
Reset the Robot.
Connect a VM in Bridged-Mode.
Get the Token with a VM directly connected to the WiFi of Mi-Robot with Ubuntu and the Docker Container marcoraddatz/homebridge.
Connect the Robot to your WiFi again.
Import the Token to your config.json, reboot homebridge (note: if you use a docker container on your Syno u must start it fully exposed to your local LAN like --net=host). Lan and Wifi must be in the same subnet.
Hope this helps.
blocked by VM Docker Container IP setup...i don't know how to setup marcoraddatz/homebridge's ip address to 192.168.8.x...
First you must set your VM in bridge mode. And the host must be connected to the mi-robot-wifi. Second you must start the docker homebridge container like this
docker run --net=host -i -t YOURIMAGE /bin/bash
the "--net=host" is very important
Thanks, @th3cube. Tyied everything above, still not working.
When i run cmd miio --discover --sync, node appears wrong message:
Device ID: 55388595 Model info: Unknown Address: 192.168.8.1 Token: 7a6c4e46553032326c53365374413834 via auto-token
Support: Unknown (node:94) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Call to device timed out (node:94) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
miio homepage, it's seems like a miio bug for vacuum's new firmware..
Yeah, looks like the method no longer works with the new firmware. i got mine with the older version.
Did you try the method with the ios backup?
@th3cube Yes, Tried. It's Worked.Thanks!
Hi Guys,
i may have an issue or i did something wrong. Maybe someone can help. I followed this:
So far so good. But now i get a Syntax-Error: Unexpectet token ... What could be the problem? Thx for your help!
@Beastard Make sure you have at least Node 6 installed. You can run node -v
command to confirm that.
Hello, i have here a detailed instructions as it worked with me has the right token to read out. Maybe it helps you further.
Greeting Nastra
i got a 92 character token from ios backup with latest version mi-home app, and homebridge can't work with it
Same problem... with iOS backup i got a strange token
Seems like the token is now encrypted by the iOS app. Android still seems to be unencrypted for now, though I can't verify this.
i finally got token from android backup
Hello, here is the solution for iOS decrypting the 92-digit token under variant 1, step 7.
Hello,
I hope you can help me with homebridge-mi-camera
I’m trying to get the token from a Dafang 1080P Camera. http://en.miui.com/thread-953895-1-1.html
I made:
% miio discover sync
Model info: Unknown
Address: 192.168.10.47
Token: ???
Support: Unknown
As you see I cannot retrieve the token info.
Can you help m with it?
Thanks in advance and thanks a lot for your great work, @seikan
Hello
I use synology nas server as homebridge server, it has no wifi connet so i can't connet it to the robot's wifi spot. i opened command prompt on synology nas server and input the miio command, it says: Token: ???. is there some other way to get the token?please help,thanks!