Laxilef / OTGateway

OpenTherm gateway for HomeAssistant
GNU General Public License v3.0
150 stars 20 forks source link

Losing connection with boiler #53

Closed shaggee closed 5 months ago

shaggee commented 7 months ago

Im using 1.4.0-rc.15 on Wemos D1 mini with Termet Ecocondens 25 Integra II boiler. The connection works well but after couple hours, the connection with boiler is lost.

Manually restart OTGateway - no results Manually power cycle OTGateway - no results Manually power cycle boiler - connection established again

How can I check the connection logs? Any advice to resolve this problem?

obraz

Laxilef commented 7 months ago

Connect via telnet and save logs when the problem occurs. This may be due to the boiler settings or the wiring. What is the length of the wire? What wire is used? Are there power wires near the opentherm wire?

shaggee commented 7 months ago

Connect via telnet and save logs when the problem occurs. This may be due to the boiler settings or the wiring. What is the length of the wire? What wire is used? Are there power wires near the opentherm wire?

The wire is arround 30cm length. Yes the are power cables near opentherm wire. I will move the board and wires and test it again.

Laxilef commented 7 months ago

Hi @shaggee Did you find the problem?

shaggee commented 7 months ago

Hi @shaggee Did you find the problem?

What I did:

  1. Shortened the cable to 15cm. The cable is a simple 2x1,5mm2 speaker cable.
  2. Moved the Wemos D1 and OT adapter away from electric cables

After this upgrades, im still losing the connection

Im recording the logs since yesterday 14:00 . So far the connection is stable. Strange.

obraz

shaggee commented 6 months ago

Strange. I saved the telnet logs for 4 days without any connection lose. Today I turned off logging and tadam. After 10 hours connection losed:

[00:01:22][MQTT][TRACE] Successfully publish 0 of 0 bytes to topic: opentherm/state/set [00:01:22][MQTT][TRACE] Successfully publish 6 of 6 bytes to topic: opentherm/status [00:01:22][OT][TRACE] ID: 0 Request: 1200 Response: 0 Attempt: 4 Status: TIMEOUT [00:01:23][MQTT][TRACE] Successfully publish 474 of 474 bytes to topic: opentherm/state [00:01:24][OT][TRACE] ID: 0 Request: 1200 Response: 0 Attempt: 5 Status: TIMEOUT [00:01:24][OT][WARN] Invalid response after setBoilerStatus: TIMEOUT [00:01:25][MAIN][VERB] Free heap size: 25056 of 81920 bytes (min: 20776, diff: 0), max free block: 22296 (min: 15016, diff: 0, frag: 11%) [00:01:26][OT][TRACE] ID: 0 Request: 1200 Response: 0 Attempt: 1 Status: TIMEOUT [00:01:27][OT][TRACE] ID: 0 Request: 1200 Response: 0 Attempt: 2 Status: TIMEOUT [00:01:28][OT][TRACE] ID: 0 Request: 1200 Response: 0 Attempt: 3 Status: TIMEOUT [00:01:29][OT][TRACE] ID: 0 Request: 1200 Response: 0 Attempt: 4 Status: TIMEOUT [00:01:30][OT][TRACE] ID: 0 Request: 1200 Response: 0 Attempt: 5 Status: TIMEOUT [00:01:30][OT][WARN] Invalid response after setBoilerStatus: TIMEOUT [00:01:32][OT][TRACE] ID: 0 Request: 1200 Response: 0 Attempt: 1 Status: TIMEOUT [00:01:33][OT][TRACE] ID: 0 Request: 1200 Response: 0 Attempt: 2 Status: TIMEOUT [00:01:34][OT][TRACE] ID: 0 Request: 1200 Response: 0 Attempt: 3 Status: TIMEOUT [00:01:36][OT][TRACE] ID: 0 Request: 1200 Response: 0 Attempt: 4 Status: TIMEOUT [00:01:37][OT][TRACE] ID: 0 Request: 1200 Response: 0 Attempt: 5 Status: TIMEOUT [00:01:37][OT][WARN] Invalid response after setBoilerStatus: TIMEOUT [00:01:38][MQTT][TRACE] Successfully publish 6 of 6 bytes to topic: opentherm/status [00:01:38][MQTT][TRACE] Successfully publish 474 of 474 bytes to topic: opentherm/state

Seems I need to set up the server for 24/7 telnet logging to get it 100% work.

blitzu commented 6 months ago

Try to reflash firmware, I had the same problem

shaggee commented 6 months ago

Try to reflash firmware, I had the same problem

I tried. It doesnt help

Laxilef commented 6 months ago

I think it is necessary to save the log at the moment of connection loss. Perhaps sending some request breaks the openterm on the boiler.

shaggee commented 6 months ago

Okay give me one week to record the logs 24/7.

shaggee commented 6 months ago

Problem solved. Replaced Wemos D1 mini to ESP32 D1 mini and there are no connection issues. It may be D1 mini firmware/hardware problem.

github-actions[bot] commented 6 months ago

This issue is stale because it has been open 15 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 5 months ago

This issue was closed because it has been stalled for 5 days with no activity.