merdok / homebridge-miot

Homebridge plugin for devices supporting the Xiaomi miot protocol
MIT License
371 stars 62 forks source link

Dreame Robot vacuum f9 #487

Closed kimo790 closed 1 year ago

kimo790 commented 1 year ago

Thank You for your work and time. i used the fetch metadata option you integrated in the UI, it works great. I was unable to use other Metadata actions and properties due to my limited syntax and parameters knowledge, can you please provide a little more data about the syntax or how to use the other actions like 2.1 and 2.3, etc ... and the in and out piid.

thank you again for providing this valuable service to us

merdok commented 1 year ago

Hi, did you have a look at the docs for robot cleaners? There are some examples there on how to handle in and out values. The in piid's for actions usually correspond to the property id on the same service as the action. There you can see what expected value does the action need.

kimo790 commented 1 year ago

Yes i did and it works great. But the thing is i tried the same syntax with 2.1 and 2.3 actions and it didn‘t work. I think they have another params/syntax

merdok commented 1 year ago

That is correct! That is why you have to check the metadata of a device and see what parameters they accept. Most actions from my experience do not accept any parameters. Every action has its own parameters if any, so you cannot just simply take the parameters from action and use it with a different one.

kimo790 commented 1 year ago

I tried searching for the metadata parameters on google but with little to no success, is there a documentation you recommend where i can view and see the metadata parameters ?

On 22. May 2023, at 14:32, Marcin @.***> wrote:



That is correct! That is why you have to check the metadata of a device and see what parameters they accept. Most actions from my experience do not accept any parameters. Every action has its own parameters if any, so you cannot just simply take the parameters from action and use it with a different one.

— Reply to this email directly, view it on GitHubhttps://github.com/merdok/homebridge-miot/issues/487#issuecomment-1557139389, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMNBOADC6NF3L4IDPAA2PSLXHNMFVANCNFSM6AAAAAAYJSC6ZA. You are receiving this because you authored the thread.Message ID: @.***>

merdok commented 1 year ago

http://www.merdok.org/miotspec/

kimo790 commented 1 year ago

Thank you so much, but this is like what you implemented in your plugin :), i can't get the parameters from action functions, please bear with me :)

merdok commented 1 year ago

I just described that above. You have to switch to the properties tab, check on the same service as the action (first number in action id) search for the piid specified in the action on or out section and you find the property description there.

If you have an action 2.3 and there is a in piid which says 2, then you have to go to the properties tab and check property 2.2

kimo790 commented 1 year ago

Thank you for your patience