core: Xiaomi vacuum V2 fan speed is not mapped correctly
Home Assistant release with the issue: 0.80.3
Last working Home Assistant release (if known):
Operating environment (Hass.io/Docker/Windows/etc.): Hass on raspberry pi 3b+
Component/platform: Xiaomi Mi Robot Vacuum https://www.home-assistant.io/components/vacuum.xiaomi_miio/
Description of problem: Fan speed are not mapped correctly for the Xiaomi vacuum V2 Correct values are: Quiet: 101 Balanced: 102 Turbo: 103 Max: 104 Mop: 105
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
vacuum:
- platform: xiaomi_miio
host: !secret xiaomi_vacuum_host
token: !secret xiaomi_vacuum_token
Traceback (if applicable):
Additional information:
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (9 by maintainers)
@bugficks A week? I’m sorry sir, but that is not uncommon in the open source world. Furthermore, I personally don’t see why one should close PR because of “waiting” too long. But that is personal I guess 😃
@poma You can actually call service with correct ID in home-assistant so if you create your own GUI it will work. Sample:
But it is not an issue for the underlying library because it doesn’t know about the speeds and it doesn’t enumerate them, it just set them by integer value. HA is enumerating the speeds and using library to set them to certain integer value. That would be brand new feature for underlying library to know which type of vacuum it is communicating with and the PR would also need to change the API because now the underyling library would be doing the enumeration of speeds. And then we would also need to change HA.
It is not a problem - only that Mop is missing. Xiaomi App started using the 101+ values, but you can still use 0-100 that sets the speed percentually. 90 = 90% speed.