-
-
Notifications
You must be signed in to change notification settings - Fork 566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working with newest firmware version 3.3.9_003073 #14
Comments
umm it's working for me! maybe the token changed or something else? |
Have you updated your vacuum to the latest Firmware version? According to http://www.roboter-forum.com/showthread.php?18995-Neues-Firmware-Update!&p=254656&viewfull=1#post254656 there was a change for the sent packages to the robot. They are now signed with a timestamp to dismiss too old packages. The token haven't changed, because the App of the User from the linked Post ist already working, after updating to the newest Version. |
@rytilahti I think you can take a look my pull request. I fixed the timestamp issue |
@ultrara1n yeah I did (see image below). Aside from these errors, which I was getting them before the update, everything seems to work as usual
|
@jcastro maybe your clock on the vacuum is also in correct time? Currently we are sending the current timestamp out, which could explain why it is working. @SchumyHao do you mind rebasing that change on the current HEAD, or should I just incorporate "replaying" the device timestamp + some short delay? |
@rytilahti umm just checked it and it seems fine! Also checked my docker installation and it's also correct root@unBeast:/usr/src/app# date
Wed Jun 7 12:14:25 CEST 2017
root@unBeast:/usr/src/app# |
@jcastro yes, but does the robot return something similar? (when doing mirobo -d or -dd) Mine (which has no internet access) reports: ts = 1970-01-01 15:55:39 |
@rytilahti I'll create a new pull request later. |
@SchumyHao ok, thanks! Please also take a note on my commentary on the code parts. I think it should be enough just to save the timestamp returned in responses and increment it with timedelta for a bit. |
@rytilahti yep! value = Container:
ts = 2017-06-07 12:31:32 |
any news here? my mirobo still does not work with this script with firmware 3.3.9 (worked with older one). |
iobroker-community-adapters/ioBroker.mihome-vacuum@2e28df0 it seems that there was a protocol change with 3.3.9 |
@ultrara1n can you try to discover the token via one of this ways: https://github.com/ioBroker/ioBroker.mihome-vacuum#konfiguration |
@chrostek: I'm the creator of the MiToolkit (see my repo) :D |
@rytilahti i moved to: |
@chrostek glad to hear you got it working. Looks like it's not anymore possible to read the token out from the robot itself. Anyway, thanks to #21 I realized that the id generation is the problem and I got the cli tool working again by not reusing the same 'id' for communication (the robot answers once per 'id' in a specific time-frame. |
So for now there is no way to get the token with the latest firmware anymore. Too bad that I just updated before extracting it. |
@TribuneX you can supposedly still extract the token from already paired device but I have not tested it. |
@rytilahti Do you have a link to some documentation who I can extract it from paired devices. I am using the iOS app. |
@TribuneX some possible ways can be seen in this issue: aholstenson/miio#40 (comment) |
@rytilahti Thanks! I was able to extract the token from the sqlite file within my iOS backup. |
Using this great code till today, after Xiaomi had to change the way of communication.
Getting the following result when just trying to get info data from vacuum:
The text was updated successfully, but these errors were encountered: