Skip to content
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_miio vacuum fan speed #43196

Closed
mat4444 opened this issue Nov 13, 2020 · 3 comments
Closed

xiaomi_miio vacuum fan speed #43196

mat4444 opened this issue Nov 13, 2020 · 3 comments
Assignees
Labels

Comments

@mat4444
Copy link

mat4444 commented Nov 13, 2020

The problem

According to the Xiaomi Mi Robot Vacuum documentation, the only fan speeds options are: Silent, Standard, Medium, Turbo and Gentle (exclusively for mopping).
I own a Xiaomi Mi Robot Vacuum V1 and while I don't remember having issues previously, after upgrading to FW 3.5.8_004018, these options are not understood anymore by my vacuum. Every other services work well with my vacuum. The only issue is setting the fan speed.
There is no issue in the logs.

Environment

Raspberry Pi 3B+
arch | armv7l
chassis | embedded
dev | false
docker | true
docker_version | 19.03.11
hassio | true
host_os | HassOS 4.15
installation_type | Home Assistant OS
os_name | Linux
os_version | 4.19.127-v7
python_version | 3.8.6
supervisor | 2020.11.0
version | 0.117.5
virtualenv | false

Problem-relevant configuration.yaml

I am quite sure the configuration is correct. Everything except the fan speed works well.

vacuum:
  - platform: xiaomi_miio
    name: Aspirateur Xiaomi
    host: 192.168.0.22
    token: !secret xiaomi_vacuum_robot_token

Traceback/Error logs

No error reported

Additional information

With this vacuum reference and FW version, the speed fan are reported as INT values. Therefore, the speed fan can be set using INT values:
Silent --> 38
Standard --> 60
Medium --> 75
Turbo --> 100
Gentle --> Not an option for this vacuum
However, with this 'bug', it's impossible to use the built-in fan speed dropdown list (the one shown in the screenshot below).
I suppose there is no conversion between the 'text' option and the 'number' options
image

@probot-home-assistant
Copy link

Hey there @rytilahti, @syssi, @starkillerOG, mind taking a look at this issue as its been labeled with an integration (xiaomi_miio) you are listed as a codeowner for? Thanks!
(message by CodeOwnersMention)

@rytilahti
Copy link
Member

This needs to be fixed upstream, so please open an issue at python-miio repository (https://github.com/rytilahti/python-miio/), the code that requires to be adapted is here: https://github.com/rytilahti/python-miio/blob/master/miio/vacuum.py#L482

@github-actions
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Feb 11, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Mar 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants