home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.93k stars 30.99k forks source link

Opentherm gateway timeout when adding integration #34087

Closed Appesteijn closed 4 years ago

Appesteijn commented 4 years ago

The problem

My Opentherm gateway worked fine untill a few days ago, not sure what HA version. At least since 108 it stopped working. I removed the integration and tried to add it again after a reboot.

When trying to add it through the UI (configuration -> integrations) I get a time out or the popup removes my entered text but doesn't go away.

I use a otgw with Wifi esp addon. It used to work with esp-link, but when trying to get it to work again, I flashed espeasy on it but still no integration.

With otmonitor from a different PC I do get a data stream. Not sure if correctly responds to commands tho.

My opentherm gateway is not added to my integrations.

Environment

Problem-relevant configuration.yaml

Not relevant, trying to add from UI

Traceback/Error logs

2020-04-12 12:46:08 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for circadian_lighting which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-04-12 12:46:08 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-04-12 12:46:10 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for buienalarm which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-04-12 12:49:14 DEBUG (MainThread) [pyotgw.pyotgw] Connected to serial device on socket://192.168.1.65:2323
2020-04-12 12:49:14 DEBUG (MainThread) [pyotgw.protocol] Sending command: PR with value A
2020-04-12 12:49:14 DEBUG (MainThread) [pyotgw.protocol] Received line 1: T00110000
2020-04-12 12:49:14 DEBUG (MainThread) [pyotgw.protocol] Added line 1 to message queue. Queue size: 1
2020-04-12 12:49:14 DEBUG (MainThread) [pyotgw.protocol] Received line 2: BC0110000
2020-04-12 12:49:14 DEBUG (MainThread) [pyotgw.protocol] Added line 2 to message queue. Queue size: 2
2020-04-12 12:49:14 DEBUG (MainThread) [pyotgw.protocol] Processing: T 00 11 00 00
2020-04-12 12:49:14 DEBUG (MainThread) [pyotgw.protocol] Processing: B 04 11 00 00
2020-04-12 12:49:14 DEBUG (MainThread) [pyotgw.protocol] Watchdog reset!
2020-04-12 12:49:14 DEBUG (MainThread) [pyotgw.protocol] Watchdog reset!
2020-04-12 12:49:15 DEBUG (MainThread) [pyotgw.protocol] Received line 3: T80190000
2020-04-12 12:49:15 DEBUG (MainThread) [pyotgw.protocol] Added line 3 to message queue. Queue size: 1
2020-04-12 12:49:15 DEBUG (MainThread) [pyotgw.protocol] Processing: T 00 19 00 00
2020-04-12 12:49:15 DEBUG (MainThread) [pyotgw.protocol] Watchdog reset!
2020-04-12 12:49:15 DEBUG (MainThread) [pyotgw.protocol] Received line 4: BC0191933
2020-04-12 12:49:15 DEBUG (MainThread) [pyotgw.protocol] Added line 4 to message queue. Queue size: 1
2020-04-12 12:49:15 DEBUG (MainThread) [pyotgw.protocol] Processing: B 04 19 19 33
2020-04-12 12:49:15 DEBUG (MainThread) [pyotgw.protocol] Watchdog reset!
2020-04-12 12:49:16 DEBUG (MainThread) [pyotgw.protocol] Received line 5: T00090000
2020-04-12 12:49:16 DEBUG (MainThread) [pyotgw.protocol] Added line 5 to message queue. Queue size: 1
2020-04-12 12:49:16 DEBUG (MainThread) [pyotgw.protocol] Received line 6: R801C0000
2020-04-12 12:49:16 DEBUG (MainThread) [pyotgw.protocol] Added line 6 to message queue. Queue size: 2
2020-04-12 12:49:16 DEBUG (MainThread) [pyotgw.protocol] Processing: T 00 09 00 00
2020-04-12 12:49:16 DEBUG (MainThread) [pyotgw.protocol] Processing: R 00 1c 00 00
2020-04-12 12:49:16 DEBUG (MainThread) [pyotgw.protocol] Watchdog reset!
2020-04-12 12:49:16 DEBUG (MainThread) [pyotgw.protocol] Watchdog reset!
2020-04-12 12:49:16 DEBUG (MainThread) [pyotgw.protocol] Received line 7: BC01C1933
2020-04-12 12:49:16 DEBUG (MainThread) [pyotgw.protocol] Added line 7 to message queue. Queue size: 1
2020-04-12 12:49:16 DEBUG (MainThread) [pyotgw.protocol] Received line 8: AC0090000
2020-04-12 12:49:16 DEBUG (MainThread) [pyotgw.protocol] Added line 8 to message queue. Queue size: 2
2020-04-12 12:49:16 DEBUG (MainThread) [pyotgw.protocol] Processing: B 04 1c 19 33
2020-04-12 12:49:16 DEBUG (MainThread) [pyotgw.protocol] Processing: A 04 09 00 00
2020-04-12 12:49:16 DEBUG (MainThread) [pyotgw.protocol] Watchdog reset!
2020-04-12 12:49:16 DEBUG (MainThread) [pyotgw.protocol] Watchdog reset!
2020-04-12 12:49:17 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: PR, value: A.
2020-04-12 12:49:17 DEBUG (MainThread) [pyotgw.protocol] Sending command: PR with value B
2020-04-12 12:49:17 DEBUG (MainThread) [pyotgw.protocol] Received line 9: T00630000
2020-04-12 12:49:17 DEBUG (MainThread) [pyotgw.protocol] Added line 9 to message queue. Queue size: 1
2020-04-12 12:49:17 DEBUG (MainThread) [pyotgw.protocol] Received line 10: R801C0000
2020-04-12 12:49:17 DEBUG (MainThread) [pyotgw.protocol] Added line 10 to message queue. Queue size: 2
2020-04-12 12:49:17 DEBUG (MainThread) [pyotgw.protocol] Processing: T 00 63 00 00
2020-04-12 12:49:17 DEBUG (MainThread) [pyotgw.protocol] Processing: R 00 1c 00 00
2020-04-12 12:49:17 DEBUG (MainThread) [pyotgw.protocol] Watchdog reset!
2020-04-12 12:49:17 DEBUG (MainThread) [pyotgw.protocol] Watchdog reset!
2020-04-12 12:49:17 DEBUG (MainThread) [pyotgw.protocol] Received line 11: BC01C1933
2020-04-12 12:49:17 DEBUG (MainThread) [pyotgw.protocol] Added line 11 to message queue. Queue size: 1
2020-04-12 12:49:17 DEBUG (MainThread) [pyotgw.protocol] Received line 12: AF0630000
2020-04-12 12:49:17 DEBUG (MainThread) [pyotgw.protocol] Processing: B 04 1c 19 33
2020-04-12 12:49:17 DEBUG (MainThread) [pyotgw.protocol] Watchdog reset!
2020-04-12 12:49:17 DEBUG (MainThread) [pyotgw.protocol] Watchdog reset!
2020-04-12 12:49:18 DEBUG (MainThread) [pyotgw.protocol] Received line 13: T900E6400
2020-04-12 12:49:18 DEBUG (MainThread) [pyotgw.protocol] Added line 13 to message queue. Queue size: 1
2020-04-12 12:49:18 DEBUG (MainThread) [pyotgw.protocol] Processing: T 01 0e 64 00
2020-04-12 12:49:18 DEBUG (MainThread) [pyotgw.protocol] Watchdog reset!
2020-04-12 12:49:18 DEBUG (MainThread) [pyotgw.protocol] Received line 14: B500E6400
2020-04-12 12:49:18 DEBUG (MainThread) [pyotgw.protocol] Added line 14 to message queue. Queue size: 1
2020-04-12 12:49:18 DEBUG (MainThread) [pyotgw.protocol] Processing: B 05 0e 64 00
2020-04-12 12:49:18 DEBUG (MainThread) [pyotgw.protocol] Watchdog reset!
2020-04-12 12:49:19 DEBUG (MainThread) [pyotgw.protocol] Received line 15: T00000000
2020-04-12 12:49:19 DEBUG (MainThread) [pyotgw.protocol] Added line 15 to message queue. Queue size: 1
2020-04-12 12:49:19 DEBUG (MainThread) [pyotgw.protocol] Processing: T 00 00 00 00
2020-04-12 12:49:19 DEBUG (MainThread) [pyotgw.protocol] Watchdog reset!
2020-04-12 12:49:19 DEBUG (MainThread) [pyotgw.protocol] Received line 16: BC0000000
2020-04-12 12:49:19 DEBUG (MainThread) [pyotgw.protocol] Added line 16 to message queue. Queue size: 1
2020-04-12 12:49:19 DEBUG (MainThread) [pyotgw.protocol] Processing: B 04 00 00 00
2020-04-12 12:49:19 DEBUG (MainThread) [pyotgw.protocol] Watchdog reset!
2020-04-12 12:49:20 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: PR, value: B.
2020-04-12 12:49:20 DEBUG (MainThread) [pyotgw.protocol] Sending command: PR with value C
2020-04-12 12:49:20 DEBUG (MainThread) [pyotgw.protocol] Received line 17: T10010C99
2020-04-12 12:49:20 DEBUG (MainThread) [pyotgw.protocol] Added line 17 to message queue. Queue size: 1
2020-04-12 12:49:20 DEBUG (MainThread) [pyotgw.protocol] Received line 18: BD0010C99
2020-04-12 12:49:20 DEBUG (MainThread) [pyotgw.protocol] Added line 18 to message queue. Queue size: 2
2020-04-12 12:49:20 DEBUG (MainThread) [pyotgw.protocol] Processing: T 01 01 0c 99
2020-04-12 12:49:20 DEBUG (MainThread) [pyotgw.protocol] Processing: B 05 01 0c 99
2020-04-12 12:49:20 DEBUG (MainThread) [pyotgw.protocol] Watchdog reset!
2020-04-12 12:49:20 DEBUG (MainThread) [pyotgw.protocol] Watchdog reset!
2020-04-12 12:49:21 DEBUG (MainThread) [pyotgw.protocol] Received line 19: T00110000
2020-04-12 12:49:21 DEBUG (MainThread) [pyotgw.protocol] Added line 19 to message queue. Queue size: 1
2020-04-12 12:49:21 DEBUG (MainThread) [pyotgw.protocol] Received line 20: BC0110000
2020-04-12 12:49:21 DEBUG (MainThread) [pyotgw.protocol] Added line 20 to message queue. Queue size: 2
2020-04-12 12:49:21 DEBUG (MainThread) [pyotgw.protocol] Processing: T 00 11 00 00
2020-04-12 12:49:21 DEBUG (MainThread) [pyotgw.protocol] Processing: B 04 11 00 00
2020-04-12 12:49:21 DEBUG (MainThread) [pyotgw.protocol] Watchdog reset!
2020-04-12 12:49:21 DEBUG (MainThread) [pyotgw.protocol] Watchdog reset!
2020-04-12 12:49:22 DEBUG (MainThread) [pyotgw.protocol] Received line 21: T80190000
2020-04-12 12:49:22 DEBUG (MainThread) [pyotgw.protocol] Added line 21 to message queue. Queue size: 1
2020-04-12 12:49:22 DEBUG (MainThread) [pyotgw.protocol] Received line 22: BC0191933
2020-04-12 12:49:22 DEBUG (MainThread) [pyotgw.protocol] Added line 22 to message queue. Queue size: 2
2020-04-12 12:49:22 DEBUG (MainThread) [pyotgw.protocol] Processing: T 00 19 00 00
2020-04-12 12:49:22 DEBUG (MainThread) [pyotgw.protocol] Processing: B 04 19 19 33
2020-04-12 12:49:22 DEBUG (MainThread) [pyotgw.protocol] Watchdog reset!
2020-04-12 12:49:22 DEBUG (MainThread) [pyotgw.protocol] Watchdog reset!
2020-04-12 12:49:23 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: PR, value: C.
2020-04-12 12:49:23 DEBUG (MainThread) [pyotgw.protocol] Sending command: PR with value G
2020-04-12 12:49:23 DEBUG (MainThread) [pyotgw.protocol] Received line 23: T00090000
2020-04-12 12:49:23 DEBUG (MainThread) [pyotgw.protocol] Added line 23 to message queue. Queue size: 1
2020-04-12 12:49:23 DEBUG (MainThread) [pyotgw.protocol] Received line 24: R801C0000
2020-04-12 12:49:23 DEBUG (MainThread) [pyotgw.protocol] Added line 24 to message queue. Queue size: 2
2020-04-12 12:49:23 DEBUG (MainThread) [pyotgw.protocol] Processing: T 00 09 00 00
2020-04-12 12:49:23 DEBUG (MainThread) [pyotgw.protocol] Processing: R 00 1c 00 00
2020-04-12 12:49:23 DEBUG (MainThread) [pyotgw.protocol] Watchdog reset!
2020-04-12 12:49:23 DEBUG (MainThread) [pyotgw.protocol] Watchdog reset!
2020-04-12 12:49:23 DEBUG (MainThread) [pyotgw.protocol] Received line 25: BC01C192E
2020-04-12 12:49:23 DEBUG (MainThread) [pyotgw.protocol] Added line 25 to message queue. Queue size: 1
2020-04-12 12:49:23 DEBUG (MainThread) [pyotgw.protocol] Received line 26: AC0090000
2020-04-12 12:49:23 DEBUG (MainThread) [pyotgw.protocol] Added line 26 to message queue. Queue size: 2
2020-04-12 12:49:23 DEBUG (MainThread) [pyotgw.protocol] Processing: B 04 1c 19 2e
2020-04-12 12:49:23 DEBUG (MainThread) [pyotgw.protocol] Processing: A 04 09 00 00
2020-04-12 12:49:23 DEBUG (MainThread) [pyotgw.protocol] Watchdog reset!
2020-04-12 12:49:23 DEBUG (MainThread) [pyotgw.protocol] Watchdog reset!
2020-04-12 12:49:24 DEBUG (MainThread) [pyotgw.protocol] Received line 27: T00630000
2020-04-12 12:49:24 DEBUG (MainThread) [pyotgw.protocol] Added line 27 to message queue. Queue size: 1
2020-04-12 12:49:24 DEBUG (MainThread) [pyotgw.protocol] Received line 28: R00740000
2020-04-12 12:49:24 DEBUG (MainThread) [pyotgw.protocol] Added line 28 to message queue. Queue size: 2
2020-04-12 12:49:24 DEBUG (MainThread) [pyotgw.protocol] Processing: T 00 63 00 00
2020-04-12 12:49:24 DEBUG (MainThread) [pyotgw.protocol] Processing: R 00 74 00 00
2020-04-12 12:49:24 DEBUG (MainThread) [pyotgw.protocol] Watchdog reset!
2020-04-12 12:49:24 DEBUG (MainThread) [pyotgw.protocol] Watchdog reset!
2020-04-12 12:49:24 DEBUG (MainThread) [pyotgw.protocol] Received line 29: BC074FFFF
2020-04-12 12:49:24 DEBUG (MainThread) [pyotgw.protocol] Added line 29 to message queue. Queue size: 1
2020-04-12 12:49:24 DEBUG (MainThread) [pyotgw.protocol] Received line 30: AF0630000
2020-04-12 12:49:24 DEBUG (MainThread) [pyotgw.protocol] Processing: B 04 74 ff ff
2020-04-12 12:49:24 DEBUG (MainThread) [pyotgw.protocol] Watchdog reset!
2020-04-12 12:49:24 DEBUG (MainThread) [pyotgw.protocol] Watchdog reset!

Additional information

probot-home-assistant[bot] commented 4 years ago

Hey there @mvn23, mind taking a look at this issue as its been labeled with a integration (opentherm_gw) you are listed as a codeowner for? Thanks!

Appesteijn commented 4 years ago

Ok it is fixed now. Apparently the otgw can sometimes start ignoring the incoming commands. I think this can cause the timeouts. What solved the issue for me is to reset the otgw by connecting the two RST pins on the otgw board (keep the power on): https://gathering.tweakers.net/forum/view_message/54350307 After this the integration found the otgw and it works again.