-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
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
Miio Xiaomi Air Purifier availability blinking ({'code': -9999, 'message': 'user ack timeout'}) #36972
Comments
xiaomi_miio documentation |
Hey there @rytilahti, @syssi, mind taking a look at this issue as its been labeled with a integration ( |
I suspect this to be a hardware issue. The 3H unit is responding very badly to pings and requests. I see a constant ping response time in the hundreds of ms and even timeouts, with the unit next to my access point. |
Having bad pings is OK - it doesn’t break functionality. I’m worried about purifier getting completely unavailable after some time. This usually happens every 6-12 hours for me and requires reboot of router and Home Assistant. |
Seems like I have managed to fix purifier getting completely unavailable every few hours. I manually specified my model: fan:
- platform: xiaomi_miio
name: purifier
model: zhimi.airpurifier.mb3 # I specified my model here
host: !secret purifier_host
token: !secret purifier_token After that change, my purifier is still up for more than 48 hours. However, general availability is still blinking: |
I have the same issue |
Could it be related to cloud connectivity issues? Some xiaomi vacuums are known to have issues if the packets are simply dropped, see https://python-miio.readthedocs.io/en/latest/troubleshooting.html#intermittent-connection-issues-timeouts-xiaomi-vacuum Sometimes 'user ack timeout' indicates that the command is not supported by the device, but consider it is working sometimes that shouldn't be the case.. |
After upgrade to 0.112, my purifier gets completely unavailable. Restarting HA, router, or purifier doesn't help. |
See the already linked 'command error' issue which is the likely the cause, that is however a different problem than this 'user ack timeout' issue. |
I've rolled back to the previous 0.111.* release. |
And it is working just fine with it? Maybe there are differences between devices/firmware version/something, that is causing the timeout instead of that command error. In that case this would be a duplicate of that issue. |
also for me, the update of ha to 0.102 has made the purifier 3h unusable. its status is: not available |
After update i got the same problem :/ |
For 'command error', see #36993 which will be fixed with a new python-miio release, sorry for the inconvenience :( |
Still error in HA 0.112.2 and python-miio 0.5.2.1. My device is Xiaomi Air Purifier 3 (zhimi.airpurifier.ma4)
|
@balloob please, reopen this issue. The error message persists in logs. |
FYI, I have upgraded to HA 0.113.3 (with the bump of python-miio) but still have an issue (Xiaomi Air Purifier 3H). 2020-08-02 16:16:50 ERROR (MainThread) [homeassistant.components.xiaomi_miio.fan] Got exception while fetching the state: {'code': -9999, 'message': 'user ack timeout'} No discovery issues in my logs (python miio fix). |
Okay, let's reopen this, but I don't really know what would be a suitable fix for this. That On potential way to alleviate this would be either to retry (or ignore it from homeassistant's side and keep the old state) but it feels a bit hacky solution. |
The same issue (user ack timeout) with model zhimi.humidifier.ca1 (Air Humidifier v2)
I think it's really better than got log full of this messages. |
@alive-corpse Could you check the error of your device (CA1) a second time? It's a "user ack timeout" or "UART timeout"? |
I add myself to this thread Using miiocli, version 0.5.4 |
I'm getting a lot of these too:
Retrying the call with a small timeout and a limit of x retries would probably be a good fix. |
How ?? |
I don't know, I'm still learning Python. But as a quick fix setting |
Got the same problem (with Xiaomi Air Purifier 3H): |
Restart your purifier. |
Great suggestion |
I use https://python-miio.readthedocs.io/en/latest/ with an "exec" node (executes a system command) |
If you want to reduce the update interval you could change the https://www.home-assistant.io/docs/configuration/platform_options/ |
Where does the component increase the scan_interval?
|
@SeraphimSerapis You are right. The component uses the default value. |
I've tried adjusting the scan_interval, but it doesn't solve the issue for me. Although less, I still get 'unavailable' status. |
Same here - set scan_interval: 60, but I'm still getting: Additionally, I noticed that this parameter has no real impact on refreshing, e.g. AQI value refreshes irregularly every 3 to 20 minutes. |
Totally Same problem. |
Same problem, but i not get discover problem, only "-9999" message. It not affect the working, only trash the log. |
Same problem here with HA core-2021.4.6
|
The problem
I have connected my Mi Air Purifier 3H (zhimi.airpurifier.mb3) via Xiaomi Air Purifier integration. This model is specified as a supported one.
However, I’ve noticed it gets offline from time to time, every 30-90 minutes.
If you take a closer look at the history graph, you’ll notice that availability is blinking and eventually it gets unavailable completely every few hours. Only rebooting a router and/or humidifier helps to get it back online.
Environment
Problem-relevant
configuration.yaml
Traceback/Error logs
The most interesting part here (from my point of view):
Additional information
Probably I've found relevant issues:
The text was updated successfully, but these errors were encountered: