KNX Errors + disconnect from KNX/IP-Gateway

Hello forum,

I am using Home Assistant 0.115.2 as a docker container on a timberwolf server 950. Using the knx integration I am connecting to a KNX/IP gateway via tunnelling. This works fine after (re-)starting HA - I am able to send and receive KNX information with several entities. BUT: After a short time several errors occure in the log:

<CouldNotParseKNXIP description="KNXIP data has wrong length" />
21:39:11 – /usr/local/lib/python3.8/site-packages/xknx/io/udp_client.py (ERROR) - Die Nachricht ist zum ersten Mal um 21:39:05 aufgetreten und erscheint 3 mal
CEMI not supported: <UnsupportedCEMIMessage description="CEMI too small. Length: 10; CEMI: b')\x00\xb0P\x11\xca\x11\xcc\x00\x81'" />
21:39:11 – /usr/local/lib/python3.8/site-packages/xknx/knxip/tunnelling_request.py (WARNING) - Die Nachricht ist zum ersten Mal um 21:39:05 aufgetreten und erscheint 3 mal
Error: KNX bus responded to request of type 'ConnectionState' with error in 'ConnectionStateResponse': ErrorCode.E_CONNECTION_ID
21:39:09 – /usr/local/lib/python3.8/site-packages/xknx/io/request_response.py (WARNING) - Die Nachricht ist zum ersten Mal um 21:39:03 aufgetreten und erscheint 7 mal
Heartbeat failed - reconnecting
21:39:09 – /usr/local/lib/python3.8/site-packages/xknx/io/tunnel.py (WARNING) - Die Nachricht ist zum ersten Mal um 21:39:03 aufgetreten und erscheint 2 mal
Failed to update: connection error

After a while (some minutes up to an hour) the connection to the KNX/IP Gateway is lost and I can not send telegrams on KNX any longer. After a HA restart it works again until all happens again.

I found the same topic here but without a solution : link

Can somebody help me analyzing this?

my confuguration.yaml:

knx:
 rate_limit: 20
 tunneling:
   host: '192.168.178.38'
   port: 3700
   local_ip: '192.168.178.2'

Thank you, Stefan.

Hi!
This usually occurs when you run a Line-Scan from ETS. It should be fixed with HA 0.118 which is currently in beta. Some applications caused this too (I think OpenHAB does, don’t know anything about Timberwolf…).

Here is the original link to your found topic, which is not really related to your problem: https://github.com/XKNX/xknx/issues/408 but its maybe a better starting point for future research :wink: