Zehnder ComfoConnect component

Not sure you can get them to talk but you can certainly create automations

Sorry just cuious regarding the intergration entries.
Im not sure if I have done something wrong or if this is the inteded way
but do not see any device in the integration, just the entities… ?
if possible can someome please confirm…
otherwise wanted to say thanks all is working as expected.

Since the Core-update to 2024.9.3 the comfoair integration is somehow damaged.
That is shown in the log:


Logger: homeassistant.setup
Quelle: setup.py:334
Erstmals aufgetreten: 14:05:38 (1 Vorkommnisse)
Zuletzt protokolliert: 14:05:38

Setup failed for custom integration 'comfoconnect': Unable to import component: cannot import name 'runtime_version' from 'google.protobuf' (/usr/local/lib/python3.12/site-packages/google/protobuf/__init__.py)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1007, in async_get_component
    comp = await self.hass.async_add_import_executor_job(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1067, in _get_component
    ComponentProtocol, importlib.import_module(self.pkg_path)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/config/custom_components/comfoconnect/__init__.py", line 8, in <module>
    from aiocomfoconnect import ComfoConnect, discover_bridges
  File "/usr/local/lib/python3.12/site-packages/aiocomfoconnect/__init__.py", line 3, in <module>
    from .bridge import Bridge  # noqa
    ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiocomfoconnect/bridge.py", line 27, in <module>
    from .protobuf import zehnder_pb2
  File "/usr/local/lib/python3.12/site-packages/aiocomfoconnect/protobuf/zehnder_pb2.py", line 15, in <module>
    import nanopb.generator.proto.nanopb_pb2 as nanopb__pb2
  File "/usr/local/lib/python3.12/site-packages/nanopb/generator/proto/nanopb_pb2.py", line 9, in <module>
    from google.protobuf import runtime_version as _runtime_version
ImportError: cannot import name 'runtime_version' from 'google.protobuf' (/usr/local/lib/python3.12/site-packages/google/protobuf/__init__.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 334, in _async_setup_component
    component = await integration.async_get_component()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1027, in async_get_component
    self._component_future.result()
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1019, in async_get_component
    comp = self._get_component()
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1067, in _get_component
    ComponentProtocol, importlib.import_module(self.pkg_path)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/config/custom_components/comfoconnect/__init__.py", line 8, in <module>
    from aiocomfoconnect import ComfoConnect, discover_bridges
  File "/usr/local/lib/python3.12/site-packages/aiocomfoconnect/__init__.py", line 3, in <module>
    from .bridge import Bridge  # noqa
    ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiocomfoconnect/bridge.py", line 27, in <module>
    from .protobuf import zehnder_pb2
  File "/usr/local/lib/python3.12/site-packages/aiocomfoconnect/protobuf/zehnder_pb2.py", line 15, in <module>
    import nanopb.generator.proto.nanopb_pb2 as nanopb__pb2
  File "/usr/local/lib/python3.12/site-packages/nanopb/generator/proto/nanopb_pb2.py", line 9, in <module>
    from google.protobuf import runtime_version as _runtime_version
ImportError: cannot import name 'runtime_version' from 'google.protobuf' (/usr/local/lib/python3.12/site-packages/google/protobuf/__init__.py)

I tried to un- and reinstall it. Even that is impossible. De- and reactivation shows no results.
What is to be done to get it working again?
Regards
Bernt

I just received a fixing update in HACS. When you click on refresh info (right top corner) it should show a new version.

Nice work for the quick fix!

I have the same problem which also caused all my REST sensors to read unavailable. I reverted to 2024.9.2 and now the comfoconnect integration won’t load. I can’t find any option to get it to reload. It isn’t a HACS integration so I don’t get how it could update through that.

Same here, still…

Your screenshot suggests you setup in YAML. I think you better set it up from the UI. That might made a difference.

Correct, reverting won’t work. Update to 0.2.3 in HACS and then remove the integration and set it up again. The reverting process has thrown away your old credentials.

Zehnder integration stopped with 2024.11 update today. I get the message ! Not Loaded and all sensors are unavailable. Any ideas? Log reads:

Logger: homeassistant.util.package
Source: util/package.py:152
First occurred: 11:32:35 (3 occurrences)
Last logged: 11:32:37

Unable to install package aiocomfoconnect==0.1.13: × No solution found when resolving dependencies: ╰─▶ Because aiocomfoconnect==0.1.13 depends on protobuf>=4.25.4,<5.0.0 and protobuf==5.28.3, we can conclude that aiocomfoconnect==0.1.13 cannot be used. And because you require aiocomfoconnect==0.1.13, we can conclude that your requirements are unsatisfiable.

Go to HACS and download the latest version (v0.3.0) of the integration. Then this message will disappear.

Hmm. I can’t find anything like comfoconnect or Zehnder in HACS. Isn’t Comfoconnect now part of HA itself? Under “integrations”, Comfoconnect doesn’t have a menu option to re-download or refresh. I tried “add hub” and got

Error
Config flow could not be loaded: 500 Internal Server Error Server got itself in trouble

It’s available here. You’ll need to add it to HACS manually.

The component in Home Assistant isn’t updated since a long time. It should probably be removed, since I don’t have the time to update the new version to be up to the Home Assistant standards for keeping it in core.

Thank you - that worked a treat

hi @michaelarnauts

I see this like every minute in the logs


2024-11-22 21:09:22.062 INFO (MainThread) [aiocomfoconnect.bridge] The connection was closed.

2024-11-22 21:09:22.062 INFO (MainThread) [aiocomfoconnect.comfoconnect] We got disconnected. Reconnecting.

any hints what I could check?
I checked for network - but the bridge is constantly answering pings <1ms while I get those log entries

thanks

seeing this details for above

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/aiocomfoconnect/bridge.py", line 121, in _read_messages
    raise AioComfoConnectNotConnected("We have been disconnected") from exc
aiocomfoconnect.exceptions.AioComfoConnectNotConnected: We have been disconnectede[0m
e[31m2024-11-23 08:24:13.303 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/aiocomfoconnect/bridge.py", line 218, in _process_message
    message = await self._read()
              ^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiocomfoconnect/bridge.py", line 181, in _read
    msg_len_buf = await self._reader.readexactly(4)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 750, 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.12/site-packages/aiocomfoconnect/bridge.py", line 113, in _read_messages
    await self._process_message()
  File "/usr/local/lib/python3.12/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.12/site-packages/aiocomfoconnect/bridge.py", line 121, in _read_messages
    raise AioComfoConnectNotConnected("We have been disconnected") from exc
aiocomfoconnect.exceptions.AioComfoConnectNotConnected: We have been disconnectede[0m
e[32m2024-11-23 08:24:13.305 INFO (MainThread) [aiocomfoconnect.bridge] The connection was closed.e[0m
e[32m2024-11-23 08:24:13.305 INFO (MainThread) [aiocomfoconnect.bridge] The connection was closed.e[0m
e[33m2024-11-23 08:24:13.370 WARNING (MainThread) [aiocomfoconnect.bridge] Timeout while waiting for response from bridgee[0m
e[32m2024-11-23 08:24:13.370 INFO (MainThread) [aiocomfoconnect.comfoconnect] Could not reconnect. Retrying after 5 seconds.e[0m
e[33m2024-11-23 08:24:13.373 WARNING (MainThread) [aiocomfoconnect.bridge] Timeout while waiting for response from bridgee[0m
e[32m2024-11-23 08:24:13.373 INFO (MainThread) [aiocomfoconnect.comfoconnect] Could not reconnect. Retrying after 5 seconds.e[0m
e[31m2024-11-23 08:24:13.702 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/aiocomfoconnect/bridge.py", line 218, in _process_message
    message = await self._read()
              ^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiocomfoconnect/bridge.py", line 181, in _read
    msg_len_buf = await self._reader.readexactly(4)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 750, in readexactly
    raise exceptions.IncompleteReadError(incomplete, n)
asyncio.exceptions.IncompleteReadError: 0 bytes read on a total of 4 expected bytes

2024-11-23 09:22:04.307 INFO (MainThread) [aiocomfoconnect.comfoconnect] We got disconnected. Reconnecting.

2024-11-23 09:22:04.544 ERROR (MainThread) [aiocomfoconnect.comfoconnect] Unknown sensor id: 122

2024-11-23 09:22:04.625 ERROR (MainThread) [aiocomfoconnect.comfoconnect] Unknown sensor id: 120

2024-11-23 09:22:04.705 ERROR (MainThread) [aiocomfoconnect.comfoconnect] Unknown sensor id: 121

2024-11-23 09:22:05.404 INFO (MainThread) [aiocomfoconnect.bridge] The connection was closed.

2024-11-23 09:22:05.405 INFO (MainThread) [aiocomfoconnect.comfoconnect] We got disconnected. Reconnecting.

I deleted the Hub and Added again. Error persits.

I am using the HACS version 0.3.0 on latest HAOS.
My comfoconnect version:

image
image