Skip to content
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

Question: Send command to Dreame D9 #58

Open
Schwebebahn opened this issue Feb 5, 2022 · 3 comments
Open

Question: Send command to Dreame D9 #58

Schwebebahn opened this issue Feb 5, 2022 · 3 comments
Labels

Comments

@Schwebebahn
Copy link

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

@marcelrv
Copy link
Owner

marcelrv commented Feb 5, 2022

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.

@Schwebebahn
Copy link
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":[]}

@marcelrv
Copy link
Owner

marcelrv commented Feb 5, 2022

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
Labels
Projects
None yet
Development

No branches or pull requests

2 participants