-
-
Notifications
You must be signed in to change notification settings - Fork 574
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
I can't run set-voice command dreame.vacuum.p2041o #1946
Comments
This device does not use the same format as what's implemented in the class. If you try |
Thank you for the quick response. I managed to load a custom voice package onto this vacuum cleaner using the Home Assistant - Vacuum Dreame integration. I see that the miio spec for the vacuum cleaner includes a command to load an audio package (SIID 7 audio, and properties PIID 4 set-voice). However, I want to load the voice package using python-miio. Can I load the package using the call command or a raw command? |
I managed to load the voice package onto the vacuum cleaner using the Home Assistant Xiaomi Miot integration. It turned out that my vacuum cleaner accepts properties, not actions. Is it possible to use set_property with python-miio?
Also, please clarify if the set_voice command executes miot.call_action? |
Glad you found a way to do what you wanted! To answer your question, you can also set properties by using the It would be great to have the payload format documented somewhere for such custom commands in the documentation, but there is currently no pages for such. If you want to improve the documentation, perhaps https://python-miio.readthedocs.io/en/latest/device_docs/index.html would be the place to add a new "Dreame vacuum" page to do that. |
For me, the command worked
However, I want to test the execution of the set_property_by command. But the command:
gives an error [{'siid': 7, 'did': 'set-7-4', 'piid': 4, 'code': -1}] Judging by the error, I think I need to specify the device id (did), but I don't know how to do it. |
You can specify |
Describe the bug
My device Xiaomi Vacuum MOP 2 Pro+ (dreame.vacuum.p2041o) is in the list of supported devices, but when running the command miiocli dreamevacuum --ip --token set_voice https://github.com/Findus23/voice_pack_dreame /raw/main/voice_pack.tar.gz 8ebfabb9e23e169a5c9b867266f9d1ef 4325024 I get the error Error: Unable to find set_voice in the mapping
Version information (please complete the following information):
Device information:
If the issue is specific to a device [Use
miiocli device --ip <ip address> --token <token> info
]:To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
I am waiting for the voice package to be installed
Console output
miiocli dreamevacuum --ip 192.168.0.101 --token xxxxxxxxxxxxxxxxxx set_voice https://github.com/Findus23/voice_pack_dreame/raw/main/voice_pack.tar.gz 8ebfabb9e23e169a5c9b867266f9d1ef 4325024
Running command set_voice
Error: Unable to find set_voice in the mapping
The text was updated successfully, but these errors were encountered: