Hi,
I’m using the comfoconnect component to control my zehnder comfoairQ ventilation unit. I run homeassistant in a docker container.
Comfoconnect works great after I start home assistant but it stops working after I use the Android comfoconnect app (made by zehnder). This should not be a problem as the documentation states:
Note that it’s not possible to have multiple connection to the bridge at the same time. This integration will keep the connection open, and if you open the app, it will ask you to disconnect Home Assistant. If you close the app again, Home Assistant will reconnect automatically.
However it is my experience that Home Assistant does not reconnect after I close the android app. Only after I restart Home Assistant the connection works again (until I connect using the android app after with HA loses its connection again). It seems like the HA component is not triggered to reconnect again after losing its connection.
Values are not updated and I cannot control the fan speed.
How could I fix this?
I get the error below when I try to change fan speed.
2020-08-07 15:06:18 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.139865630396688] Not connected!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 130, in handle_call_service
connection.context(msg),
File "/usr/src/homeassistant/homeassistant/core.py", line 1260, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1295, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 209, in handle_service
self._platforms.values(), func, call, required_features
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 454, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 595, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 485, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/fan/__init__.py", line 134, in async_turn_on
await self.hass.async_add_job(ft.partial(self.turn_on, speed, **kwargs))
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/fan.py", line 109, in turn_on
self.set_speed(speed)
File "/usr/src/homeassistant/homeassistant/components/comfoconnect/fan.py", line 126, in set_speed
self._ccb.comfoconnect.cmd_rmi_request(CMD_FAN_MODE_HIGH)
File "/usr/local/lib/python3.7/site-packages/pycomfoconnect/comfoconnect.py", line 465, in cmd_rmi_request
use_queue=use_queue
File "/usr/local/lib/python3.7/site-packages/pycomfoconnect/comfoconnect.py", line 150, in _command
self._bridge.write_message(message)
File "/usr/local/lib/python3.7/site-packages/pycomfoconnect/bridge.py", line 127, in write_message
raise Exception('Not connected!')
Exception: Not connected!
Thanks!