-
-
Notifications
You must be signed in to change notification settings - Fork 32.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
Timeout fetching XIaomi device data #89523
Comments
Hey there @rytilahti, @syssi, @starkillerOG, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) xiaomi_miio documentation |
I also have this error:
|
Have the same error |
Since friday this error also started to show up. And not only this xiaomi integration, but also the Xiaomi vacuum map extraction tool stopped working. So maybe these things are related |
I'm seeing this after upgrading recently too, for my
The issue appears intermittently for me - there are periods with a stable connection and other periods with barely any connectivity in HA: So far, I haven't worked out what it is, but I'm having a read through some of the more recent commits. |
Such errors are encountered on some devices more than others, and it's likely related to the low-level protocol handling inside the backend library. As I have written in many issues already, these are really hard to track down and debug. The device keeps answering to the pings as long as it's up. On some devices a watchdog boots the device and these happen due to that reason rather seldomly. On some devices the "server" speaking the protocol thinks the incoming requests are somehow incorrect and drops them, maybe because of the internal state or some other reason. The reason is not really easy to find out without debugging the daemon on the device or without access to the logs on the device. In your screenshot it's rather odd that the disconnects happened so often but suddenly it's more stable.. Maybe a firmware update changed something? |
Thanks - that was my thinking too. When reading through recent commits, it only looked like updates to upstream libraries. Not an easy thing to debug. Maybe it solves itself upstream. |
There has been no changes to the protocol handling in python-miio for years, and the last release which is used by homeassistant is also almost one year old at this point. Would you mind trying if #82601 improves the situation on your device? |
Feel free to give the master branch a try to see if the #82601 fixes (or at least alleviates) the issue, and please report back, thanks! |
The problem
flood at log as below:
Timeout fetching xxx data
First occurred: 8 marca 2023 09:13:20 (4663 occurrences)
Now 10 mar about 21:00 so, about 60 hours, 4663 / 60 = about 77 hits per hour, so its morethan 1 error peer minute
lumi.gateway.mieu01 - all ok, no timeout (have 1)
zhimi.airpurifier.mb3 - not ok, many timeout (have 2, everyone on different room, and connected to different AP)
zhimi.airpurifier.v7 - i can say, ok, sometimes timeout. maby max 10/24h (have 1)
zhimi.fan.za5 - not ok, many timeout (have 3, everyone on different room, and connected to different AP)
i checked, and in my router details, all this clients have uptime many many days, at console logs havent any hit with timeout or roaming to another AP
At Xiaomi Home app, all devices are all the time online and all the time i can see all details and can turn on/off and control all functions
What version of Home Assistant Core has the issue?
core-2023.2.5
What was the last working version of Home Assistant Core?
this problem is for many months
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
config_entry-xiaomi_miio-4271c7288b91dcab4ae536e5d796f5c2.json.txt
config_entry-xiaomi_miio-31ac6d6b4c26a736770a9b3e41961fa0.json.txt
config_entry-xiaomi_miio-bd9244e7ab8b0e0d4f91261418e5f46d.json.txt
config_entry-xiaomi_miio-7536ca765aa14ed581ca6ab00d225cbd.json.txt
config_entry-xiaomi_miio-d97ca4b97e2c322e6ce0fc358bab2036.json.txt
config_entry-xiaomi_miio-fd93c84a10e8eb9d1a5df52fdd80bbd5.json.txt
config_entry-xiaomi_miio-5ee9bd883ddee03037990354b2722b19.json.txt
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: