-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
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 Airpurifier sensor is getting crazy after update to 2022.03 #67528
Comments
Hey there @rytilahti, @syssi, @starkillerOG, @bieniu, mind taking a look at this issue as it has been labeled with an integration ( xiaomi_miio documentation |
same issue as here #67503 |
In what meaning is it the same ? Just AQI results reported by the sensor are behaving very different than before the update. |
FYI, my 3C (before the integration got broken by the update) was reporting every 10 minutes. In regard to your screenshot, previous reporting every hour seems a bit too long, but the new behavior seems to be a bit agressive |
This upstream PR changed the behavior to request a refresh from the sensor just before an update (rytilahti/python-miio#1282), causing it to update more regularly (i.e., every time it gets polled). I have no idea why the reported values would deviate that much in short time periods.. I have no idea how aqi works, so is it completely out of question that the device is reporting the values correctly? One possibility could be that the device itself smoothens the output for the given reporting period, avoiding those misreads.. |
@rytilahti Can this behavior be configurable and default behavior be previous smoothened version with AQI heartbeat off? Smoothened version is better for automation triggers. Its like applying a filter on the noisy AQI data. I think Xiaomi did this for good reason. The hardware sensor is noisy at low AQIs. |
@mouth4war so most of the python-miio does not currently do caching nor smoothing, so I'm not sure what'd be the best approach here. I've seen a comment at upstream issue tracker that accurate reading as reported by the device (and then filtering out outliers by themselves) is better than being "capped" to less regular, also sometimes incorrect as seen on the screenshot above, readings. As I don't really have vested interest here, I'm not sure what's the best solution. |
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. |
The problem
After update to 2022.3 AirPurifier 3H started to report AQI values much more offen and they seems to be very unbalanced.
Values reported within 1-2 minutes can differ for even 200-300%.
Please see a screenshot illustrating the issue.
I did not notice any mentions in the release logs related with Xiaomi devices so it might be a defect ?
What version of Home Assistant Core has the issue?
2022.3.0
What was the last working version of Home Assistant Core?
2022.2.9
What type of installation are you running?
Home Assistant OS
Integration causing the issue
xiaomi_miio
Link to integration documentation on our website
https://www.home-assistant.io/integrations/xiaomi_miio/
Diagnostics information
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: