Opentherm Gateway integration time-out/disconnect

Hello,

I’m pretty new in Home Assistant. Before I used Domoticz but I’m very pleased with HA since 1 or 2 months I’m using it now. The only problem I have since the start is my Opentherm Gateway integration. The connection is gone sometimes and then my boiler stops heating my home.

There is no specific time frame when it stops working. Sometimes it is after a couple of hours and other days it is working fine and stops working after 2-3 days. When it stops working my thermostat in HA show the correct current temperature and the correct setpoint temperature but it stops heating. Sometimes I wake up and it is 12 degrees in my living room but it should be 17 degrees at night.

First I had my Opentherm gateway with an ESP connected over wifi. This setup always worked in my Domoticz setup for a couple of years. Now I see all this disconnects so I decided to connect my Opentherm Gateway by an FTDI cable direct to my HA raspberry. It is working but now after a day it also stops working this morning. I had to reboot my HA raspberry and then my boiler starts heating again.

It looks like it has something to do with the software integration because my hardware is fine. The Opentherm Gateway was working fine with Domoticz.

In the logging I see the following errors.
Logger: pyotgw.protocol
Source: /usr/local/lib/python3.9/site-packages/pyotgw/protocol.py:567
First occurred: 09:26:10 (2 occurrences)
Last logged: 10:43:03

  • Command PR failed with SE, retrying…
  • Command PR failed with R: A=OpenTherm Gateway 5.1, retrying…

Logger: pyotgw.protocol
Source: /usr/local/lib/python3.9/site-packages/pyotgw/protocol.py:607
First occurred: 10:43:03 (1 occurrences)
Last logged: 10:43:03
Unknown message in command queue: R: A=OpenTherm Gateway 5.1

Logger: pyotgw.protocol
Source: /usr/local/lib/python3.9/site-packages/pyotgw/protocol.py:64
First occurred: 09:47:02 (4 occurrences)
Last logged: 10:43:03
Disconnected: None

Get a lot of the following log issues.

Traceback (most recent call last):

File "/usr/local/lib/python3.9/site-packages/serial/serialposix.py", line 322, in open

self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)

FileNotFoundError: [Errno 2] No such file or directory: '/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A94PHQYU-if00-port0'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/usr/src/homeassistant/homeassistant/components/dsmr/sensor.py", line 146, in connect_and_reconnect

transport, protocol = await hass.loop.create_task(reader_factory())

File "/usr/local/lib/python3.9/site-packages/serial_asyncio/__init__.py", line 445, in create_serial_connection

serial_instance = serial.serial_for_url(*args, **kwargs)

File "/usr/local/lib/python3.9/site-packages/serial/__init__.py", line 90, in serial_for_url

instance.open()

File "/usr/local/lib/python3.9/site-packages/serial/serialposix.py", line 325, in open

raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))

serial.serialutil.SerialException: [Errno 2] could not open port /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A94PHQYU-if00-port0: [Errno 2] No such file or directory: '/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A94PHQYU-if00-port0'

2022-01-08 15:52:16 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: PR, value: D.

Still receive a lot of timeouts. Anyone has a solution for this?

Can you please describe your OTG setup? Are you using a software thermostat? If so, which one?

As for your problem, isn’t the error clear enough?

FileNotFoundError: [Errno 2] No such file or directory: ‘/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A94PHQYU-if00-port0’