Hey there
First so say: I am very grateful for all the effort that has been put in HA and all the awesome integrations that exist out there!
After having accepted for a while that I have my HomeKit devices just in HomeKit, inaccessible for HA, I just learned a couple of days ago that HomeKit Controller exists and that it should integrate with HomeKit devices with Thread. Exciting! So I followed the instructions, removed first my Eve Thermo devices from HomeKit, then seeing them discovered in HA (yay!) followed by many attempts to pair them (with setup code in format XXX-XX-XXX
as explained). This is where I am stuck now. I lifted the log levels for the relevant components and then got the following output:
2022-10-07 16:14:04.412 DEBUG (MainThread) [homeassistant.components.homekit_controller.config_flow] Discovered device Eve Thermo 6EAC 1 (Eve Thermo XXXXXXXXX - XX:XX:XX:XX:XX:XX)
2022-10-07 16:14:13.778 DEBUG (MainThread) [aiohomekit.controller.ble.controller] Starting BLE controller with instance: <homeassistant.components.bluetooth.models.HaBleakScannerWrapper object at 0x7fd409f1b4f0>
2022-10-07 16:14:13.780 DEBUG (MainThread) [aiohomekit.controller.ble.controller] Discovery for hkid XX:XX:XX:XX:XX:XX not found, waiting for advertisement with timeout: 30.0
2022-10-07 16:14:13.819 DEBUG (MainThread) [aiohomekit.controller.coap.connection] Pair setup 1/2 uri=coap://[fd9d:11dc:1dfc:0:39d2:dd3c:f210:4a18]:5683/1
2022-10-07 16:14:13.820 DEBUG (MainThread) [aiohomekit.protocol] #1 ios -> accessory: send SRP start request
2022-10-07 16:14:13.820 DEBUG (MainThread) [aiohomekit.protocol.tlv] sending [
6 (State): (1 bytes/<class 'bytearray'>) 0x01
0 (Method): (1 bytes/<class 'bytearray'>) 0x00
]
2022-10-07 16:14:13.834 ERROR (MainThread) [coap] Error received and ignored in this codepath: [Errno 101] Network unreachable
2022-10-07 16:14:16.518 INFO (MainThread) [coap] Retransmission, Message ID: 23667.
2022-10-07 16:14:16.520 ERROR (MainThread) [coap] Error received and ignored in this codepath: [Errno 101] Network unreachable
2022-10-07 16:14:21.888 INFO (MainThread) [coap] Retransmission, Message ID: 23667.
2022-10-07 16:14:21.889 ERROR (MainThread) [coap] Error received and ignored in this codepath: [Errno 101] Network unreachable
2022-10-07 16:14:29.822 WARNING (MainThread) [aiohomekit.controller.coap.connection] Pair setup 1/2 failed!
2022-10-07 16:14:29.826 ERROR (MainThread) [homeassistant.components.homekit_controller.config_flow] Pairing attempt failed with an unhandled exception
Traceback (most recent call last):
File "/usr/local/lib/python3.10/asyncio/tasks.py", line 456, in wait_for
return fut.result()
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/homekit_controller/config_flow.py", line 479, 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 283, in do_pair_setup
response = await asyncio.wait_for(
File "/usr/local/lib/python3.10/asyncio/tasks.py", line 458, in wait_for
raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError
2022-10-07 16:15:03.536 DEBUG (MainThread) [aiohomekit.controller.ble.controller] Discovery for hkid XX:XX:XX:XX:XX:XX not found, waiting for advertisement with timeout: 30.0
2022-10-07 16:15:03.539 DEBUG (MainThread) [aiohomekit.controller.coap.connection] Pair setup 1/2 uri=coap://[fd9d:11dc:1dfc:0:39d2:dd3c:f210:4a18]:5683/1
2022-10-07 16:15:03.539 DEBUG (MainThread) [aiohomekit.protocol] #1 ios -> accessory: send SRP start request
2022-10-07 16:15:03.539 DEBUG (MainThread) [aiohomekit.protocol.tlv] sending [
6 (State): (1 bytes/<class 'bytearray'>) 0x01
0 (Method): (1 bytes/<class 'bytearray'>) 0x00
]
2022-10-07 16:15:03.545 ERROR (MainThread) [coap] Error received and ignored in this codepath: [Errno 101] Network unreachable
2022-10-07 16:15:06.497 INFO (MainThread) [coap] Retransmission, Message ID: 2646.
2022-10-07 16:15:06.500 ERROR (MainThread) [coap] Error received and ignored in this codepath: [Errno 101] Network unreachable
2022-10-07 16:15:12.406 INFO (MainThread) [coap] Retransmission, Message ID: 2646.
2022-10-07 16:15:12.408 ERROR (MainThread) [coap] Error received and ignored in this codepath: [Errno 101] Network unreachable
2022-10-07 16:15:19.542 WARNING (MainThread) [aiohomekit.controller.coap.connection] Pair setup 1/2 failed!
2022-10-07 16:15:19.544 ERROR (MainThread) [homeassistant.components.homekit_controller.config_flow] Pairing attempt failed with an unhandled exception
Traceback (most recent call last):
File "/usr/local/lib/python3.10/asyncio/tasks.py", line 456, in wait_for
return fut.result()
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/homekit_controller/config_flow.py", line 479, 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 283, in do_pair_setup
response = await asyncio.wait_for(
File "/usr/local/lib/python3.10/asyncio/tasks.py", line 458, in wait_for
raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError
Lacking any knowledge about the Thread protocol itself, what caught my eye is [Errno 101] Network unreachable
. Now I am stuck.
Do you have any ideas what I may do wrong? Or do you have any ideas how to debug this presumable connectivity issue? (Note: my Eve Thermos were working perfectly fine before in HomeKit with two HomePod Minis as hubs).
Best
Carsten