core icon indicating copy to clipboard operation
core copied to clipboard

Aqara E1 USB Stick Hub not working anymore

Open marcolinux46 opened this issue 1 year ago • 8 comments

The problem

The Aqara E1 USB stick HUB is not more working. I tried to reset it but i noticed that after the first device pair it stops working. In homeassistant's .storage folder the integration creates the file about gateway information.

What version of Home Assistant Core has the issue?

2024.1.5

What was the last working version of Home Assistant Core?

2024.1.3

What type of installation are you running?

Home Assistant OS

Integration causing the issue

homekit-controller

Link to integration documentation on our website

https://www.home-assistant.io/integrations/homekit_controller/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

I configured the log but i didn't receive anything to debug

marcolinux46 avatar Jan 21 '24 16:01 marcolinux46

Hey there @jc2k, @bdraco, mind taking a look at this issue as it has been labeled with an integration (homekit_controller) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of homekit_controller 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 homekit_controller 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)


homekit_controller documentation homekit_controller source (message by IssueLinks)

home-assistant[bot] avatar Jan 21 '24 16:01 home-assistant[bot]

Hi, i would like some information to enrich the debug. I reinstalled the gateway on HA and everything is going fine until i tried to pair one of the sensors.

I want to specify that the problem started without any sensor update, one day the gateway was off and stop working

marcolinux46 avatar Jan 21 '24 18:01 marcolinux46

I found logs after pairing the first sensor after reset all

2024-01-23 07:20:16.016 DEBUG (MainThread) [homeassistant.components.homekit_controller.connection] HomeKit connection not polling any characteristics: xx:xx:xx:xx:xx:xx

2024-01-23 07:20:12.101 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139724012499008] Error while connecting to device ['xxxxxxxxxx', 'xxxxxxx']:32807: Multiple exceptions: [Errno 111] Connect call failed ('xxxxxxxx', 32807), [Errno 101] Network unreachable (ConnectionError) Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/aiohomekit/controller/ip/pairing.py", line 142, in _ensure_connected await connection.ensure_connection() File "/usr/local/lib/python3.11/site-packages/aiohomekit/controller/ip/connection.py", line 337, in ensure_connection await asyncio.shield(self._connector) asyncio.exceptions.CancelledError The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/aiohomekit/controller/ip/pairing.py", line 141, in _ensure_connected async with asyncio_timeout(10): File "/usr/local/lib/python3.11/asyncio/timeouts.py", line 111, in aexit raise TimeoutError from exc_val TimeoutError During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 238, in handle_call_service response = await hass.services.async_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2149, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2186, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 272, in handle_service return await service.entity_service_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 882, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 952, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/homekit_controller/switch.py", line 192, in async_turn_off await self.async_put_characteristics( File "/usr/src/homeassistant/homeassistant/components/homekit_controller/entity.py", line 132, in async_put_characteristics return await self._accessory.put_characteristics(payload) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/homekit_controller/connection.py", line 897, in put_characteristics await self.pairing.put_characteristics(characteristics) File "/usr/local/lib/python3.11/site-packages/aiohomekit/controller/ip/pairing.py", line 298, in put_characteristics await self._ensure_connected() File "/usr/local/lib/python3.11/site-packages/aiohomekit/controller/ip/pairing.py", line 153, in _ensure_connected raise AccessoryDisconnectedError( aiohomekit.exceptions.AccessoryDisconnectedError: Error while connecting to device ['xxxxxxx', 'xxxxxxxxxx']:32807: Multiple exceptions: [Errno 111] Connect call failed ('xxxxxxxxxx', 32807), [Errno 101] Network unreachable (ConnectionError)

From HA server i can ping and with nmap i can scan the device

I hope this help you

marcolinux46 avatar Jan 23 '24 06:01 marcolinux46

Same issue for me, all was fine until I had to restart Home Assistant this evening. Now I get the same error that @marcolinux46 mentions above. Nothing was updated or upgraded on my end, just a 'simple' reboot seems to have killed the integration.

gabefortin avatar Jan 28 '24 01:01 gabefortin

I updated firmware on the E1 and rebooted HA again and that has resolved the issue for me.

gabefortin avatar Jan 28 '24 01:01 gabefortin

HI @gabefortin ,

which version did you install on E1? now i have the 4.0.8. do you have all the sensors paired with E1? Because i can install the integration with the E1 alone, but when i try to pair also only one sensor, it doesn't appear on HA and after reboot everything stuck.

marcolinux46 avatar Jan 28 '24 06:01 marcolinux46

Yes, I also have 4.0.8_0008.0010 firmware on my E1, I have 6 doors sensors and a leak sensor paired to it. All are working fine. They have all worked flawlessly though Home Assistant until a reboot (of HA) yesterday which laid to the error... but someone once I upgraded the E1 (which rebooted it) and then rebooted HA again it all came back to life.

gabefortin avatar Jan 28 '24 13:01 gabefortin

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.