home-assistant-comfoconnect icon indicating copy to clipboard operation
home-assistant-comfoconnect copied to clipboard

Error doing job: Task exception was never retrieved (None)

Open mn-box opened this issue 8 months ago • 4 comments

My log files are full with aiocomfoconnect issues, seems a connection issues (see screenshots below)

What I have tried:

  • Reinstalling the integration without success
  • Check for connectivity issues between HA and LAN Bridge, non found
  • Reset the LAN bridge

Environment Core 2025.4.2 Supervisor 2025.04.0 Operating System 15.1 Zehnder ComfoAirQ version: v0.3.0 Zehnder ComfoAir Q600 Zehnder ComfoConnect LAN C

Any ideas?

Image

Image

mn-box avatar Apr 17 '25 20:04 mn-box

I'm seeing basically the same thing

nkiest avatar Apr 21 '25 08:04 nkiest

It stops working also frequently.

Image

Can this be a result of firmware? I would also expect the hub to be shown here? But instead the hub is shown as a demo device without entities

Image

In the ComfoControl iOS app I am seeing that I have firmware version R1.5.1

Image

Thanks!

mn-box avatar May 03 '25 07:05 mn-box

I also see those same messages in my logs. Does anyone have a solution to this problem?

Chrivi123 avatar Jun 03 '25 13:06 Chrivi123

Same issue for me. It works for a while, and then I start getting timeouts every 5 seconds. Interesting is that it started exactly at 3AM

2025-09-04 03:00:05.260 WARNING (MainThread) [aiocomfoconnect.bridge] Timeout while waiting for response from bridge 2025-09-04 03:00:05.261 WARNING (MainThread) [aiocomfoconnect.bridge] Timeout while waiting for response from bridge 2025-09-04 03:00:05.263 ERROR (MainThread) [homeassistant.helpers.entity] Update for select.comfoairq_boost_mode fails Traceback (most recent call last): File "/usr/local/lib/python3.13/asyncio/tasks.py", line 507, in wait_for return await fut ^^^^^^^^^ asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/local/lib/python3.13/site-packages/aiocomfoconnect/bridge.py", line 173, in _send return await asyncio.wait_for(fut, TIMEOUT) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/asyncio/tasks.py", line 506, in wait_for async with timeouts.timeout(timeout): ~~~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/local/lib/python3.13/asyncio/timeouts.py", line 116, in aexit raise TimeoutError from exc_val TimeoutError

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 963, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1314, in async_device_update await self.async_update() File "/config/custom_components/comfoconnect/select.py", line 219, in async_update self._attr_current_option = await self.entity_description.get_value_fn(self._ccb) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/aiocomfoconnect/comfoconnect.py", line 370, in get_boost result = await self.cmd_rmi_request(bytes([0x83, UNIT_SCHEDULE, SUBUNIT_01, 0x06])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/aiocomfoconnect/bridge.py", line 177, in _send raise AioComfoConnectTimeout("Timeout while waiting for response from bridge") from exc aiocomfoconnect.exceptions.AioComfoConnectTimeout: Timeout while waiting for response from bridge 2025-09-04 03:00:05.279 ERROR (MainThread) [homeassistant.helpers.entity] Update for select.comfoairq_balance_mode fails Traceback (most recent call last): File "/usr/local/lib/python3.13/asyncio/tasks.py", line 507, in wait_for return await fut ^^^^^^^^^ asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/local/lib/python3.13/site-packages/aiocomfoconnect/bridge.py", line 173, in _send return await asyncio.wait_for(fut, TIMEOUT) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/asyncio/tasks.py", line 506, in wait_for async with timeouts.timeout(timeout): ~~~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/local/lib/python3.13/asyncio/timeouts.py", line 116, in aexit raise TimeoutError from exc_val TimeoutError

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 963, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1314, in async_device_update await self.async_update() File "/config/custom_components/comfoconnect/select.py", line 219, in async_update self._attr_current_option = await self.entity_description.get_value_fn(self._ccb) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/aiocomfoconnect/comfoconnect.py", line 331, in get_balance_mode result_06 = await self.cmd_rmi_request(bytes([0x83, UNIT_SCHEDULE, SUBUNIT_06, 0x01])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/aiocomfoconnect/bridge.py", line 177, in _send raise AioComfoConnectTimeout("Timeout while waiting for response from bridge") from exc aiocomfoconnect.exceptions.AioComfoConnectTimeout: Timeout while waiting for response from bridge

And then it goes in endless loops. I tried to enable the debugger, but it's generating too many lines. Looks like this: 2025-09-06 21:25:48.790 WARNING (MainThread) [aiocomfoconnect.bridge] Timeout while waiting for response from bridge 2025-09-06 21:25:48.799 WARNING (MainThread) [aiocomfoconnect.bridge] Timeout while waiting for response from bridge 2025-09-06 21:25:48.814 WARNING (MainThread) [aiocomfoconnect.bridge] Timeout while waiting for response from bridge 2025-09-06 21:25:48.822 WARNING (MainThread) [aiocomfoconnect.bridge] Timeout while waiting for response from bridge 2025-09-06 21:25:48.831 WARNING (MainThread) [aiocomfoconnect.bridge] Timeout while waiting for response from bridge 2025-09-06 21:25:48.843 WARNING (MainThread) [aiocomfoconnect.bridge] Timeout while waiting for response from bridge 2025-09-06 21:25:48.958 WARNING (MainThread) [aiocomfoconnect.bridge] Timeout while waiting for response from bridge 2025-09-06 21:25:48.982 WARNING (MainThread) [aiocomfoconnect.bridge] Timeout while waiting for response from bridge 2025-09-06 21:25:48.992 WARNING (MainThread) [aiocomfoconnect.bridge] Timeout while waiting for response from bridge 2025-09-06 21:25:49.004 WARNING (MainThread) [aiocomfoconnect.bridge] Timeout while waiting for response from bridge 2025-09-06 21:25:49.015 WARNING (MainThread) [aiocomfoconnect.bridge] Timeout while waiting for response from bridge 2025-09-06 21:25:49.072 WARNING (MainThread) [aiocomfoconnect.bridge] Timeout while waiting for response from bridge 2025-09-06 21:25:49.083 WARNING (MainThread) [aiocomfoconnect.bridge] Timeout while waiting for response from bridge 2025-09-06 21:25:49.089 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None) Traceback (most recent call last): File "/usr/local/lib/python3.13/site-packages/aiocomfoconnect/bridge.py", line 218, in _process_message message = await self._read() ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/aiocomfoconnect/bridge.py", line 181, in _read msg_len_buf = await self._reader.readexactly(4) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/asyncio/streams.py", line 767, in readexactly raise exceptions.IncompleteReadError(incomplete, n) asyncio.exceptions.IncompleteReadError: 0 bytes read on a total of 4 expected bytes

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/local/lib/python3.13/site-packages/aiocomfoconnect/bridge.py", line 113, in _read_messages await self._process_message() File "/usr/local/lib/python3.13/site-packages/aiocomfoconnect/bridge.py", line 252, in _process_message raise AioComfoConnectNotConnected("The connection was closed.") from exc aiocomfoconnect.exceptions.AioComfoConnectNotConnected: The connection was closed.

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/local/lib/python3.13/site-packages/aiocomfoconnect/bridge.py", line 121, in _read_messages raise AioComfoConnectNotConnected("We have been disconnected") from exc aiocomfoconnect.exceptions.AioComfoConnectNotConnected: We have been disconnected 2025-09-06 21:25:51.012 DEBUG (MainThread) [aiocomfoconnect.comfoconnect] Unholding sensors 2025-09-06 21:25:51.017 DEBUG (SyncWorker_42) [custom_components.comfoconnect.fan] Handle update for fan speed (65): 2 2025-09-06 21:25:51.017 DEBUG (SyncWorker_8) [custom_components.comfoconnect.sensor] Handle update for sensor Inside temperature (274): 22.4 2025-09-06 21:25:51.017 DEBUG (SyncWorker_32) [custom_components.comfoconnect.sensor] Handle update for sensor Inside humidity (290): 61 2025-09-06 21:25:51.018 DEBUG (SyncWorker_0) [custom_components.comfoconnect.sensor] Handle update for sensor Supply temperature (221): 19.1 2025-09-06 21:25:51.018 DEBUG (SyncWorker_4) [custom_components.comfoconnect.sensor] Handle update for sensor Supply humidity (294): 67 2025-09-06 21:25:51.019 DEBUG (SyncWorker_5) [custom_components.comfoconnect.sensor] Handle update for sensor Bypass state (227): 85 2025-09-06 21:25:51.019 DEBUG (SyncWorker_30) [custom_components.comfoconnect.fan] Handle update for operating mode (56): -1 2025-09-06 21:25:51.020 DEBUG (SyncWorker_13) [custom_components.comfoconnect.select] Handle update for sensor Temperature Profile Mode (67): 1 2025-09-06 21:25:51.021 DEBUG (SyncWorker_36) [custom_components.comfoconnect.sensor] Handle update for sensor Outside humidity (292): 78 2025-09-06 21:25:51.022 DEBUG (SyncWorker_37) [custom_components.comfoconnect.sensor] Handle update for sensor Exhaust humidity (291): 68 2025-09-06 21:25:51.022 DEBUG (SyncWorker_12) [custom_components.comfoconnect.sensor] Handle update for sensor Airflow Constraint (230): None 2025-09-06 21:25:51.023 DEBUG (SyncWorker_39) [custom_components.comfoconnect.select] Handle update for sensor ComfoCool State (784): 0 2025-09-06 21:25:51.023 DEBUG (SyncWorker_35) [custom_components.comfoconnect.sensor] Handle update for sensor Outside temperature (276): 14.6 2025-09-06 21:25:51.024 DEBUG (SyncWorker_23) [custom_components.comfoconnect.sensor] Handle update for sensor Days to replace filter (192): 49 2025-09-06 21:25:51.024 DEBUG (SyncWorker_3) [custom_components.comfoconnect.select] Handle update for sensor Operating Mode (56): -1 2025-09-06 21:25:51.025 DEBUG (SyncWorker_45) [custom_components.comfoconnect.select] Handle update for sensor Bypass Activation State (66): 0 2025-09-06 21:25:51.030 DEBUG (SyncWorker_43) [custom_components.comfoconnect.sensor] Handle update for sensor Exhaust temperature (275): 19.0 2025-09-06 21:25:51.097 DEBUG (MainThread) [aiocomfoconnect.comfoconnect] Unholding sensors 2025-09-06 21:25:51.102 DEBUG (SyncWorker_28) [custom_components.comfoconnect.fan] Handle update for fan speed (65): 2 2025-09-06 21:25:51.103 DEBUG (SyncWorker_21) [custom_components.comfoconnect.sensor] Handle update for sensor Inside temperature (274): 22.4 2025-09-06 21:25:51.103 DEBUG (SyncWorker_1) [custom_components.comfoconnect.sensor] Handle update for sensor Inside humidity (290): 61 2025-09-06 21:25:51.103 DEBUG (SyncWorker_20) [custom_components.comfoconnect.sensor] Handle update for sensor Supply temperature (221): 19.1 2025-09-06 21:25:51.104 DEBUG (SyncWorker_17) [custom_components.comfoconnect.sensor] Handle update for sensor Exhaust humidity (291): 68 2025-09-06 21:25:51.104 DEBUG (SyncWorker_7) [custom_components.comfoconnect.sensor] Handle update for sensor Airflow Constraint (230): None 2025-09-06 21:25:51.105 DEBUG (SyncWorker_25) [custom_components.comfoconnect.select] Handle update for sensor Bypass Activation State (66): 0 2025-09-06 21:25:51.105 DEBUG (SyncWorker_38) [custom_components.comfoconnect.select] Handle update for sensor Temperature Profile Mode (67): 1 2025-09-06 21:25:51.106 DEBUG (SyncWorker_24) [custom_components.comfoconnect.sensor] Handle update for sensor Outside humidity (292): 78 2025-09-06 21:25:51.107 DEBUG (SyncWorker_27) [custom_components.comfoconnect.sensor] Handle update for sensor Supply humidity (294): 67 2025-09-06 21:25:51.107 DEBUG (SyncWorker_41) [custom_components.comfoconnect.sensor] Handle update for sensor Days to replace filter (192): 49 2025-09-06 21:25:51.108 DEBUG (SyncWorker_9) [custom_components.comfoconnect.fan] Handle update for operating mode (56): -1 2025-09-06 21:25:51.108 DEBUG (SyncWorker_15) [custom_components.comfoconnect.select] Handle update for sensor ComfoCool State (784): 0 2025-09-06 21:25:51.109 DEBUG (SyncWorker_31) [custom_components.comfoconnect.sensor] Handle update for sensor Outside temperature (276): 14.6 2025-09-06 21:25:51.110 DEBUG (SyncWorker_22) [custom_components.comfoconnect.sensor] Handle update for sensor Bypass state (227): 85 2025-09-06 21:25:51.110 DEBUG (SyncWorker_18) [custom_components.comfoconnect.select] Handle update for sensor Operating Mode (56): -1 2025-09-06 21:25:51.111 DEBUG (SyncWorker_16) [custom_components.comfoconnect.sensor] Handle update for sensor Exhaust temperature (275): 19.0 2025-09-06 21:25:52.990 WARNING (MainThread) [aiocomfoconnect.bridge] Timeout while waiting for response from bridge 2025-09-06 21:25:52.993 INFO (MainThread) [aiocomfoconnect.bridge] The connection was closed. 2025-09-06 21:25:52.993 INFO (MainThread) [aiocomfoconnect.comfoconnect] Could not reconnect. Retrying after 5 seconds. 2025-09-06 21:25:52.995 INFO (MainThread) [aiocomfoconnect.comfoconnect] We got disconnected. Reconnecting. 2025-09-06 21:25:52.995 DEBUG (MainThread) [aiocomfoconnect.bridge] Connecting to bridge 192.168.1.42 2025-09-06 21:25:53.005 WARNING (MainThread) [aiocomfoconnect.bridge] Timeout while waiting for response from bridge 2025-09-06 21:25:53.005 INFO (MainThread) [aiocomfoconnect.comfoconnect] Could not reconnect. Retrying after 5 seconds. 2025-09-06 21:25:53.007 DEBUG (MainThread) [aiocomfoconnect.bridge] Connected to bridge 192.168.1.42 2025-09-06 21:25:53.007 DEBUG (MainThread) [aiocomfoconnect.bridge] StartSessionRequest 2025-09-06 21:25:53.008 DEBUG (MainThread) [aiocomfoconnect.bridge] Adding listener for event 1 2025-09-06 21:25:53.008 DEBUG (MainThread) [aiocomfoconnect.bridge] TX aba29023509c8191e07038af92307399 -> 00000000002e10168001144fd71e3145: 08032001 0801 type: StartSessionRequestType reference: 1

takeover: true

2025-09-06 21:25:53.009 DEBUG (MainThread) [aiocomfoconnect.bridge] Connecting to bridge 192.168.1.42 2025-09-06 21:25:53.011 DEBUG (MainThread) [aiocomfoconnect.bridge] Connecting to bridge 192.168.1.42 2025-09-06 21:25:53.016 DEBUG (MainThread) [aiocomfoconnect.bridge] Connecting to bridge 192.168.1.42 2025-09-06 21:25:53.021 DEBUG (MainThread) [aiocomfoconnect.bridge] Connected to bridge 192.168.1.42 2025-09-06 21:25:53.021 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)

Gor-Lami avatar Sep 06 '25 20:09 Gor-Lami