home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
74.08k stars 31.09k forks source link

Timeout error in Xiaomi Miio #131647

Open MikeBP13 opened 4 days ago

MikeBP13 commented 4 days ago

The problem

I have 2 evaporative humidifiers and 1 robovac connected to HA using the Xiaomi Miio integration. I have several errors in the logs regarding timeouts and errors.

What version of Home Assistant Core has the issue?

2024.11.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Xiaomi Miio

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.xiaomi_miio
Source: helpers/update_coordinator.py:388
integration: Xiaomi Miio (documentation, issues)
First occurred: November 24, 2024 at 12:00:31 (44 occurrences)
Last logged: 16:53:03

Timeout fetching Child's Bedroom Humidifier data
Timeout fetching Robo data
Timeout fetching Master Bedroom Humidifier data

Additional information

Logger: homeassistant.components.xiaomi_miio Source: helpers/update_coordinator.py:414 integration: Xiaomi Miio (documentation, issues) First occurred: November 24, 2024 at 10:25:21 (13 occurrences) Last logged: 15:00:21

Error fetching Master Bedroom Humidifier data: Unable to discover the device Error fetching Child's Bedroom Humidifier data: Unable to discover the device

//I have replaced the actual IP data with

home-assistant[bot] commented 3 days ago

Hey there @rytilahti, @syssi, @starkillerog, 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!

Code owner commands Code owners of `xiaomi_miio` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign xiaomi_miio` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


xiaomi_miio documentation xiaomi_miio source (message by IssueLinks)

RaidentaylorFilipeLeite85 commented 1 day ago

Hi there. I have a similar problem with this integration.

Logs: Logger: miio.miioprotocol Source: /usr/local/lib/python3.12/site-packages/miio/miioprotocol.py:255 First occurred: 6:38:37 PM (45 occurrences) Last logged: 7:19:10 PM

Got error when receiving: {'code': -9999, 'message': 'user ack timeout'}

luftdieb commented 9 hours ago

Hi there, since today, my vacuum cleaner was somehow resetted and integration no longer works. After reintegration into my wifi, android app can control the robot. But HA show error. (~Setup error. Will try again. Check logfiles) In log files I can find such output:

2024-11-30 15:21:19.537 DEBUG (SyncWorker_63) [miio.miioprotocol] Discovered 03d86f20 with ts: 2024-11-30 14:21:19, token: b'ffffffffffffffffffffffffffffffff' 2024-11-30 15:21:19.538 DEBUG (SyncWorker_63) [miio.miioprotocol] 192.168.3.247:54321 >>: {'id': 304, 'method': 'miIO.info', 'params': []} 2024-11-30 15:21:19.538 DEBUG (SyncWorker_39) [miio.miioprotocol] Discovered 03d86f20 with ts: 2024-11-30 14:21:19, token: b'ffffffffffffffffffffffffffffffff' 2024-11-30 15:21:19.539 DEBUG (SyncWorker_39) [miio.miioprotocol] 192.168.3.247:54321 >>: {'id': 608, 'method': 'miIO.info', 'params': []} 2024-11-30 15:21:24.544 ERROR (SyncWorker_63) [miio.miioprotocol] Got error when receiving: timed out 2024-11-30 15:21:24.544 DEBUG (SyncWorker_63) [homeassistant.components.xiaomi_miio] Unable to fetch timers, this may happen on some devices: No response from the device 2024-11-30 15:21:24.545 ERROR (SyncWorker_39) [miio.miioprotocol] Got error when receiving: timed out 2024-11-30 15:21:24.546 DEBUG (SyncWorker_63) [miio.click_common] Unknown model, trying autodetection. None None 2024-11-30 15:21:24.547 DEBUG (SyncWorker_63) [miio.miioprotocol] 192.168.3.247:54321 >>: {'id': 305, 'method': 'miIO.info', 'params': []}

Update 2: After removing the existing instance 3x and adding newly, entity is working now.