-
-
Notifications
You must be signed in to change notification settings - Fork 29.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenTherm Gateway: Detected blocking call inside the event loop #67430
Comments
opentherm_gw documentation |
Hey there @mvn23, mind taking a look at this issue as it has been labeled with an integration ( |
Thank you for the report. I will look into the problem. |
Seems to be an issue with |
#67419 seems to be affected as well. |
Hi, same problem here. After 3-4 days connection with OT gateway is lost. Only way to get it running again is to restart HA. File "/usr/local/lib/python3.9/asyncio/events.py", line 80, in _run |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
nothing changed so far, |
Still waiting for a new version of pyserial-asyncio... |
Just want to mention that with the latest HA 2022.7.7 this is still an issue:
In the container, it seems to use the latest 0.6 version:
|
Yep, pyserial-asyncio==0.6 does not include the fix for this yet. As soon as they release a fixed version of pyserial-asyncio we can include it in our dependencies to solve this issue. |
Indeed when I manually remove the Still I find it strange that so many timeouts occur: administrator@Alderaan:/volume1/docker/homeassistant$ tail -n 10000 -F home-assistant.log | grep "Timed out"
2022-09-21 22:40:03.284 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: PR, value: I.
2022-09-21 22:40:06.287 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: PR, value: L.
2022-09-21 22:40:12.852 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: PR, value: W.
2022-09-21 22:40:15.855 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: PR, value: G.
2022-09-21 22:40:21.777 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: MM, value: -.
2022-09-21 22:40:34.951 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: PR, value: B.
2022-09-21 22:40:37.954 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: PR, value: C.
2022-09-21 22:40:40.958 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: PR, value: W.
2022-09-21 22:40:44.782 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: CS, value: 0.
2022-09-21 22:40:47.784 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: MM, value: -.
2022-09-21 22:41:11.302 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: PR, value: G.
2022-09-21 22:41:14.667 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: PR, value: S.
2022-09-21 22:41:20.790 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: CS, value: 0.
2022-09-21 22:42:03.919 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: PR, value: A.
2022-09-21 22:42:06.921 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: PR, value: B.
2022-09-21 22:42:09.923 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: PR, value: C.
2022-09-21 22:43:34.315 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: PR, value: C.
2022-09-21 22:43:37.958 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: PR, value: S.
2022-09-21 22:43:41.702 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: PR, value: I.
2022-09-21 22:44:04.822 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: PR, value: I.
2022-09-21 22:44:17.825 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: PR, value: I.
2022-09-21 22:44:30.829 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: PR, value: I.
2022-09-21 22:44:43.833 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: PR, value: I.
2022-09-21 22:44:56.838 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: PR, value: I.
2022-09-21 22:45:30.088 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: PR, value: I.
2022-09-21 22:45:43.096 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: PR, value: I.
2022-09-21 22:45:56.099 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: PR, value: I.
2022-09-21 22:46:09.103 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: PR, value: I.
2022-09-21 22:46:22.106 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: PR, value: I.
2022-09-21 22:46:35.109 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: PR, value: I.
2022-09-21 22:46:58.183 ERROR (MainThread) [pyotgw.pyotgw] Timed out waiting for command: PR, value: I. But I guess that's a different issue. |
About the "Timed out" errors, it's an issue with NodeMCU and firmware r147. I updated to mega-20220809_57b0c0c, and no more time outs. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
The same here:
|
This has been fixed in pyserial but no release has been made since 2021 pyserial/pyserial-asyncio#82 |
The problem
An log item about the PyOTGW appeared when the connection to my OpenTherm Gateway was somehow disconnected - it's connected to the network by an UTP cable, and no power failure or power cycle or anything else happened when this error appeared. This error has never appeared before.
The OTGW runs firmware version 5.2 for two months now, has a static IP and runs without problems.
What version of Home Assistant Core has the issue?
core-2022.2.9
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
OpenTherm Gateway
Link to integration documentation on our website
https://www.home-assistant.io/integrations/opentherm_gw
Diagnostics information
Not yet available for this integration
Example YAML snippet
Anything in the logs that might be useful for us?
Logger: pyotgw.protocol Source: /usr/local/lib/python3.9/site-packages/pyotgw/protocol.py:64 First occurred: 27 februari 2022 21:08:15 (1 occurrences) Last logged: 27 februari 2022 21:08:15 Disconnected: None Logger: homeassistant Source: util/async_.py:129 First occurred: 27 februari 2022 21:08:15 (1 occurrences) Last logged: 27 februari 2022 21:08:15 Error doing job: Exception in callback SerialTransport._call_connection_lost(None) Traceback (most recent call last): File "/usr/local/lib/python3.9/asyncio/events.py", line 80, in _run self._context.run(self._callback, *self._args) File "/usr/local/lib/python3.9/site-packages/serial_asyncio/__init__.py", line 417, in _call_connection_lost self._serial.close() File "/usr/local/lib/python3.9/site-packages/serial/urlhandler/protocol_socket.py", line 104, in close time.sleep(0.3) File "/usr/src/homeassistant/homeassistant/util/async_.py", line 166, in protected_loop_func check_loop(func, strict=strict) File "/usr/src/homeassistant/homeassistant/util/async_.py", line 129, in check_loop raise RuntimeError( RuntimeError: Detected blocking call inside the event loop. This is causing stability issues. Please report issue
Additional information
No response
The text was updated successfully, but these errors were encountered: