Hi,
Thanks for the hint - this is where I started and that did not work, so I thought there’s some “magic” which is not mentioned in the HA integration description.
Doing everything as mention in the description of the integration I get the HA notification:
"The following integrations and platforms could not be set up:
- comfoconnect
- comfoconnect.sensor
Please check your config."
and bunch of error messages in the home assistant log:
'2020-06-14 13:25:48 ERROR (MainThread) [homeassistant.setup] Error during setup of component comfoconnect
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/pycomfoconnect/comfoconnect.py”, line 273, in _connect
self.cmd_start_session(takeover, use_queue=False)
File “/usr/local/lib/python3.7/site-packages/pycomfoconnect/comfoconnect.py”, line 377, in cmd_start_session
use_queue=use_queue
File “/usr/local/lib/python3.7/site-packages/pycomfoconnect/comfoconnect.py”, line 157, in _command
reply = self._get_reply(confirm_type, use_queue=use_queue)
File “/usr/local/lib/python3.7/site-packages/pycomfoconnect/comfoconnect.py”, line 199, in _get_reply
raise PyComfoConnectNotAllowed()
pycomfoconnect.error.PyComfoConnectNotAllowed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/pycomfoconnect/comfoconnect.py”, line 77, in connect self._connect(takeover=takeover)
File “/usr/local/lib/python3.7/site-packages/pycomfoconnect/comfoconnect.py”, line 279, in _connect
self.cmd_register_app(self._local_uuid, self._local_devicename, self._pin, use_queue=False)
File “/usr/local/lib/python3.7/site-packages/pycomfoconnect/comfoconnect.py”, line 411, in cmd_register_app
use_queue=use_queue
File “/usr/local/lib/python3.7/site-packages/pycomfoconnect/comfoconnect.py”, line 157, in _command
reply = self._get_reply(confirm_type, use_queue=use_queue)
File “/usr/local/lib/python3.7/site-packages/pycomfoconnect/comfoconnect.py”, line 199, in _get_reply
raise PyComfoConnectNotAllowed()
pycomfoconnect.error.PyComfoConnectNotAllowed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/setup.py”, line 190, in _async_setup_component
result = await asyncio.wait_for(task, SLOW_SETUP_MAX_WAIT)
File “/usr/local/lib/python3.7/asyncio/tasks.py”, line 442, in wait_for
return fut.result()
File “/usr/local/lib/python3.7/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/homeassistant/homeassistant/components/comfoconnect/init.py”, line 74, in setup ccb.connect()
File “/usr/src/homeassistant/homeassistant/components/comfoconnect/init.py”, line 109, in connect
self.comfoconnect.connect(True)
File “/usr/local/lib/python3.7/site-packages/pycomfoconnect/comfoconnect.py”, line 80, in connect
raise Exception(‘Could not connect to the bridge since the PIN seems to be invalid.’)
Exception: Could not connect to the bridge since the PIN seems to be invalid.
2020-06-14 13:25:48 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform comfoconnect.sensor: Unable to set up component.
2020-06-14 13:26:04 WARNING (MainThread) [aiohttp.websocket] websocket connection is closing.’
I added only lines which are mentioned to be required to the configuration.yaml, which are:
comfoconnect:
-host: IP_of_the_ventilation_comfoconnect
and then the whole sensors section.
Is there anything which needs to be done to make it work? is pycomfoconnect installation the only other thing? How HA knows that it should run it? Is an additional Python daemon needed?
It’s bit lenghtly, but I hope with some guidance from people who made it run I will get there as well and then also the HA integration section could be updated accordingly.
Anyway thanks for all the help and efforts to create this integration. When I finally get it to run I was thinking about linking arming alarm system with turning the ventiation system off (saving of energy and filters).
Thanks!