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
69.94k stars 29.03k forks source link

OpenTherm Gateway intergration is not working with latest firmware (6.5) #91938

Closed beansidhe closed 11 months ago

beansidhe commented 1 year ago

The problem

OpenTherm Gateway intergration is no longer compatable with the latest firmware 6.5.

What version of Home Assistant Core has the issue?

Home Assistant 2023.4.6 Supervisor 2023.04.0 Operating System 10.0 Frontend 20230411.1 - latest

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

integration: opentherm_gw

Link to integration documentation on our website

https://www.home-assistant.io/integrations/opentherm_gw

Diagnostics information

Logger: pyotgw.connection Source: runner.py:179 First occurred: 2:24:21 PM (1 occurrences) Last logged: 2:24:21 PM

The serial device on socket://192.168.68.119:23 is not responding. Will keep trying.

Logger: homeassistant Source: util/async_.py:116 First occurred: 2:24:21 PM (1 occurrences) Last logged: 2:24:21 PM

Error doing job: Exception in callback SerialTransport._call_connection_lost(None) Traceback (most recent call last): File "/usr/local/lib/python3.10/asyncio/events.py", line 80, in _run self._context.run(self._callback, *self._args) File "/usr/local/lib/python3.10/site-packages/serial_asyncio/init.py", line 417, in _call_connection_lost self._serial.close() File "/usr/local/lib/python3.10/site-packages/serial/urlhandler/protocolsocket.py", line 104, in close time.sleep(0.3) File "/usr/src/homeassistant/homeassistant/util/async.py", line 159, in protected_loop_func checkloop(func, strict=strict) File "/usr/src/homeassistant/homeassistant/util/async.py", line 116, in check_loop raise RuntimeError( RuntimeError: Detected blocking call to sleep inside the event loop. Use await hass.async_add_executor_job(); This is causing stability issues. Please report issue

Example YAML snippet

No response

Anything in the logs that might be useful for us?



### Additional information

_No response_
home-assistant[bot] commented 1 year ago

Hey there @mvn23, mind taking a look at this issue as it has been labeled with an integration (opentherm_gw) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `opentherm_gw` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign opentherm_gw` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


opentherm_gw documentation opentherm_gw source (message by IssueLinks)

mvn23 commented 1 year ago

Thank you for the report, but it is unclear to me what the actual issue is. You initially posted logs of something that may actually be a bug ('<=' not supported between instances of 'int' and 'NoneType'), then changed it to something that doesn't even look like it's coming from the OpenTherm Gateway (( 15848| 14216) processOT (1707): Not processed, received from OTGW => (010000) [6]) only to finally settle on a log of a non-responsive gateway (... is not responding. Will keep trying.) and another part that is already reported in #67430 (we're still waiting on a new release of pyserial-asyncio to fix that). Please review the actual issue you're having and report back with logs and a clear description of the problem, including steps to reproduce.

beansidhe commented 1 year ago

Hi mvn23, Thx for looking into this issue. I recently installed a OTGW gateway HW(nodo-shop.nl) on my boiler and have it working via the opentherm monitor tool, now I want to integrate into HA but I get an error as below. trying different ports such as 23 does not solve the issue. bolier 1

not sure what other loggings i can send but this what i can pull from Logging from HA>system>logs:

Logger: homeassistant Source: util/async_.py:116 First occurred: 3:28:54 PM (1 occurrences) Last logged: 3:28:54 PM

Error doing job: Exception in callback SerialTransport._call_connection_lost(None) Traceback (most recent call last): File "/usr/local/lib/python3.10/asyncio/events.py", line 80, in _run self._context.run(self._callback, *self._args) File "/usr/local/lib/python3.10/site-packages/serial_asyncio/init.py", line 417, in _call_connection_lost self._serial.close() File "/usr/local/lib/python3.10/site-packages/serial/urlhandler/protocolsocket.py", line 104, in close time.sleep(0.3) File "/usr/src/homeassistant/homeassistant/util/async.py", line 159, in protected_loop_func checkloop(func, strict=strict) File "/usr/src/homeassistant/homeassistant/util/async.py", line 116, in check_loop raise RuntimeError( RuntimeError: Detected blocking call to sleep inside the event loop. Use await hass.async_add_executor_job(); This is causing stability issues. Please report issue

2023-04-24 15:28:54.539 ERROR (MainThread) [pyotgw.connection] The serial device on socket://192.168.68.119:25238 is not responding. Will keep trying. 2023-04-24 15:28:54.548 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback SerialTransport._call_connection_lost(None) Traceback (most recent call last): File "/usr/local/lib/python3.10/asyncio/events.py", line 80, in _run self._context.run(self._callback, *self._args) File "/usr/local/lib/python3.10/site-packages/serial_asyncio/init.py", line 417, in _call_connection_lost self._serial.close() File "/usr/local/lib/python3.10/site-packages/serial/urlhandler/protocolsocket.py", line 104, in close time.sleep(0.3) File "/usr/src/homeassistant/homeassistant/util/async.py", line 159, in protected_loop_func checkloop(func, strict=strict) File "/usr/src/homeassistant/homeassistant/util/async.py", line 116, in check_loop raise RuntimeError( RuntimeError: Detected blocking call to sleep inside the event loop. Use await hass.async_add_executor_job(); This is causing stability issues. Please report issue

mvn23 commented 1 year ago

2023-04-24 15:28:54.539 ERROR (MainThread) [pyotgw.connection] The serial device on socket://192.168.68.119:25238 is not responding. Will keep trying.

This means that the gateway is not responding (or at least that Home Assistant is not receiving a response). Do I understand correctly that otmonitor is connected to the gateway while you're attempting to connect from Home Assistant? If so, please disconnect all other applications from the gateway before connecting from Home Assistant. Multiple simultaneous connections are not supported and may lead to unexpected results depending on your specific setup.

issue-triage-workflows[bot] commented 11 months ago

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. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.