Coder Social home page Coder Social logo

Comments (3)

marcelrv avatar marcelrv commented on May 23, 2024

the Dreame D9 accepts commands but they use the 'miot' protocol. So they use the same sort of communication/encryption but the commands are differently structured.

See
https://home.miot-spec.com/spec/dreame.vacuum.p2008

It uses service, action and property id's (siid,aiid,piid) to identify the commands & properties rather than the more readable ones you mention. In the above link you can find the right codes for your device.

Openhab has a mapping for your device which covers the majority of available commands.

from xiaomirobotvacuumprotocol.

Schwebebahn avatar Schwebebahn commented on May 23, 2024

Thanks, that helped me to find a post from you in the openhab community with an command:
action {"did":"Start-sweep","siid":3,"aiid":1,"in":[]}

I was able to adopt this for my D9:
action {"did":"Start-sweep","siid":2,"aiid":1,"in":[]}

Now I'm working on two questions:
Why do you put the action name in the device id (DID)?

When I want to clean a specific room, what is the syntax to add the rooms to the command? Is it the piid?
action {"did":"start-room-sweep","siid":2,"aiid":3,"piid":4,"in":[]}

from xiaomirobotvacuumprotocol.

marcelrv avatar marcelrv commented on May 23, 2024

The did field appears to be free text, in the sense that the devices don't check if the true did is in it

To ease the reading of the log I enter the intended (readable) command

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.