Skip to content

Stuck when trying to register #33

@FloJ12

Description

@FloJ12

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions