python-miio icon indicating copy to clipboard operation
python-miio copied to clipboard

Vacuum rotation only works in one direction

Open DoganM95 opened this issue 2 years ago • 1 comments

Describe the bug Vacuum only rotates left, command for right gives an error.

Version information (please complete the following information):

  • OS: Win 10
  • python-miio: 0.5.11

Device information:

  • Model: dreame.vacuum.mc1808
  • Hardware version: Linux
  • Firmware version: 4.3.3_1122

To Reproduce

  1. run rotate command with an out-of-range value: > miiocli dreamevacuum --ip 192.168.179.4 --token ... rotate 190 Output: Error: Given rotation is invalid, should be [-120, 120], was 190

  2. run rotate with a positive value in range: > miiocli dreamevacuum --ip 192.168.179.4 --token ... rotate 30 Output: None but vacuum rotated successfully

  3. run rotate with negative value in range (like described above): > miiocli dreamevacuum --ip 192.168.179.4 --token ... rotate -30
    Output: Error: No such option: -1

Expected behavior step 3 should rotate the vacuum to the right by given value successfully without trowing an error.

Console output see steps above

DoganM95 avatar Apr 06 '22 19:04 DoganM95

step 1 is only there to know, which values are supported, as --help does not output that information. also putting the value in qoutes did not work either. could be something windows specific.

Also is there a way to rotate/move forward with a specific speed?

Any help is appreciated.

DoganM95 avatar Apr 06 '22 20:04 DoganM95