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
71.11k stars 29.79k forks source link

Update of Home Assistant Core to 2024.8.1 erros with Xiaomi gateway - Xiaomi Miio #124044

Open prestigio777 opened 3 weeks ago

prestigio777 commented 3 weeks ago

The problem

The problem After the latest update to HA Core 2024.8.1 I've started getting errors for connection on Xiaomi Gateway, and on username that has Chines region devices Also local Xiaomi devices on China region works, but cloud ones doesn't work.

There error from log is: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/init.py", line 130, in async_setup_entry await async_setup_gateway_entry(hass, entry) File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/init.py", line 410, in async_setup_gateway_entry await gateway.async_connect_gateway(host, token) File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/gateway.py", line 66, in async_connect_gateway await self._hass.async_add_executor_job(self.connect_gateway) asyncio.exceptions.CancelledError: Global task timeout

2024-08-16 11:11:32.372 ERROR (SyncWorker_0) [xiaomi_gateway] Cannot connect to gateway 7c49eb88b437 2024-08-16 11:11:32.372 ERROR (SyncWorker_0) [xiaomi_gateway] No data in response from hub None 2024-08-16 11:11:34.270 ERROR (MainThread) [custom_components.xiaomi_gateway3.core.cloud] Timeout while requesting MIoT api /v2/home/device_list_page

Snap_Friday, August 16, 2024_11h24m32s_003_Settings � Home Assistant - Google Chrome

Could be there any network problems with reaching out to Chinese Xiaomi API from Europe?

What version of Home Assistant Core has the issue?

core-2024.8.1

What was the last working version of Home Assistant Core?

core-2024.8.0

What type of installation are you running?

Home Assistant OS

Integration causing the issue

custom_components.xiaomi_gateway3.core.cloud

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?

No response

Additional information

No response

home-assistant[bot] commented 3 weeks 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)

mib1185 commented 3 weeks ago
mib1185 commented 3 weeks ago

did you already tries the suggestion from https://github.com/home-assistant/core/issues/124034#issuecomment-2293326089 from your previous opened issue?

prestigio777 commented 3 weeks ago

did you already tries the suggestion from #124034 (comment) from your previous opened issue?

Yes, I opened another ticket because it is a case with custom components as suggested by @rytilahti

mib1185 commented 3 weeks ago

but the suggestion https://github.com/home-assistant/core/issues/124034#issuecomment-2293280172 was to report this issue to the maintainer of the custom component, not to the HA core project again? :wink:

prestigio777 commented 3 weeks ago

OK, i've opened a ticket with maintainer :)