Skip to content
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

LCN Integration Crashes after few days #130905

Closed
mtessmer87 opened this issue Nov 18, 2024 · 5 comments · Fixed by #133638
Closed

LCN Integration Crashes after few days #130905

mtessmer87 opened this issue Nov 18, 2024 · 5 comments · Fixed by #133638

Comments

@mtessmer87
Copy link

The problem

Hi,

I am a newbie at HA, the Change from OH to HA was really smooth, but now i have an Problem with the lcn Integration.
The lcn integration crashes after a few days. Most of the time the integration crashes after 2-3 days. All other HA components works at this time fine, only LCN is not available.

In the Log i can find the following error, after this error, lcn is not available.

2024-11-14 08:58:11.487 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/pypck/connection.py", line 106, in read_data_loop
data = await self.reader.readuntil(PckGenerator.TERMINATION.encode())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/streams.py", line 660, in readuntil
await self._wait_for_data('readuntil')
File "/usr/local/lib/python3.12/asyncio/streams.py", line 545, in _wait_for_data
await self._waiter
File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 1003, in _read_ready__data_received
data = self._sock.recv(self.max_size)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TimeoutError: [Errno 110] Operation timed out

After a HA restart, the LCN integration works again until the error occurs again.

Any idea to solve this issue?

regards

What version of Home Assistant Core has the issue?

Core-2024.11.2

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

Lcn

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

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

Code owner commands

Code owners of lcn 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 lcn 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)


lcn documentation
lcn source
(message by IssueLinks)

@alengwenus
Copy link
Contributor

Hi @mtessmer87,
it looks like the connection to your host coupler was unexpectedly interrupted. Usually such a TimeoutError occurs if the remote side does not respond without closing the connection properly. The reason might be manifold but is usually due to network or firewall issues.
Which host coupler are you using (VISU, PKE, PCHK, ...)? If it's the PCHK software, on which system is it running?

@mtessmer87
Copy link
Author

Hi @alengwenus ,

Thanks vor your quick replay. The PCHK (connected to pku) runs on an separate Windows Host.
I will Check the Connection and the Security settings.

@alengwenus
Copy link
Contributor

alengwenus commented Nov 18, 2024

If the system HA is running on or the PCHK host is connected via Wifi this could also cause instabilities in the TCP connection...
I've started working on some functionality to reestablish a broken connection but I guess I need some time to get it into a reliable state.

@mtessmer87
Copy link
Author

Hi @alengwenus,

I'm sorry for my late message..
The issue is unfortunately still present and is now happening several times per day.
I switched off the timeout setting in the LCN, but unfortunately, it didn’t resolve the issue. Disabling the firewall also didn’t resolve it.

Any other ideas you might have?

regards
Martin

@github-actions github-actions bot locked and limited conversation to collaborators Jan 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants