Skip to content

Question: Send command to Dreame D9 #58

Open

Description

@SmaMa82

Hello,

I bought a Dreame D9 and was hoping I can send commands like app_start by using openhab, but nothing happens. I‘m not sure if this is related to the binding or because the Dreame is not listed here as compatible device. Any idea how I can try to fix it?

Bye,
Christian

Activity

  1. marcelrv commented on Feb 5, 2022

    @marcelrv
    Owner

    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.

  2. SmaMa82 commented on Feb 5, 2022

    @SmaMa82
    Author

    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":[]}

  3. marcelrv commented on Feb 5, 2022

    @marcelrv
    Owner

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions