-
-
Notifications
You must be signed in to change notification settings - Fork 567
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
airpurifiermiot: Xiaomi 3H updating PM2.5 sensor only once in 30mins #1281
Comments
One potential solution would be calling to set that property with a short time (e.g., 1 seconds) prior to requesting the data. This way the caller of |
Thanks for helping Could we test this out? I'm not a developer but I'll do what I can |
@Razer0123 See the linked PR, you could copy the file over to your local installation and try if |
I will test it over the day and check if it's stable solution. One strange thing I noticed. If we set 1 second, after 5 seconds API is returning "-4". It looks like device bug, which violates API (minimal value is 0) https://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:air-purifier:0000A007:zhimi-mb3:1 I didn't notice any problems related to this, but think safer would be usage of multiplicity of 5, so 5 in this case. |
Thanks for testing @mak3! I adjusted the PR to use 5 seconds now. |
@rytilahti Fix was on testing for over 40 hours with two 3H devices. I applied it in my Home Assistant environment. |
@mak3 this is with the duration of 1, right? Although I don't think that raising it to 5s changes anything, so I think the PR can be merged now for the next release. |
Yes, that was with 1 seconds. |
I want to thank you both, this issue was a pain in the arse |
Hello, is this supposed do be fixed in HA 12.9? Because I see no change |
Hi, alas, there has been no releases and I'm afraid I'm able to do one first in the beginning of February. |
Ok I'll wait, thanks |
Describe the bug
The PM2.5 sensor is updating only once in 30 mins
Version information (please complete the following information):
Device information:
If the issue is specific to a device [Use
miiocli device --ip <ip address> --token <token> info
]:To Reproduce
Steps to reproduce the behavior:
Expected behavior
Refresh every X seconds
Hello, i've been told to post this here, the Xiaomi 3h purifier has an issue that consists in the sensor reporting output only once in 30 mins, a user found a solution and i've been told to post it here
Here is there reference
https://community.home-assistant.io/t/lovelace-xiaomi-mi-air-purifier-3h-card/192100/300
home-assistant/core#63250
The text was updated successfully, but these errors were encountered: