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: New Sensors report wrong values #59044

Closed
simonszu opened this issue Nov 4, 2021 · 4 comments
Closed

[Xiaomi Miio] Vacuum: New Sensors report wrong values #59044

simonszu opened this issue Nov 4, 2021 · 4 comments

Comments

@simonszu
Copy link
Contributor

simonszu commented Nov 4, 2021

The problem

Since the new categorized entities introduced in 2021.11.0 some sensors for Xiaomi Miio Vacuum robots are reporting wrong values. In the releases prior to 2021.11 there were entity attributes which represented the percentage value which are also visible in the Xiaomi Home app, and said for example "The main brush has 5% of its lifespan left".

Since 2021.11 the new sensor entities report a time value which according to the documentation shows how much time is left from the lifespan of the main brush, or the vacuum's sensor cleanliness. I do not complain that this is not as comfortable as having these values as a percentage, since in that case you could just compare to the values in the app.

What i am complaining is that these values are simply wrong. For example, i recently changed the sidebrush of my Roborock S2. According to the app, the new side brush has a remaining lifespan of 192h (or 96%). According to the sensor values in Home Assistant, the side brush has only a remaining lifespan of 289 seconds, which is an offset error of around 191h.

Same for:

  • Main brush. App shows 273h (91%) left, Home Assistant shows 32902 seconds (9.13h): Offset of 264h.
  • Filter. App shows 58h (38%) left, Home Assistant shows 36749 seconds (10.2h): Offset of 48h.

I have had the robot for over 3 years and always respected the values in the app as quite accurate, so i'd consider them as the single source of truth. The old attribute way of showing the remaining lifespan had the same values as the app, so this was okay, too. Based on that, i am reporting a bug that the new sensors show the wrong value.

What version of Home Assistant Core has the issue?

2021.11.0

What was the last working version of Home Assistant Core?

2021.10.06

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Xiaomi Miio Vacuum

Link to integration documentation on our website

https://www.home-assistant.io/integrations/xiaomi_miio/#xiaomi-mi-robot-vacuum

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@probot-home-assistant
Copy link

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


xiaomi_miio documentation
xiaomi_miio source
(message by IssueLinks)

@shoguevara
Copy link

Hey!
Got vacuum.roborock_vacuum_m1s here. For some reason it's just vanished from the list! Only have V1 there, therefore I now don't have any attributes indicating sensors state, nor I have any separate sensors for that...

There's a sting in the logs:
"Unsupported device found! Please create an issue at https://github.com/syssi/xiaomi_airpurifier/issues and provide the following data: roborock.vacuum.m1s"

@hmmbob
Copy link
Contributor

hmmbob commented Nov 4, 2021

Main issue is a duplicate of #58923, will be fixed in 2021.11.1: #58995

@hmmbob
Copy link
Contributor

hmmbob commented Nov 4, 2021

Hey! Got vacuum.roborock_vacuum_m1s here. For some reason it's just vanished from the list! Only have V1 there, therefore I now don't have any attributes indicating sensors state, nor I have any separate sensors for that...

There's a sting in the logs: "Unsupported device found! Please create an issue at https://github.com/syssi/xiaomi_airpurifier/issues and provide the following data: roborock.vacuum.m1s"

This is a duplicate of #59010, should be fixed by #59018 (2021.11.1)

@github-actions github-actions bot locked and limited conversation to collaborators Dec 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants