Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

home assistant core? #25

Closed
krismarc opened this issue Apr 26, 2024 · 1 comment
Closed

home assistant core? #25

krismarc opened this issue Apr 26, 2024 · 1 comment

Comments

@krismarc
Copy link

Hey Michael,

any plans make it into home assistant core? As I see, the old version doesn't support enabling bypass, am I right?
https://github.com/michaelarnauts/comfoconnect

btw, I am unable to register any new uuid (gets stuck).

PS B:\git\aiocomfoconnect> python -m aiocomfoconnect register --name test --uuid 00000000000000000000000000000002 --host 172.98.98.75
ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='Task-2' coro=<ComfoConnect.connect.<locals>._reconnect_loop() done, defined at B:\git\aiocomfoconnect\aiocomfoconnect\comfoconnect.py:75> exception=ComfoConnectNotAllowed(<aiocomfoconnect.bridge.Message object at 0x000002133239F1C0>) created at B:\git\aiocomfoconnect\aiocomfoconnect\comfoconnect.py:115>
source_traceback: Object created at (most recent call last):
  File "C:\Users\Kikus\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\Kikus\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "B:\git\aiocomfoconnect\aiocomfoconnect\__main__.py", line 469, in <module>
    asyncio.run(main(arguments), debug=True)
  File "C:\Users\Kikus\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "C:\Users\Kikus\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 636, in run_until_complete
    self.run_forever()
  File "C:\Users\Kikus\AppData\Local\Programs\Python\Python310\lib\asyncio\windows_events.py", line 321, in run_forever
    super().run_forever()
  File "C:\Users\Kikus\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 603, in run_forever
    self._run_once()
  File "C:\Users\Kikus\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1898, in _run_once
    handle._run()
  File "C:\Users\Kikus\AppData\Local\Programs\Python\Python310\lib\asyncio\events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "B:\git\aiocomfoconnect\aiocomfoconnect\__main__.py", line 31, in main
    await run_register(args.host, args.uuid, args.name, args.pin)
  File "B:\git\aiocomfoconnect\aiocomfoconnect\__main__.py", line 88, in run_register
    await comfoconnect.connect(uuid)
  File "B:\git\aiocomfoconnect\aiocomfoconnect\comfoconnect.py", line 115, in connect
    reconnect_task = self._loop.create_task(_reconnect_loop())
Traceback (most recent call last):
  File "B:\git\aiocomfoconnect\aiocomfoconnect\comfoconnect.py", line 82, in _reconnect_loop
    await self.cmd_start_session(True)
  File "B:\git\aiocomfoconnect\aiocomfoconnect\bridge.py", line 168, in _send
    return await asyncio.wait_for(fut, TIMEOUT)
  File "C:\Users\Kikus\AppData\Local\Programs\Python\Python310\lib\asyncio\tasks.py", line 445, in wait_for
    return fut.result()
  File "B:\git\aiocomfoconnect\aiocomfoconnect\bridge.py", line 213, in _process_message
    message = await self._read()
  File "B:\git\aiocomfoconnect\aiocomfoconnect\bridge.py", line 200, in _read
    raise ComfoConnectNotAllowed(message)
aiocomfoconnect.exceptions.ComfoConnectNotAllowed: 00000000000e10178001144fd71dc774 -> 00000000000000000000000000000002: 083510052001
type: StartSessionConfirmType
result: NOT_ALLOWED
reference: 1

The default one is taken by home assistant one and if I use it then integration in HA stops to communicate with the bridge.

python -m aiocomfoconnect register --host 172.98.98.75
UUID 00000000000000000000000000000001 is already registered.

In order to make them both to work in parallel, I've forced it to use my iPhone's app uuid:
DEFAULT_UUID = "84d379f844844ef0bd15604363d7d762"
DEFAULT_PIN = 0000
DEFAULT_NAME = "iPhone"

Best regards,
K.M.

@michaelarnauts
Copy link
Owner

You can use any UUID, my HACS integration should pick a random one.

There is a open issue here to track the inclusion in HA Core: michaelarnauts/home-assistant-comfoconnect#1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants