Hello,
I installed aiocomfoconnect and discovered the bridge successfully.
However, when trying to register aiocomfoconnect, it does not show any results and freezes.
This is with a dietpi and a wsl2 ubuntu.
What could be the problem?
Kind regards
Florian
PS: When pressing Ctrl-C to come out of the process, this error is shown:
^CERROR:asyncio:Task exception was never retrieved
future: <Task finished name='Task-4' coro=<Bridge._connect.._read_messages() done, defined at /home/flo/.local/lib/python3.10/site-packages/aiocomfoconnect/bridge.py:104> exception=AioComfoConnectNotConnected() created at /home/flo/.local/lib/python3.10/site-packages/aiocomfoconnect/bridge.py:118>
source_traceback: Object created at (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/flo/.local/lib/python3.10/site-packages/aiocomfoconnect/main.py", line 469, in
asyncio.run(main(arguments), debug=True)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 636, in run_until_complete
self.run_forever()
File "/usr/lib/python3.10/asyncio/base_events.py", line 603, in run_forever
self._run_once()
File "/usr/lib/python3.10/asyncio/base_events.py", line 1901, in _run_once
handle._run()
File "/usr/lib/python3.10/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/home/flo/.local/lib/python3.10/site-packages/aiocomfoconnect/comfoconnect.py", line 79, in _reconnect_loop
read_task = await self._connect(uuid)
File "/home/flo/.local/lib/python3.10/site-packages/aiocomfoconnect/bridge.py", line 118, in _connect
read_task = self._loop.create_task(_read_messages())
Traceback (most recent call last):
File "/home/flo/.local/lib/python3.10/site-packages/aiocomfoconnect/bridge.py", line 213, in _process_message
message = await self._read()
File "/home/flo/.local/lib/python3.10/site-packages/aiocomfoconnect/bridge.py", line 176, in _read
msg_len_buf = await self._reader.readexactly(4)
File "/usr/lib/python3.10/asyncio/streams.py", line 706, in readexactly
raise exceptions.IncompleteReadError(incomplete, n)
asyncio.exceptions.IncompleteReadError: 0 bytes read on a total of 4 expected bytes
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/flo/.local/lib/python3.10/site-packages/aiocomfoconnect/bridge.py", line 108, in _read_messages
await self._process_message()
File "/home/flo/.local/lib/python3.10/site-packages/aiocomfoconnect/bridge.py", line 247, in _process_message
raise AioComfoConnectNotConnected
aiocomfoconnect.exceptions.AioComfoConnectNotConnected
ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='Task-2' coro=<ComfoConnect.connect.._reconnect_loop() done, defined at /home/flo/.local/lib/python3.10/site-packages/aiocomfoconnect/comfoconnect.py:75> exception=ComfoConnectNotAllowed(<aiocomfoconnect.bridge.Message object at 0x7f22dd106650>) created at /home/flo/.local/lib/python3.10/site-packages/aiocomfoconnect/comfoconnect.py:115>
source_traceback: Object created at (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/flo/.local/lib/python3.10/site-packages/aiocomfoconnect/main.py", line 469, in
asyncio.run(main(arguments), debug=True)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 636, in run_until_complete
self.run_forever()
File "/usr/lib/python3.10/asyncio/base_events.py", line 603, in run_forever
self._run_once()
File "/usr/lib/python3.10/asyncio/base_events.py", line 1901, in _run_once
handle._run()
File "/usr/lib/python3.10/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/home/flo/.local/lib/python3.10/site-packages/aiocomfoconnect/main.py", line 31, in main
await run_register(args.host, args.uuid, args.name, args.pin)
File "/home/flo/.local/lib/python3.10/site-packages/aiocomfoconnect/main.py", line 88, in run_register
await comfoconnect.connect(uuid)
File "/home/flo/.local/lib/python3.10/site-packages/aiocomfoconnect/comfoconnect.py", line 115, in connect
reconnect_task = self._loop.create_task(_reconnect_loop())
Traceback (most recent call last):
File "/home/flo/.local/lib/python3.10/site-packages/aiocomfoconnect/comfoconnect.py", line 82, in _reconnect_loop
await self.cmd_start_session(True)
File "/home/flo/.local/lib/python3.10/site-packages/aiocomfoconnect/bridge.py", line 168, in _send
return await asyncio.wait_for(fut, TIMEOUT)
File "/usr/lib/python3.10/asyncio/tasks.py", line 445, in wait_for
return fut.result()
File "/home/flo/.local/lib/python3.10/site-packages/aiocomfoconnect/bridge.py", line 213, in _process_message
message = await self._read()
File "/home/flo/.local/lib/python3.10/site-packages/aiocomfoconnect/bridge.py", line 200, in _read
raise ComfoConnectNotAllowed(message)
aiocomfoconnect.exceptions.ComfoConnectNotAllowed: 00000000001110178001144fd71dcedc -> 00000000000000000000000000000001: 083510052001
type: StartSessionConfirmType
result: NOT_ALLOWED
reference: 1
I can think of two reasons.
- You have a non-default PIN
- You are running an old firmware on the Comfoconnect LAN C and there is already an active connection.
I got exactly the same issue. After some digging I found this script, which uses the old library: https://github.com/ORi0N/comfoconnect_openhab_gw/tree/master I tried the script and it registered successfully, then when I tried with the same local UUID to register using this library, I got already registered and a list of registered apps. From there I can access other commands like show-sensors.
Btw, I have not changed the PIN, i.e. I'm using the default one. And here are my software versions:

I have the same issue. Default PIN, latest FW (same as @mslavov).
Hello,
I have the same problem.
Discover works, but it is not possible to register.
Tried with Debian 12, python 3.11.2.
Tried with pip3, docker and virtualenv, but no success.
Firmware of ComfoAir Q350: R1.11.0, ComfoConnect LAN C: R1.5.1, Default-Pin 0000
Disconnected all Apps.
What can be done further?
Thank you for any help!
Same here. I also noticed that the registration will always freeze (i.e. not return anything), regardless of what PIN is given. I tried to add --pin 1234 as a parameter and it was the same result.
Normally I would expect the feedback "Registration failed. Please check the PIN." when an incorrect PIN is given.
I wonder if this was the cause: https://github.com/michaelarnauts/aiocomfoconnect/pull/50