Giter Club home page Giter Club logo

Comments (12)

kokarn avatar kokarn commented on June 30, 2024

This is a duplicate of #40. Over there you can find out how the use the library with the latest firmware

from miio.

jghaanstra avatar jghaanstra commented on June 30, 2024

No it's not. Issue #40 is about wrong tokens. I have a working token retrieved from the miio2.db and commands do get through sometimes but most commands time out because the robot does not timely respond.

from miio.

kokarn avatar kokarn commented on June 30, 2024

Ah, seems you are right. I got a bit confused because it seems like #40 includes some timeout issues as well from some people.

from miio.

aholstenson avatar aholstenson commented on June 30, 2024

This has been an issue with the vacuum for me as well, but on an older firmware. Do commands work if you do not use the miio client? In any case I think it's a good idea to increase the time out.

from miio.

jghaanstra avatar jghaanstra commented on June 30, 2024

Yeah looks like it, not sure if I have the control command correctly but it seems to be unable to find the device.

λ miio --control 192.168.0.133 --token 5936477axxxx34d6a4256 --method find_me
 INFO  Attempting to control 192.168.0.133

 WARNING  Could not find device

from miio.

jaumard avatar jaumard commented on June 30, 2024

Same here :( token retrieved from miio2.db but command just timeout (even if I increase it just to test) :(

PS: firmware also 3.3.9_003077

from miio.

mortocks avatar mortocks commented on June 30, 2024

+1 for firmware 3.3.9_003077

sudo miio --update 192.168.0.109 --token MY_TOKEN
INFO  Attempting to update 192.168.0.109
WARNING  Could not find device

Got the token just fine but then nothing else works.

from miio.

tobsch avatar tobsch commented on June 30, 2024

+1

from miio.

jghaanstra avatar jghaanstra commented on June 30, 2024

I edited the cli index.js and increased the time out there. This changes the error from "Could not find device" to this:

λ miio --control 192.168.0.133 --token 5936xxxxx4256 --method find_me
 INFO  Attempting to control 192.168.0.133

 ERROR  Can't connect to device, error while connecting:  Call to device timed out

This error comes from the actual command being send to the Mi Robot which times out. Increasing the time out of the retry for sending the command in device.js unfortunately does not solve it. Doing this results in the initial error of "Could not find device".

from miio.

jghaanstra avatar jghaanstra commented on June 30, 2024

@aholstenson is there any news concerning this issue? Or are you not actively maintaining this library anymore?

from miio.

linuxlurak avatar linuxlurak commented on June 30, 2024

same here:

miio --discover
 INFO  Discovering devices. Press Ctrl+C to stop.
Device ID: [cut out]
Model info: Unknown 
Address: 192.168.8.1 
Token: [cut out] via auto-token
Support: Unknown

(node:16181) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Call to device timed out
(node:16181) [DEP0018] 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.

and

miio --configure --ssid [cut out] --passwd [cut out] --token [cut out] 
 INFO  Configuring all devices

 WARNING  No devices were configured

from miio.

aholstenson avatar aholstenson commented on June 30, 2024

The latest release has a larger time out, which might help, but I'm not very hopeful. Connectivity seems sporadic over the local network.

Debugging of the code and pull requests are very welcome if this issue is still a problem.

from miio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.