core: Impossible to add Eve Homekit Devices: TimeoutError
The problem
A month ago I setup the Homekit Controller with a couple of Eve Theme, Eve Door & Window and Nano Leaf Essentials Bulbs. I am Using 1 Homepod Nano and 2 Apple TV 4K. After a couple of days all devices except for one Nano Leaf were unreachable. I removed all of them from Homeassistant resettet them, connected them to my Homekit app, removed them. Then they showed up as availlable in Homassistant. Unfortunately, I am not able to add them to Homeassistant. I get the following message, saying that an unhandled exception occured: “Beim Koppeln mit diesem Gerät ist ein nicht behandelter Fehler aufgetreten. Dies kann ein vorübergehender Fehler sein oder das oder dein Gerät wird derzeit nicht unterstützt”
The logs say:
WARINING:
Logger: aiohomekit.controller.coap.connection
Source: components/homekit_controller/config_flow.py:481
First occurred: 10:12:31 (2 occurrences)
Last logged: 10:13:16
Pair setup 1/2 failed!
ERROR:
Logger: homeassistant.components.homekit_controller.config_flow
Source: components/homekit_controller/config_flow.py:481
Integration: HomeKit-Controller (documentation, issues)
First occurred: 10:12:31 (2 occurrences)
Last logged: 10:13:16
Pairing attempt failed with an unhandled exception
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiohomekit/controller/coap/connection.py", line 283, in do_pair_setup
response = await self.pair_setup_client.request(request).response
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/homekit_controller/config_flow.py", line 481, in async_step_pair
self.finish_pairing = await discovery.async_start_pairing(self.hkid)
File "/usr/local/lib/python3.10/site-packages/aiohomekit/controller/coap/discovery.py", line 57, in async_start_pairing
salt, srpB = await self.connection.do_pair_setup(
File "/usr/local/lib/python3.10/site-packages/aiohomekit/controller/coap/connection.py", line 282, in do_pair_setup
async with asyncio_timeout(16.0):
File "/usr/local/lib/python3.10/site-packages/async_timeout/__init__.py", line 129, in __aexit__
self._do_exit(exc_type)
File "/usr/local/lib/python3.10/site-packages/async_timeout/__init__.py", line 212, in _do_exit
raise asyncio.TimeoutError
asyncio.exceptions.TimeoutError
I am running Homeassistant as Hassio on Proxmox. I even tryed to disconnect the Apple TVs and to only have the Homepod Nano running. Resulting in still the same error.
What version of Home Assistant Core has the issue?
2022.12.5
What was the last working version of Home Assistant Core?
2022.10
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?
Beim Koppeln mit diesem Gerät ist ein nicht behandelter Fehler aufgetreten. Dies kann ein vorübergehender Fehler sein oder das oder dein Gerät wird derzeit nicht unterstützt
Logger: aiohomekit.controller.coap.connection
Source: components/homekit_controller/config_flow.py:481
First occurred: 10:12:31 (2 occurrences)
Last logged: 10:13:16
Pair setup 1/2 failed!
Logger: homeassistant.components.homekit_controller.config_flow
Source: components/homekit_controller/config_flow.py:481
Integration: HomeKit-Controller (documentation, issues)
First occurred: 10:12:31 (2 occurrences)
Last logged: 10:13:16
Pairing attempt failed with an unhandled exception
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiohomekit/controller/coap/connection.py", line 283, in do_pair_setup
response = await self.pair_setup_client.request(request).response
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/homekit_controller/config_flow.py", line 481, in async_step_pair
self.finish_pairing = await discovery.async_start_pairing(self.hkid)
File "/usr/local/lib/python3.10/site-packages/aiohomekit/controller/coap/discovery.py", line 57, in async_start_pairing
salt, srpB = await self.connection.do_pair_setup(
File "/usr/local/lib/python3.10/site-packages/aiohomekit/controller/coap/connection.py", line 282, in do_pair_setup
async with asyncio_timeout(16.0):
File "/usr/local/lib/python3.10/site-packages/async_timeout/__init__.py", line 129, in __aexit__
self._do_exit(exc_type)
File "/usr/local/lib/python3.10/site-packages/async_timeout/__init__.py", line 212, in _do_exit
raise asyncio.TimeoutError
asyncio.exceptions.TimeoutError
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 50 (20 by maintainers)
BR is border router. As in the device that lets your thread devices get ip addresses on your lan. Your homepods.
You have 5 ghost routes. Try a full power cycle of your HA instance.
It also looks like your mesh has split as each border router is advertising different combinations of prefixes.
@Jc2k Thank you very much for providing the work-around. It worked 😃 All my Eve Themostats and Window-Sensors connected successfully.
Right.
So the timeout can happen because the eve thermo seems to go to sleep when not paired. Pressing a button can wake it up.
In addition, I think your description is consistent with the eve firmware bug I found. In my testing, removing the device from iOS over thread did not unpair it, it just removed it from the app. This causes the “already paired” error. Removing it over bluetooth does properly unpair it.
This is the process I followed.
You need to reset the thermo. Add it to iOS. Use the eve app to verify it is connected to thread.
This is the extra step: turn all your border routers off. This forces your thermo back into Bluetooth mode.
Use the “identify” function in the eve app. If this works and your border routers are off, then you have a working Bluetooth connection. If it doesnt, just keep trying till it does.
Now remove the device from the Home app. This should correctly unpair it.
Now you can turn your border routers back on.
You may end up with multiple copies of the eve thermo now - I would restart HA to get into a “good” state with this device.
Now I strongly suggest pressing a button on the thermo to wake it up, then pairing as quickly as possible.