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 #110102

Closed smarecki closed 5 months ago

smarecki commented 5 months ago

The problem

OTGW Integration can't connect to the gateway.

What version of Home Assistant Core has the issue?

2024.2

What was the last working version of Home Assistant Core?

2024.1.6

What type of installation are you running?

Home Assistant OS

Integration causing the issue

OTGW

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Szczegóły loga (BŁĘDY)
Logger: homeassistant
Source: util/async_.py:124
First occurred: 13:25:08 (27 occurrences)
Last logged: 13:55:14

Error doing job: Exception in callback SerialTransport._call_connection_lost(None)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 120, in check_loop
    integration_frame = get_integration_frame()
                        ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 61, in get_integration_frame
    raise MissingIntegrationFrame
homeassistant.helpers.frame.MissingIntegrationFrame

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/asyncio/events.py", line 84, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/local/lib/python3.12/site-packages/serial_asyncio/__init__.py", line 417, in _call_connection_lost
    self._serial.close()
  File "/usr/local/lib/python3.12/site-packages/serial/urlhandler/protocol_socket.py", line 104, in close
    time.sleep(0.3)
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 169, in protected_loop_func
    check_loop(func, strict=strict)
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 124, in check_loop
    raise RuntimeError(  # noqa: TRY200
RuntimeError: Detected blocking call to sleep inside the event loop. Use `await hass.async_add_executor_job()`; This is causing stability issues. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue

Additional information

No response

home-assistant[bot] commented 5 months 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. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


opentherm_gw documentation opentherm_gw source (message by IssueLinks)

mvn23 commented 5 months ago

The log entry you posted is a known issue in pyserial_asyncio and happens on every disconnect. Can you post a debug log instead?

smarecki commented 5 months ago

home-assistant_opentherm_gw_2024-02-10T09-41-00.026Z.log

I hope that was it. I need to roll back to 2024.1.6 for the integration to work again.

smarecki commented 5 months ago

The log entry you posted is a known issue in pyserial_asyncio and happens on every disconnect. Can you post a debug log instead?

I restored the gateway to default settings and reconfigured it, then added the integration again. Now it works again. I'm sorry for the trouble.

mvdnes commented 5 months ago

The log entry you posted is a known issue in pyserial_asyncio and happens on every disconnect. Can you post a debug log instead?

I restored the gateway to default settings and reconfigured it, then added the integration again. Now it works again. I'm sorry for the trouble.

Does it still work after a restart? Mine worked when re-adding, but stopped again after a reboot.