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

Error setting up the integration

Open Rudinhoo opened this issue 10 months ago • 15 comments

Hi guys,

I'm running into the following error after installing the integration in version 0.3.0. HA is on the latest version 2025.2.4. Could anyone help me? Thanks so much! :)

Error setting up entry 192.168.xxx.xx for comfoconnect Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 637, in __async_setup_with_context result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/comfoconnect/init.py", line 111, in async_setup_entry unit_model = await bridge.get_property(PROPERTY_MODEL) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/aiocomfoconnect/comfoconnect.py", line 140, in get_property return await self.get_single_property(prop.unit, prop.subunit, prop.property_id, prop.property_type, node_id=node_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/aiocomfoconnect/comfoconnect.py", line 144, in get_single_property result = await self.cmd_rmi_request(bytes([0x01, unit, subunit, 0x10, property_id]), node_id=node_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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 507, in wait_for return await fut ^^^^^^^^^ 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 211, in _read raise ComfoConnectRmiError(message) aiocomfoconnect.exceptions.ComfoConnectRmiError: 00000000001510178001144fd71dd81e -> 093d236b16e8f39527089708fe413c81: 082210082003 080e type: CnRmiResponseType result: RMI_ERROR reference: 3

result: 14

Rudinhoo avatar Feb 18 '25 21:02 Rudinhoo

Hmm nobody?

Rudinhoo avatar Feb 24 '25 15:02 Rudinhoo

I have no idea what's wrong. Does everything work with the Comfoconnect app? Maybe check if your unit has been upgraded to the latest firmware? R1.10.0 should work fine.

michaelarnauts avatar Feb 24 '25 16:02 michaelarnauts

Oh no! :( App works perfectly fine and I'm on R1.10.0. I have absolutely no idea what to do...

Rudinhoo avatar Feb 24 '25 16:02 Rudinhoo

What unit do you have? It's requesting the model number, but that doesn't seem to return a valid result. Can you also show a screenshot of the detail page of the app? Maybe blur out the Serial Numbers if you don't want to share those.

michaelarnauts avatar Feb 24 '25 17:02 michaelarnauts

Hey Michael, you mean this page? Oh btw. maybe a stupid question, do I need to have cloud activated in the app?

Image

Rudinhoo avatar Feb 24 '25 17:02 Rudinhoo

May I add into this thread that I am experiencing very similar issues, with similar setup:

Running latest HA: Core 2025.2.5 Supervisor 2025.02.1 Operating System 14.2 Frontend 20250221.0

Home Assistant Zehnder ComfoAirQ / ComfoCoolQ integration: v0.3.0

HRU Type: ComfoAir Q350 SI TR ERV with HRV currently installed in Right orientation Article number: 471502111 ComfoAir Q Firmware: R1.10.0 ComfoConnectGateway: R1.5.1

The errors that I get:

2025-02-24 19:12:17.606 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-02-24 19:12:22.606 WARNING (MainThread) [aiocomfoconnect.bridge] Timeout while waiting for response from bridge 2025-02-24 19:12:22.606 ERROR (MainThread) [aiohttp.server] Error handling request from 192.168.2.197 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/local/lib/python3.13/site-packages/aiohttp/web_protocol.py", line 480, in _handle_request resp = await request_handler(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/aiohttp/web_app.py", line 569, in _handle return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/aiohttp/web_middlewares.py", line 117, in impl return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 83, in forwarded_middleware return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 86, in ban_middleware return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware response = await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle result = await handler(request, **request.match_info) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 81, in with_admin return await func(self, request, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 222, in post return await super().post(request, flow_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 74, in wrapper return await method(view, request, data, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 121, in post result = await self._flow_mgr.async_configure(flow_id, data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 340, in async_configure result = await self._async_configure(flow_id, user_input) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 387, 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 490, in _async_handle_step result: _FlowResultT = await getattr(flow, method)(user_input) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/comfoconnect/config_flow.py", line 64, in async_step_user return await self._register() ^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/comfoconnect/config_flow.py", line 123, in _register await self.bridge.cmd_register_app( ...<3 lines>... ) 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

Any help or suggestions how to debug the issues further are appreciated :)

MatevzBokalic avatar Feb 24 '25 18:02 MatevzBokalic

Hey Michael, you mean this page? Oh btw. maybe a stupid question, do I need to have cloud activated in the app?

Image

You don't need cloud. The integration works locally.

I don't have a ComfoSense, but I don't think that's the issue.

Can you try to modify the line https://github.com/michaelarnauts/home-assistant-comfoconnect/blob/b6e95443b67635af009e2761931d4aa452c1c0fc/custom_components/comfoconnect/init.py#L111 in your custom_components folder?

And change this with unit_model = "" Note that the amount of spaces at the beginning of the line should match.

michaelarnauts avatar Feb 24 '25 19:02 michaelarnauts

Thank you Michael! :) The error is gone, just the model name isn't visible, but that doesn't matter. However, setting the fan mode doesn't work, and it is the like I had with the "old" integration given on the HA website (copying the lines into the config.yaml).

Logger: homeassistant.components.websocket_api.http.connection Quelle: components/websocket_api/commands.py:245 Integration: Home Assistant WebSocket API (Dokumentation, Probleme) Erstmals aufgetreten: 20:16:19 (4 Vorkommnisse) Zuletzt protokolliert: 20:17:38

[281472399191216] Unexpected exception Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service response = await hass.services.async_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<7 lines>... ) ^ File "/usr/src/homeassistant/homeassistant/core.py", line 2794, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2837, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1007, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ hass, entity, func, data, call.context ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1079, in _handle_entity_call result = await task ^^^^^^^^^^ File "/config/custom_components/comfoconnect/fan.py", line 148, in async_set_percentage await self._ccb.set_speed(speed) File "/usr/local/lib/python3.13/site-packages/aiocomfoconnect/comfoconnect.py", line 259, in set_speed await self.cmd_rmi_request(bytes([0x84, UNIT_SCHEDULE, SUBUNIT_01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02])) 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 507, in wait_for return await fut ^^^^^^^^^ 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 211, in _read raise ComfoConnectRmiError(message) aiocomfoconnect.exceptions.ComfoConnectRmiError: 00000000001510178001144fd71dd81e -> da8f72c4ac318213eb0bbe33d4263f80: 082210082020 080c type: CnRmiResponseType result: RMI_ERROR reference: 32

result: 12

Rudinhoo avatar Feb 24 '25 19:02 Rudinhoo

Hmm, it's back a RMI_ERROR. I think that some of the ID's are different on your system, but I don't know what they are, or why they are different...

Can you enable debug logging and provide a full log? During the initial login, if should give debug info about the detected units. I wonder if they are different compared to my system.

michaelarnauts avatar Feb 24 '25 21:02 michaelarnauts

I have provided the file in private. I hope you can find something in that...

Rudinhoo avatar Feb 24 '25 23:02 Rudinhoo

Hi Michael, you found anything? Unfortunately I have no idea on how to get it to work... :(

Rudinhoo avatar Mar 04 '25 21:03 Rudinhoo

Hi,

same problem here with a Comfo Air Flex 350. The integration used to work at first, then it stopped working after a technician did a firmware update to the latest version available R1.2.0.

Can i provide any log or debug to help solve the problem?

Dettagli registro (ERRORE) Registratore: homeassistant.config_entries Fonte: config_entries.py:749 Prima occorrenza: 10:08:14 (1 occorrenza) Ultimo accesso: 10:08:14

Error setting up entry 192.168.2.172 for comfoconnect Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 749, in __async_setup_with_context result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/comfoconnect/init.py", line 111, in async_setup_entry unit_model = await bridge.get_property(PROPERTY_MODEL) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/aiocomfoconnect/comfoconnect.py", line 146, in get_property return await self.get_single_property(prop.unit, prop.subunit, prop.property_id, prop.property_type, node_id=node_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/aiocomfoconnect/comfoconnect.py", line 150, in get_single_property result = await self.cmd_rmi_request(bytes([0x01, unit, subunit, 0x10, property_id]), node_id=node_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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 507, in wait_for return await fut ^^^^^^^^^ 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 211, in _read raise ComfoConnectRmiError(message) aiocomfoconnect.exceptions.ComfoConnectRmiError: 000000000030101c800b144fd71c0a0d -> 988921e7ea7dad929e78d21c7bb54660: 082210082003 082d type: CnRmiResponseType result: RMI_ERROR reference: 3

result: 45

FrancescoC87 avatar Jul 07 '25 08:07 FrancescoC87

Good day to all of you! (not the best day, since you are reading this page...) I encounter a problem while installing the v0.4.0 of the Home Assistant Zehnder ComfoAirQ / ComfoCoolQ integration.

I had an integration, if I could call it like that, that was done using the configuration.yaml. At a certain point I could not use it anymore due to the update I've made to the Home Assistant.

Details about the unit:

Unit:

  • Zehnder ComfoAir Q600 SI ST ERV
  • Firmware: R1.8.2

Home Assistant:

  • Installation method: Home Assistant OS
  • Core: 2025.9.4
  • Supervisor: 2025.09.0
  • Operating System: 16.2
  • Frontend: 20250903.5

I have cleared the configuration.yaml for any trace of the manual-made configuration. Then I installed via HACS this Integration. All went fine, it detects the LAN C's IP address, but it does not connect to it, giving the error "Unknown error occurred".

Image

I have tried to restart the unit, in order to log-off al eventual connected users, but without any success.

What should I do to see what is the reason, and eventually make this Integration work?

Thank you in advance for any suggestion and assistance!

Mishta avatar Sep 15 '25 08:09 Mishta

Good day to all of you! (not the best day, since you are reading this page...) I encounter a problem while installing the v0.4.0 of the Home Assistant Zehnder ComfoAirQ / ComfoCoolQ integration.

I had an integration, if I could call it like that, that was done using the configuration.yaml. At a certain point I could not use it anymore due to the update I've made to the Home Assistant.

Details about the unit:

Unit:

  • Zehnder ComfoAir Q600 SI ST ERV
  • Firmware: R1.8.2

Home Assistant:

  • Installation method: Home Assistant OS
  • Core: 2025.9.4
  • Supervisor: 2025.09.0
  • Operating System: 16.2
  • Frontend: 20250903.5

I have cleared the configuration.yaml for any trace of the manual-made configuration. Then I installed via HACS this Integration. All went fine, it detects the LAN C's IP address, but it does not connect to it, giving the error "Unknown error occurred".

Image I have tried to restart the unit, in order to log-off al eventual connected users, but without any success.

What should I do to see what is the reason, and eventually make this Integration work?

Thank you in advance for any suggestion and assistance!

Hello @all,

Zehnder:

  • Zehnder ComfoAir Q350
  • Firmware: R1.12.0
  • ComfoConnect Pro R1.0.4

Home Assistant:

  • Installation method: Home Assistant OS
  • Core: 2025.9.3
  • Supervisor: 2025.09.0
  • Operating System: 16.2
  • Frontend: 20250903.5

i have exactly the same problem than @Mishta. Thanks for your help and your time ;-) Regards

guimsteack avatar Sep 28 '25 10:09 guimsteack

I have the same issue as @Mishta.

HA Core: 2025.11.1

Happy to help debugging just tell me what to do.

tilentravnik avatar Nov 10 '25 04:11 tilentravnik

Same issue as @Mishta - "unknown error occurred" - any fix?

jeanfourie avatar Nov 30 '25 17:11 jeanfourie

following this up again - any fix for the "unknown error occured"?

jeanfourie avatar Dec 09 '25 14:12 jeanfourie