-
-
Notifications
You must be signed in to change notification settings - Fork 563
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
Xiaomi Mi Robot Vacuum V1 - Fan Speed Issue #860
Comments
So the issue is, that since 3.5.7 for the v1 changed the behavior in regards of fan speed, see home-assistant/core#32723 and issues linked there (and in the fix pr). python-miio was adapted to check for the specific versions when v1 is detected (#643). The logic is shown at https://github.com/rytilahti/python-miio/blob/master/miio/vacuum.py#L499 but I have no idea how to fix this without breaking anything. There are open questions like was the 100-105 format only temporary for the 3.5.7 series for v1, and could we remove the version detection? For a quick fix, if you are not using the cloud functionality, simply block its internet access and it will start using the legacy speeds :-) |
Hello, |
On router level. |
Hi, so the question is, is it only the firmware version 3.5.7 that has this different (100-105) fan speed setting, that is, can we use the v1 values on 3.5.8 (https://github.com/rytilahti/python-miio/blob/master/miio/vacuum.py#L55), or do we need a separate v3 for 3.5.8+? Also, did you get the values by changing the speed using the official app? They are only slightly off from the v1 values, so if those are the new official ones, maybe we indeed need a v3 mapping for that. |
Hi, it seems that fan speed values on firmware 3.5.8 are different from the V1 and V2 values. We would need a V3 set of values. |
Hi there I have the same issue in the v1 version is there any solution? |
@mat4444 just to clarify the situation, the newer firmware versions only accept specific values (instead of percentages) as previously? So using If so, a PR to add this new set of speeds for those newer firmware versions would be appreciated! |
@rytilahti, yes, the new firmware only accept the specific values I mentioned above. A percentage value like 10 does not work. |
Okay, so here's the place where the available fan speeds are decided: Line 499 in f481a9e
The best way to try it out is to execute
|
I am not sure how to use the "fan_speed_presets" option with your command line tool. It only accepts integers. |
Here's how it works on my vacuum:
For the linting error, simply run |
Sorry, but that's beyond my github knowledge. I don't know where to run the ' |
Hi, installed some python packages on my PC to try the 'pre-commit' command, but nothing works ... I really don't know what is wrong with my syntax. line 70 :
line 504:
Thanks, |
Hey Mathieu and thanks, I'll take a look at it at some point, unfortunately I'm very busy with other things at the moment so it may take some time to get to it. Anyway, the simplest way with pre-commit would be the following:
|
I updated manually the vacuum.py in my homeassistant installation and I can confirm that is now working
|
There was some unnecessary whitespaces that made linting unhappy, I fixed it now. Thanks for the PR, @mat4444 ! :-) |
You're welcome ! Thanks for the commit, it honestly was beyond my knowledge with Github ! |
There is no real release schedule in this project, so it's unclear when there will be one. I won't be having any time to do preparations for that until some time in February (I'm not sure about @syssi), and it will still take some time from that until the homeassistant integration gets updated & released. So for the time being you may want to manually edit the file for your own setup :-) |
Describe the bug
This bug report is copied from home-assistant/core#43196
With the Xiaomi Mi Robot Vacuum V1 running on FW 3.5.8_004018, the fan speed options (Silent, Standard, Medium, Turbo and Gentle) are not understood by the vacuum.
However, from Home Assistant, fan speed can be set with the set_fan_speed service using the following integer values:
Silent --> 38
Standard --> 60
Medium --> 75
Turbo --> 100
Gentle --> Not an option for this vacuum
Version information (please complete the following information):
Device information:
(PS: the command line in your bug report template misses 'info' at the end of
miiocli device --ip <ip address> --token <token>
)To Reproduce
Using Home Assistant, I try to change the fan speed of my vacuum (v1) using the built-in options (drop down list), but it does not work. Nothing happens, there is no acknowledgment nor error message.
However, I can use the set_fan_speed service with integer values to change the speed.
Expected behavior
The vacuum speed should be changeable by default, using the default options.
Console output
No error in Home Assistant log
The text was updated successfully, but these errors were encountered: