Hi!
For weeks now I have to reset my HA almost every day. It becomes unresponsive after several hours and I see a large memory peak when it does.
The first things that fail are KNX entites (may be the consequence instead of a cause). Afterwards, all communications tend to fail with HTTPS and SSL errors. (tuya, Daikin, scraper, dhcp tasks, switchbot).
So I dug into the logs, and at every restart I can identify some expected errors:
- TemplateErrors for unknown values at restart/crash
- mqtt that has some doulbe ID’s
- Ancient config that’s still in there
- …
The following appears also quite often, but that should not freeze my HA:
WARNING (MainThread) [xknx.log] Error: KNX bus did not respond in time (2.0 secs) to GroupValueRead request for:
But when the memory peak appears I get the following error that I cannot trace back:
ERROR (KNX Interface) [homeassistant] Error doing job: Exception in callback _SelectorDatagramTransport._read_ready()
Traceback (most recent call last):
File "/usr/local/lib/python3.11/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.11/asyncio/selector_events.py", line 1163, in _read_ready
self._protocol.datagram_received(data, addr)
File "/usr/local/lib/python3.11/site-packages/xknx/io/transport/udp_transport.py", line 48, in datagram_received
self.data_received_callback(data, addr)
File "/usr/local/lib/python3.11/site-packages/xknx/io/transport/udp_transport.py", line 96, in data_received_callback
self.handle_knxipframe(knxipframe, HPAI(*source))
File "/usr/local/lib/python3.11/site-packages/xknx/io/transport/ip_transport.py", line 68, in handle_knxipframe
callback.callback(knxipframe, source, self)
File "/usr/local/lib/python3.11/site-packages/xknx/io/tunnel.py", line 302, in _request_received
self._tunnelling_request_received(knxipframe.body)
File "/usr/local/lib/python3.11/site-packages/xknx/io/tunnel.py", line 513, in _tunnelling_request_received
self._send_tunnelling_ack(
File "/usr/local/lib/python3.11/site-packages/xknx/io/tunnel.py", line 541, in _send_tunnelling_ack
self.transport.send(
File "/usr/local/lib/python3.11/site-packages/xknx/io/transport/udp_transport.py", line 160, in send
raise CommunicationError("Transport not connected")
xknx.exceptions.exception.CommunicationError: Transport not connected
The most recent logfile can be found here: home-assistant_2023-12-24T09-17-37.451Z.log - Google Drive