HomeKit "Unknown Error Occurred"

Hello,

I’ve been using the HomeKit addon flawlessly for over a year now, but today when trying to reconfigure, I get an ‘Unknown Error Occurred.’ The bridge still works am I’m able to see my previously configured entities, but I can’t include or exclude any new ones.

Capture

Below is what I see in the logs, but I am having a hard time deciphering it. Thanks in advance for anyone that can help me!

Logger: aiohttp.server
Source: components/homekit/config_flow.py:502
First occurred: 5:12:05 PM (5 occurrences)
Last logged: 5:15:29 PM

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
    resp = await self._request_handler(request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 499, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 211, in forwarded_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 24, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 78, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 144, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 135, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 213, in post
    return await super().post(request, flow_id)
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 63, in wrapper
    result = await method(view, request, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 109, in post
    result = await self._flow_mgr.async_configure(flow_id, data)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 202, in async_configure
    result = await self._async_handle_step(flow, cur_step["step_id"], user_input)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 260, in _async_handle_step
    result: FlowResult = await getattr(flow, method)(user_input)
  File "/usr/src/homeassistant/homeassistant/components/homekit/config_flow.py", line 432, in async_step_include_exclude
    return await self.async_step_advanced()
  File "/usr/src/homeassistant/homeassistant/components/homekit/config_flow.py", line 340, in async_step_advanced
    all_supported_devices = await _async_get_supported_devices(self.hass)
  File "/usr/src/homeassistant/homeassistant/components/homekit/config_flow.py", line 502, in _async_get_supported_devices
    return dict(sorted(unsorted.items(), key=lambda item: item[1]))
TypeError: '<' not supported between instances of 'NoneType' and 'str'

1 Like

Running into the same issue, how to I get the logs to view the problem devices?

1 Like

Exactly the same issue here. I’ve followed the link posted earlier but couldn’t seem to find any solutions…

This is an older thread when this issue occurred back in August. It seems to have resurfaced but it appears unrelated to that prior fix/link.

Please open a new issue with any backtraces.