Hi! With Home Assistant 2024.9.1, apparently my Kodi integrations stopped working. I deleted all of them, rebooted, tried adding again – didn’t work. Rebooted some more, could add 3 of my 4 Kodi instances.
I have Kodi running on two Windows machine which are configured pretty much the same, on one machine I could add the integration, on the other I could not. All I get is a “Failed to connect”.
I can control both Kodis via Yatse, I can access both Kodis web interface, I have set them up the same. I am confusion.
The log entry:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/jsonrpc_async/jsonrpc.py", line 33, in send_message
response = await self._request(data=message.serialize())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 573, in _request
with timer:
File "/usr/local/lib/python3.12/site-packages/aiohttp/helpers.py", line 713, in __exit__
raise asyncio.TimeoutError from None
TimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/pykodi/kodi.py", line 164, in ping
response = await self._server.JSONRPC.Ping()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/jsonrpc_async/jsonrpc.py", line 35, in send_message
raise TransportError('Transport Error', message, exc)
jsonrpc_base.jsonrpc.TransportError: ("Error calling method 'JSONRPC.Ping': Transport Error", TimeoutError())
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/kodi/config_flow.py", line 54, in validate_http
await kodi.ping()
File "/usr/local/lib/python3.12/site-packages/pykodi/kodi.py", line 170, in ping
raise CannotConnectError from error
pykodi.kodi.CannotConnectError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/kodi/config_flow.py", line 233, in async_step_import
await validate_http(self.hass, import_data)
File "/usr/src/homeassistant/homeassistant/components/kodi/config_flow.py", line 56, in validate_http
raise CannotConnect from error
homeassistant.components.kodi.config_flow.CannotConnect