OpenTherm Gateway binding

According to the log, the TCP socket connection is closed by the OTGW, if this happens every 10 to 20 seconds, there is indeed probably an issue with the NodeMCU. Hope you can find the problem, I don’t have this Nodo OTGW + NodeMCU to troubleshoot…

I replaced the NodeMCU module. So far it seems stable. Bit strange though as it is working fine elsewhere now. Maybe the otgw is giving just a little power issue to this NOdeMCU module.
Thanks.

Great - I’ve logged an issue https://github.com/openhab/openhab-addons/issues/9205, and issued a pull request for it https://github.com/openhab/openhab-addons/pull/9206. I think I’ve explained the issue in a good amount of detail, and also the known gap as I understand it in the added functionality.

@Maarten_Srednas I have the Nodoshop OTGW but with the ethernet module, it’s stable for me. I’d be surprised if it was a power issue, the whole board with a networking addon should only consume a couple of watts, they normally sell it with a 12W adaptor but suggested a 6W one should also be fine.

1 Like

Hi all,
I’m using the binding now for about a year without issues. Works very well.
One thing I recently spotted: The boiler signaled a “service needed” which can be seen in the display of the heating. Via Opentherm Monitor I get the flag on “Diagnostic indication” as checked, so I guess otgw identifies it correctly.
However none of the binding items is being checked.

2020-12-16 16_16_36-Opentherm Monitor

2020-12-16 16_17_20-Paper UI — Mozilla Firefox

Someone experiencing the same issue? Or does someone know how to debug the issue? I turned on the debug mode of the binding but also no help:

2020-12-16 16:03:54.974 [TRACE] [rnal.OpenThermGatewaySocketConnector] - Received message: T00050000, 5 T READDATA
2020-12-16 16:03:54.974 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 5 servicerequest FLAGS OFF
2020-12-16 16:03:54.975 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 5 lockout-reset FLAGS OFF
2020-12-16 16:03:54.975 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 5 lowwaterpress FLAGS OFF
2020-12-16 16:03:54.975 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 5 gasflamefault FLAGS OFF
2020-12-16 16:03:54.975 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 5 airpressfault FLAGS OFF
2020-12-16 16:03:54.976 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 5 waterovtemp FLAGS OFF
2020-12-16 16:03:54.976 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 5 0x05:6 FLAGS OFF
2020-12-16 16:03:54.976 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 5 0x05:7 FLAGS OFF
2020-12-16 16:03:54.977 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 5 oemfaultcode UINT8 0
2020-12-16 16:03:55.076 [TRACE] [rnal.OpenThermGatewaySocketConnector] - Received message: BC00500FF, 5 B READACK
2020-12-16 16:03:55.077 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 5 servicerequest FLAGS OFF
2020-12-16 16:03:55.077 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 5 lockout-reset FLAGS OFF
2020-12-16 16:03:55.077 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 5 lowwaterpress FLAGS OFF
2020-12-16 16:03:55.077 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 5 gasflamefault FLAGS OFF
2020-12-16 16:03:55.078 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 5 airpressfault FLAGS OFF
2020-12-16 16:03:55.078 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 5 waterovtemp FLAGS OFF
2020-12-16 16:03:55.078 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 5 0x05:6 FLAGS OFF
2020-12-16 16:03:55.078 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 5 0x05:7 FLAGS OFF
2020-12-16 16:03:55.078 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 5 oemfaultcode UINT8 255
2020-12-16 16:03:55.079 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'servicerequest': OFF
2020-12-16 16:03:55.079 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'lockout-reset': OFF
2020-12-16 16:03:55.080 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'lowwaterpress': OFF
2020-12-16 16:03:55.080 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'gasflamefault': OFF
2020-12-16 16:03:55.080 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'airpressfault': OFF
2020-12-16 16:03:55.081 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'waterovtemp': OFF
2020-12-16 16:03:55.081 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'oemfaultcode': 255

This is the message I see in the log of Opentherm Monitor:

|16:23:06.923908|T00000300|Read-Data |Status: 00000011 00000000|
|16:23:07.024669|B4000034A|Read-Ack  |Status: 00000011 01001010|

Any hints appreciated!

I realized now that I had a look at the wrong message. Having the right message in the log of the binding the flag is being interpreted correctly (diag FLAGS ON)

2020-12-16 16:04:11.279 [TRACE] [rnal.OpenThermGatewaySocketConnector] - Received message: B4000034A, 0 B READACK
2020-12-16 16:04:11.279 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 0 ch_enable FLAGS ON
2020-12-16 16:04:11.279 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 0 dhw_enable FLAGS ON
2020-12-16 16:04:11.279 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 0 cooling_enabled FLAGS OFF
2020-12-16 16:04:11.280 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 0 otc_active FLAGS OFF
2020-12-16 16:04:11.280 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 0 ch2_enable FLAGS OFF
2020-12-16 16:04:11.280 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 0 0x00:5 FLAGS OFF
2020-12-16 16:04:11.280 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 0 0x00:6 FLAGS OFF
2020-12-16 16:04:11.280 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 0 0x00:7 FLAGS OFF
2020-12-16 16:04:11.280 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 0 fault FLAGS OFF
2020-12-16 16:04:11.281 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 0 ch_mode FLAGS ON
2020-12-16 16:04:11.281 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 0 dhw_mode FLAGS OFF
2020-12-16 16:04:11.281 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 0 flame FLAGS ON
2020-12-16 16:04:11.281 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 0 cooling FLAGS OFF
2020-12-16 16:04:11.281 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 0 ch2E FLAGS OFF
2020-12-16 16:04:11.282 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 0 diag FLAGS ON
2020-12-16 16:04:11.282 [TRACE] [rnal.OpenThermGatewaySocketConnector] -   Data: 0 0x00:7 FLAGS OFF

But how can I get this populated into a openhab item?

Hi Frank,

I don’t think that this value is currently mapped to a channel in the binding. And without a mapping to a channel, I don’t think you can link it to an item and display the value or use it in rules or anything like that.

That said, it’s not that much work to add a channel for this value. I’ll have a look at it and let you know once I have a test version ready.

Edit: can you try this version ?

Hi Arjen,
wow, thanks a lot for putting out a new snapshot so quickly.
I added it to my openhab installation and it worked! Now shows the diagnostics indication correctly.

2020-12-16 19_01_41-Paper UI — Mozilla Firefox

Will report back if the ON/OFF toggle works correctly as soon as my service guy fixes the issue :wink:

Best
Frank

Already created a pull request to add the Diagnostics indication channel to the OpenTherm Gateway binding.

1 Like

I’m using the OpenTherm Gateway binding for more than a year now, without issues.
A few days ago I dit a clean install of Openhab 3.0 and installed and configured the OpenTherm binding.
After sometime I noticed the OpenTherm thing went offline.I looked in the logs and saw it lost his connection to the OpenTherm gateway. (probably caused by a router reset or something)
The issue is the binding does try to reconnect but if it failed 2 times it stops retrying and only reconnects again if I restart Openhab or the binding (works only in gui not in the karaf console or api)
This issues didn’t excist in openhab 2.5 so I think the openhab 3.0 version is the main cause.
Here’s the part from my logfile:

2021-01-18 18:51:29.288 [WARN ] [rnal.OpenThermGatewaySocketConnector] - Unable to connect to the OpenTherm Gateway.
java.net.SocketTimeoutException: Read timed out
        at java.net.SocketInputStream.socketRead0(Native Method) ~[?:?]
        at java.net.SocketInputStream.socketRead(SocketInputStream.java:115) ~[?:?]
        at java.net.SocketInputStream.read(SocketInputStream.java:168) ~[?:?]
        at java.net.SocketInputStream.read(SocketInputStream.java:140) ~[?:?]
        at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284) ~[?:?]
        at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326) ~[?:?]
        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178) ~[?:?]
        at java.io.InputStreamReader.read(InputStreamReader.java:185) ~[?:?]
        at java.io.BufferedReader.fill(BufferedReader.java:161) ~[?:?]
        at java.io.BufferedReader.readLine(BufferedReader.java:326) ~[?:?]
        at java.io.BufferedReader.readLine(BufferedReader.java:392) ~[?:?]
        at org.openhab.binding.openthermgateway.internal.OpenThermGatewaySocketConnector.run(OpenThermGatewaySocketConnector.java:94) [bundleFile:?]
        at java.lang.Thread.run(Thread.java:834) [?:?]
2021-01-18 18:51:44.295 [WARN ] [rnal.OpenThermGatewaySocketConnector] - Unable to connect to the OpenTherm Gateway.
java.net.SocketTimeoutException: connect timed out
        at java.net.PlainSocketImpl.socketConnect(Native Method) ~[?:?]
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399) ~[?:?]
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242) ~[?:?]
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224) ~[?:?]
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403) ~[?:?]
        at java.net.Socket.connect(Socket.java:609) ~[?:?]
        at org.openhab.binding.openthermgateway.internal.OpenThermGatewaySocketConnector.run(OpenThermGatewaySocketConnector.java:74) [bundleFile:?]
        at java.lang.Thread.run(Thread.java:834) [?:?]

After those entries the log is empty regarding the OpenTherm binding.

1 Like

Hi Rakoon, the OpenTherm Gateway binding should continue to reconnect indefinitely, unless the Connection Retry Interval setting is set to 0, in which case it would not try to reconnect at all.

So, I am not sure why this would happen, and the log you posted doesn’t give me enough details.

Could you try to set the loglevel to DEBUG for org.openhab.binding.openthermgateway to get more tracing information that could explain the cause of this issue?

Setting the loglevel to DEBUG is explained in #23.

Thanks!
Arjen

@Mephix Actually I’m having exactly the same problem.

openhab> log:set DEBUG org.openhab.binding.openthermgateway
openhab> log:tail

...

<disconnect NodeMCU running EspEasy and Ser2Net from power for 20 seconds>

...

20:49:00.092 [DEBUG] [ernal.OpenThermGatewaySocketConnector] - Sending message: PS=0
20:49:00.094 [DEBUG] [teway.handler.OpenThermGatewayHandler] - Received update for channel 'ch_enableoverride': OFF
20:49:05.103 [DEBUG] [ernal.OpenThermGatewaySocketConnector] - OpenThermGatewaySocketConnector disconnected
20:49:05.108 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'openthermgateway:otgw:1' changed from ONLINE to OFFLINE: Disconnected
20:49:05.110 [WARN ] [ernal.OpenThermGatewaySocketConnector] - Unable to connect to the OpenTherm Gateway.
java.net.SocketTimeoutException: Read timed out
	at java.net.SocketInputStream.socketRead0(Native Method) ~[?:?]
	at java.net.SocketInputStream.socketRead(SocketInputStream.java:115) ~[?:?]
	at java.net.SocketInputStream.read(SocketInputStream.java:168) ~[?:?]
	at java.net.SocketInputStream.read(SocketInputStream.java:140) ~[?:?]
	at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284) ~[?:?]
	at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326) ~[?:?]
	at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178) ~[?:?]
	at java.io.InputStreamReader.read(InputStreamReader.java:185) ~[?:?]
	at java.io.BufferedReader.fill(BufferedReader.java:161) ~[?:?]
	at java.io.BufferedReader.readLine(BufferedReader.java:326) ~[?:?]
	at java.io.BufferedReader.readLine(BufferedReader.java:392) ~[?:?]
	at org.openhab.binding.openthermgateway.internal.OpenThermGatewaySocketConnector.run(OpenThermGatewaySocketConnector.java:94) [bundleFile:?]
	at java.lang.Thread.run(Thread.java:834) [?:?]
20:49:10.107 [DEBUG] [teway.handler.OpenThermGatewayHandler] - Starting OpenTherm Gateway connector
20:49:10.110 [DEBUG] [teway.handler.OpenThermGatewayHandler] - OpenTherm Gateway connector started
20:49:10.111 [DEBUG] [ernal.OpenThermGatewaySocketConnector] - Connecting OpenThermGatewaySocketConnector to 192.168.1.215:2323
20:49:10.116 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'openthermgateway:otgw:1' changed from OFFLINE: Disconnected to UNKNOWN: Connecting
20:49:15.117 [WARN ] [ernal.OpenThermGatewaySocketConnector] - Unable to connect to the OpenTherm Gateway.
java.net.SocketTimeoutException: connect timed out
	at java.net.PlainSocketImpl.socketConnect(Native Method) ~[?:?]
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399) ~[?:?]
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242) ~[?:?]
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224) ~[?:?]
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403) ~[?:?]
	at java.net.Socket.connect(Socket.java:609) ~[?:?]
	at org.openhab.binding.openthermgateway.internal.OpenThermGatewaySocketConnector.run(OpenThermGatewaySocketConnector.java:74) [bundleFile:?]
	at java.lang.Thread.run(Thread.java:834) [?:?]


The log will just stay like that and the OpenTherm Gateway thing will stay UNKNOWN until I force a reload of the things file in OpenHab.

Things file:

// Opentherm Gateway
Thing openthermgateway:otgw:1 [ ipaddress="192.168.1.215", port=2323, connectionRetryInterval=5 ]

I have same problem here. It is intermittent , fails after several days. Restart of de Nodemcu doesnt help, I must pause Openhab Thing and restart to have it work again.

Hi @Exeleration-G and @robr57, it seems you are both using NodeMCU, is that with the Nodoshop OTGW module ? And are you both using openHAB 3.0 as well ?

And @Rakoon are you also using a Nodoshop OTGW + NodeMCU ?

Hi Arjen I’m using a NodeMCU v2 on an Opentherm Gateway rev B board. Not the.Nodoshop one. Openhab v3.

Hi Arjen, U use NodeMCU with the Nodoshop OTGW module. NodeMCU with firmware version 201909.
And yes, I use openHAB 3.0 .

I think a Wifi reconnect has occurred by the NodeMCU before the connection fails.

Ok, thanks for the replies… it seems like it may be related to the openHAB 3.0 version of the binding. Combined with instable connections of the NodeMCU I must say, but ok… thats something the binding should be able to handle.

I’ll try to see if I can find out why the binding doesn’t continue to reconnect like it should. It may have something to do with changes in the way the scheduler works in openHAB 3.0. I am still using 2.5 myself though, so I’ll need to rely on you for testing.

Yes, I’m using the Nodoshop OTGW, but replaced the NodeMCU for a self build STM32 (aka blue pill) with an ethernet connection a long time ago, because of the unreliable NodeMCU WiFi connection.
I’v updated to the latest snapshot build today and can restart the binding on the Karaf console again. So I wrote a little HabApp (Python3) script to autorestart the binding when necessary, so I can relax again :wink:

I think I may have found the issue. When the binding is connected and at some point gets disconnected, a scheduler is set to automatically try to reconnect after a configurable number of seconds (default=60).

But… if a connection attempt fails (so thats a different scenario), then the disconnected callback function isn’t invoked which results in the scheduler not being set for automatic reconnection.

So, I have added a call to the disconnected callback function when a connection attempt fails. That should cause the reconnect task to be scheduled. I also added some extra debug logging.

I have uploaded a 3.0.1-SNAPSHOT version. Feel free try this version and let me know if it solves the issue.

Also, I created issue #9903 and will create a PR to merge the change if tests are succesful.

If anyone is interested… code is here.

That’s fast. Will test as soon as I get home.

Hi Arjen, I just tried version 3.0.1. It seems like it works now. I tried it three times. I have to note that one time, the plugin got in some sort of connect-disconnect loop. I have no idea what might have triggered this. Pasting the output here for future refrence.

DEBUG output:

2021-01-21 23:38:59.133 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'openthermgateway:otgw:1' changed from OFFLINE: Disconnected to UNKNOWN: Connecting

2021-01-21 23:38:59.190 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'openthermgateway:otgw:1' changed from UNKNOWN: Connecting to ONLINE

==> /var/log/openhab/openhab.log <==

2021-01-21 23:38:59.412 [DEBUG] [rnal.OpenThermGatewaySocketConnector] - Received command confirmation: PS:  0

2021-01-21 23:39:04.419 [DEBUG] [rnal.OpenThermGatewaySocketConnector] - OpenThermGatewaySocketConnector disconnected

2021-01-21 23:39:04.421 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Scheduling to reconnect in 5 seconds.

2021-01-21 23:39:04.425 [WARN ] [rnal.OpenThermGatewaySocketConnector] - Unable to connect to the OpenTherm Gateway.

java.net.SocketTimeoutException: Read timed out

	at java.net.SocketInputStream.socketRead0(Native Method) ~[?:?]

	at java.net.SocketInputStream.socketRead(SocketInputStream.java:115) ~[?:?]

	at java.net.SocketInputStream.read(SocketInputStream.java:168) ~[?:?]

	at java.net.SocketInputStream.read(SocketInputStream.java:140) ~[?:?]

	at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284) ~[?:?]

	at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326) ~[?:?]

	at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178) ~[?:?]

	at java.io.InputStreamReader.read(InputStreamReader.java:185) ~[?:?]

	at java.io.BufferedReader.fill(BufferedReader.java:161) ~[?:?]

	at java.io.BufferedReader.readLine(BufferedReader.java:326) ~[?:?]

	at java.io.BufferedReader.readLine(BufferedReader.java:392) ~[?:?]

	at org.openhab.binding.openthermgateway.internal.OpenThermGatewaySocketConnector.run(OpenThermGatewaySocketConnector.java:94) [bundleFile:?]

	at java.lang.Thread.run(Thread.java:834) [?:?]

2021-01-21 23:39:04.429 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Scheduling to reconnect in 5 seconds.

==> /var/log/openhab/events.log <==

2021-01-21 23:39:04.424 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'openthermgateway:otgw:1' changed from ONLINE to OFFLINE: Disconnected

==> /var/log/openhab/openhab.log <==

2021-01-21 23:39:09.426 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Trying to reconnect...

2021-01-21 23:39:09.427 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Starting OpenTherm Gateway connector

2021-01-21 23:39:09.429 [DEBUG] [eway.handler.OpenThermGatewayHandler] - OpenTherm Gateway connector started

2021-01-21 23:39:09.430 [DEBUG] [rnal.OpenThermGatewaySocketConnector] - Connecting OpenThermGatewaySocketConnector to 192.168.1.215:2323

2021-01-21 23:39:09.431 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Already connecting...

2021-01-21 23:39:09.531 [DEBUG] [rnal.OpenThermGatewaySocketConnector] - OpenThermGatewaySocketConnector connected

2021-01-21 23:39:09.533 [DEBUG] [rnal.OpenThermGatewaySocketConnector] - Sending message: PR=A

2021-01-21 23:39:09.535 [DEBUG] [rnal.OpenThermGatewaySocketConnector] - Sending message: PS=0

2021-01-21 23:39:09.641 [DEBUG] [rnal.OpenThermGatewaySocketConnector] - Received command confirmation: PR:  A=OpenTherm Gateway 4.2.8.2

2021-01-21 23:39:09.712 [DEBUG] [rnal.OpenThermGatewaySocketConnector] - Received command confirmation: PS:  0

==> /var/log/openhab/events.log <==

2021-01-21 23:39:09.434 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'openthermgateway:otgw:1' changed from OFFLINE: Disconnected to UNKNOWN: Connecting

2021-01-21 23:39:09.533 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'openthermgateway:otgw:1' changed from UNKNOWN: Connecting to ONLINE

==> /var/log/openhab/openhab.log <==

2021-01-21 23:39:14.720 [DEBUG] [rnal.OpenThermGatewaySocketConnector] - OpenThermGatewaySocketConnector disconnected

2021-01-21 23:39:14.723 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Scheduling to reconnect in 5 seconds.

2021-01-21 23:39:14.728 [WARN ] [rnal.OpenThermGatewaySocketConnector] - Unable to connect to the OpenTherm Gateway.

java.net.SocketTimeoutException: Read timed out

	at java.net.SocketInputStream.socketRead0(Native Method) ~[?:?]

	at java.net.SocketInputStream.socketRead(SocketInputStream.java:115) ~[?:?]

	at java.net.SocketInputStream.read(SocketInputStream.java:168) ~[?:?]

	at java.net.SocketInputStream.read(SocketInputStream.java:140) ~[?:?]

	at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284) ~[?:?]

	at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326) ~[?:?]

	at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178) ~[?:?]

	at java.io.InputStreamReader.read(InputStreamReader.java:185) ~[?:?]

	at java.io.BufferedReader.fill(BufferedReader.java:161) ~[?:?]

	at java.io.BufferedReader.readLine(BufferedReader.java:326) ~[?:?]

	at java.io.BufferedReader.readLine(BufferedReader.java:392) ~[?:?]

	at org.openhab.binding.openthermgateway.internal.OpenThermGatewaySocketConnector.run(OpenThermGatewaySocketConnector.java:94) [bundleFile:?]

	at java.lang.Thread.run(Thread.java:834) [?:?]

2021-01-21 23:39:14.734 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Scheduling to reconnect in 5 seconds.

==> /var/log/openhab/events.log <==

2021-01-21 23:39:14.725 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'openthermgateway:otgw:1' changed from ONLINE to OFFLINE: Disconnected

==> /var/log/openhab/openhab.log <==

2021-01-21 23:39:19.728 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Trying to reconnect...

2021-01-21 23:39:19.731 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Starting OpenTherm Gateway connector

2021-01-21 23:39:19.734 [DEBUG] [eway.handler.OpenThermGatewayHandler] - OpenTherm Gateway connector started

2021-01-21 23:39:19.734 [DEBUG] [rnal.OpenThermGatewaySocketConnector] - Connecting OpenThermGatewaySocketConnector to 192.168.1.215:2323

2021-01-21 23:39:19.736 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Already connecting...

2021-01-21 23:39:19.771 [DEBUG] [rnal.OpenThermGatewaySocketConnector] - OpenThermGatewaySocketConnector connected

2021-01-21 23:39:19.773 [DEBUG] [rnal.OpenThermGatewaySocketConnector] - Sending message: PR=A

2021-01-21 23:39:19.775 [DEBUG] [rnal.OpenThermGatewaySocketConnector] - Sending message: PS=0

2021-01-21 23:39:19.837 [DEBUG] [rnal.OpenThermGatewaySocketConnector] - Received command confirmation: PR:  A=OpenTherm Gateway 4.2.8.2

2021-01-21 23:39:19.915 [DEBUG] [rnal.OpenThermGatewaySocketConnector] - Received command confirmation: PS:  0

==> /var/log/openhab/events.log <==

2021-01-21 23:39:19.739 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'openthermgateway:otgw:1' changed from OFFLINE: Disconnected to UNKNOWN: Connecting

2021-01-21 23:39:19.773 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'openthermgateway:otgw:1' changed from UNKNOWN: Connecting to ONLINE

==> /var/log/openhab/openhab.log <==

2021-01-21 23:39:24.923 [DEBUG] [rnal.OpenThermGatewaySocketConnector] - OpenThermGatewaySocketConnector disconnected

2021-01-21 23:39:24.925 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Scheduling to reconnect in 5 seconds.

2021-01-21 23:39:24.929 [WARN ] [rnal.OpenThermGatewaySocketConnector] - Unable to connect to the OpenTherm Gateway.

java.net.SocketTimeoutException: Read timed out

	at java.net.SocketInputStream.socketRead0(Native Method) ~[?:?]

	at java.net.SocketInputStream.socketRead(SocketInputStream.java:115) ~[?:?]

	at java.net.SocketInputStream.read(SocketInputStream.java:168) ~[?:?]

	at java.net.SocketInputStream.read(SocketInputStream.java:140) ~[?:?]

	at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284) ~[?:?]

	at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326) ~[?:?]

	at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178) ~[?:?]

	at java.io.InputStreamReader.read(InputStreamReader.java:185) ~[?:?]

	at java.io.BufferedReader.fill(BufferedReader.java:161) ~[?:?]

	at java.io.BufferedReader.readLine(BufferedReader.java:326) ~[?:?]

	at java.io.BufferedReader.readLine(BufferedReader.java:392) ~[?:?]

	at org.openhab.binding.openthermgateway.internal.OpenThermGatewaySocketConnector.run(OpenThermGatewaySocketConnector.java:94) [bundleFile:?]

	at java.lang.Thread.run(Thread.java:834) [?:?]

2021-01-21 23:39:24.932 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Scheduling to reconnect in 5 seconds.

==> /var/log/openhab/events.log <==

2021-01-21 23:39:24.927 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'openthermgateway:otgw:1' changed from ONLINE to OFFLINE: Disconnected

==> /var/log/openhab/openhab.log <==

2021-01-21 23:39:29.929 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Trying to reconnect...

2021-01-21 23:39:29.930 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Starting OpenTherm Gateway connector

2021-01-21 23:39:29.933 [DEBUG] [eway.handler.OpenThermGatewayHandler] - OpenTherm Gateway connector started

2021-01-21 23:39:29.934 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Trying to reconnect...

2021-01-21 23:39:29.936 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Starting OpenTherm Gateway connector

2021-01-21 23:39:29.933 [DEBUG] [rnal.OpenThermGatewaySocketConnector] - Connecting OpenThermGatewaySocketConnector to 192.168.1.215:2323

2021-01-21 23:39:29.939 [DEBUG] [eway.handler.OpenThermGatewayHandler] - OpenTherm Gateway connector started

2021-01-21 23:39:29.939 [DEBUG] [rnal.OpenThermGatewaySocketConnector] - Connecting OpenThermGatewaySocketConnector to 192.168.1.215:2323

2021-01-21 23:39:30.010 [DEBUG] [rnal.OpenThermGatewaySocketConnector] - OpenThermGatewaySocketConnector connected

2021-01-21 23:39:30.011 [DEBUG] [rnal.OpenThermGatewaySocketConnector] - OpenThermGatewaySocketConnector connected

2021-01-21 23:39:30.013 [DEBUG] [rnal.OpenThermGatewaySocketConnector] - Sending message: PR=A

2021-01-21 23:39:30.013 [DEBUG] [rnal.OpenThermGatewaySocketConnector] - Sending message: PR=A

2021-01-21 23:39:30.015 [DEBUG] [rnal.OpenThermGatewaySocketConnector] - Sending message: PS=0

2021-01-21 23:39:30.016 [DEBUG] [rnal.OpenThermGatewaySocketConnector] - Sending message: PS=0

2021-01-21 23:39:30.150 [DEBUG] [rnal.OpenThermGatewaySocketConnector] - Received command confirmation: PR:  A=OpenTherm Gateway 4.2.8.2

2021-01-21 23:39:30.206 [DEBUG] [rnal.OpenThermGatewaySocketConnector] - OpenThermGatewaySocketConnector disconnected

2021-01-21 23:39:30.208 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Scheduling to reconnect in 5 seconds.

2021-01-21 23:39:30.211 [WARN ] [rnal.OpenThermGatewaySocketConnector] - Unable to connect to the OpenTherm Gateway.

java.net.SocketException: Connection reset

	at java.net.SocketInputStream.read(SocketInputStream.java:186) ~[?:?]

	at java.net.SocketInputStream.read(SocketInputStream.java:140) ~[?:?]

	at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284) ~[?:?]

	at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326) ~[?:?]

	at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178) ~[?:?]

	at java.io.InputStreamReader.read(InputStreamReader.java:185) ~[?:?]

	at java.io.BufferedReader.fill(BufferedReader.java:161) ~[?:?]

	at java.io.BufferedReader.readLine(BufferedReader.java:326) ~[?:?]

	at java.io.BufferedReader.readLine(BufferedReader.java:392) ~[?:?]

	at org.openhab.binding.openthermgateway.internal.OpenThermGatewaySocketConnector.run(OpenThermGatewaySocketConnector.java:94) [bundleFile:?]

	at java.lang.Thread.run(Thread.java:834) [?:?]

2021-01-21 23:39:30.215 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Scheduling to reconnect in 5 seconds.