Activate debug log for KNX

How can I activate the debug logging for KNX?

logger:
  default: info
  logs:
    xknx: debug

xknx provides xknx.log, xknx.knx and xknx.telegram loggers. I have not tried if they can be configured individually from HA but I think so. xknx.telegram will produce a lot log lines :wink:

1 Like

Has this debug changed with the change re: xknx. I logged a few things a few weeks ago and the log worked, Now I get an error on

" xknx: debug"

and other error if I remove the line altogether.

No, nothing changed here. Please provide the whole config part (in a code block so whitespace doesn’t get lost) and the error message…

Hi - I ran it again and it worked fine. Not sure what I did wrong.

The Log Viewer is getting movement sensors from KNX sensors that the original installer was not able to get working - but looks like they are sending out status messages all the time.
Some with a red error. Not sure if this a problem or just an annoyance.


2021-05-17 22:08:26 DEBUG (MainThread) [xknx.raw_socket] Received from ('192.168.1.210', 3671): 061004200015046630002900bcd01008680a010080

2021-05-17 22:08:26 DEBUG (MainThread) [xknx.knx] Received: <KNXIPFrame <KNXIPHeader HeaderLength="6" ProtocolVersion="16" KNXIPServiceType="TUNNELLING_REQUEST" Reserve="0" TotalLength="21" />

body="" />" />" />" />

2021-05-17 22:08:26 DEBUG (MainThread) [xknx.knx] Sending: <KNXIPFrame <KNXIPHeader HeaderLength="6" ProtocolVersion="16" KNXIPServiceType="TUNNELLING_ACK" Reserve="0" TotalLength="10" />

body="<TunnellingAck communication_channel_id="102" sequence_counter="48" status_code="ErrorCode.E_NO_ERROR" />" />

2021-05-17 22:08:26 DEBUG (MainThread) [xknx.telegram] <Telegram direction="Incoming" source_address="1.0.8" destination_address="13/0/10" payload="<GroupValueWrite value="<DPTBinary value="0" />" />" />

2021-05-17 22:08:33 DEBUG (MainThread) [xknx.raw_socket] Received from ('192.168.1.210', 3671): 061004200015046631002900bcd010026804010080

2021-05-17 22:08:33 DEBUG (MainThread) [xknx.knx] Received: <KNXIPFrame <KNXIPHeader HeaderLength="6" ProtocolVersion="16" KNXIPServiceType="TUNNELLING_REQUEST" Reserve="0" TotalLength="21" />

body="" />" />" />" />

2021-05-17 22:08:33 DEBUG (MainThread) [xknx.knx] Sending: <KNXIPFrame <KNXIPHeader HeaderLength="6" ProtocolVersion="16" KNXIPServiceType="TUNNELLING_ACK" Reserve="0" TotalLength="10" />```