Coder Social home page Coder Social logo

Comments (4)

marcelrv avatar marcelrv commented on May 25, 2024

be aware that the communication is encrypted.
Likewise, your json is not not correct as get-status doesnot have a parameter (see the page for the command) also your command does not have the sequencial id.

dunno what the node-red is doing exactly in this scenario, but the command to send is:

{
    "method": "get_status",
    "id": 96
}

from xiaomirobotvacuumprotocol.

mikolajburkiewicz avatar mikolajburkiewicz commented on May 25, 2024

I am using node red to trigger different commands. If I want robot to do something f.ex.
{
"command": "find_me"
}

I get voice response from the robot but I can never get any information using get-type commands

from xiaomirobotvacuumprotocol.

marcelrv avatar marcelrv commented on May 25, 2024

the node-red node you use must be modifying the json that is actually send.
Would suggest to see if it has some debugging feature that allows to see what is actually the command send and the response received.

Alternatively first try your command with python-miio (as raw command) to ensure it works with your robot than 'translate it' to what your node-red node requires

from xiaomirobotvacuumprotocol.

mikolajburkiewicz avatar mikolajburkiewicz commented on May 25, 2024

Hmmm. Maybe it is a case of output encoding because I get a response but its not in any readable form like object or array. Just random numbers.

from xiaomirobotvacuumprotocol.

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.