Unable to read state

Hello,

I setup the home assistant with the KNX plugin.
In ETS I set a group address for the write and you group address for the read status linked to the feedback of the related channel of actuator as usual. This one has the READ enabled.

I added a few switches and some temperature sensors.
The buttons are working fine, but the state is not updated if I restart the HA server… checking the logs I have many of these:

body="<TunnellingAck communication_channel_id="33" sequence_counter="51" status_code="ErrorCode.E_NO_ERROR" />" />
2021-11-16 14:25:56 WARNING (MainThread) [xknx.log] Error: KNX bus did not respond in time (2.0 secs) to GroupValueRead request for: 1/1/3
2021-11-16 14:25:56 WARNING (MainThread) [xknx.log] Could not sync group address '1/1/3' (Bagno sopra luce - State)
2021-11-16 14:25:56 DEBUG (MainThread) [xknx.state_updater] StateUpdater reading 1/1/5 for Bagno sopra doccia - State
2021-11-16 14:25:56 DEBUG (MainThread) [xknx.telegram] <Telegram direction="Outgoing" source_address="0.0.0" destination_address="1/1/5" payload="<GroupValueRead />" />
2021-11-16 14:25:56 DEBUG (MainThread) [xknx.knx] Sending: <KNXIPFrame <KNXIPHeader HeaderLength="6" ProtocolVersion="16" KNXIPServiceType="TUNNELLING_REQUEST" Reserve="0" TotalLength="21" />
body="<TunnellingRequest communication_channel_id="33" sequence_counter="52" cemi="<CEMIFrame SourceAddress="IndividualAddress("15.15.11")" DestinationAddress="GroupAddress("1/1/5")" Flags="1011110011100000" payload="<GroupValueRead />" />" />" />
2021-11-16 14:25:56 DEBUG (MainThread) [xknx.raw_socket] Received from ('192.168.18.181', 3671): 06100421000a04213400
2021-11-16 14:25:56 DEBUG (MainThread) [xknx.knx] Received: <KNXIPFrame <KNXIPHeader HeaderLength="6" ProtocolVersion="16" KNXIPServiceType="TUNNELLING_ACK" Reserve="0" TotalLength="10" />
body="<TunnellingAck communication_channel_id="33" sequence_counter="52" status_code="ErrorCode.E_NO_ERROR" />" />
2021-11-16 14:25:56 DEBUG (MainThread) [xknx.raw_socket] Received from ('192.168.18.181', 3671): 061004200015042134002e00bce0ff0b0905010000
2021-11-16 14:25:56 DEBUG (MainThread) [xknx.knx] Received: <KNXIPFrame <KNXIPHeader HeaderLength="6" ProtocolVersion="16" KNXIPServiceType="TUNNELLING_REQUEST" Reserve="0" TotalLength="21" />
body="<TunnellingRequest communication_channel_id="33" sequence_counter="52" cemi="<CEMIFrame SourceAddress="IndividualAddress("15.15.11")" DestinationAddress="GroupAddress("1/1/5")" Flags="1011110011100000" payload="<GroupValueRead />" />" />" />
2021-11-16 14:25:56 DEBUG (MainThread) [xknx.knx] Sending: <KNXIPFrame <KNXIPHeader HeaderLength="6" ProtocolVersion="16" KNXIPServiceType="TUNNELLING_ACK" Reserve="0" TotalLength="10" />
body="<TunnellingAck communication_channel_id="33" sequence_counter="52" status_code="ErrorCode.E_NO_ERROR" />" />
2021-11-16 14:25:57 WARNING (MainThread) [xknx.log] Error: KNX bus did not respond in time (2.0 secs) to GroupValueRead request for: 1/1/4
2021-11-16 14:25:57 WARNING (MainThread) [xknx.log] Could not sync group address '1/1/4' (Bagno sopra specchio - State)
2021-11-16 14:25:57 DEBUG (MainThread) [xknx.state_updater] StateUpdater reading 0/1/5 for Bagno luce - State
2021-11-16 14:25:57 DEBUG (MainThread) [xknx.telegram] <Telegram direction="Outgoing" source_address="0.0.0" destination_address="0/1/5" payload="<GroupValueRead />" />
2021-11-16 14:25:57 DEBUG (MainThread) [xknx.knx] Sending: <KNXIPFrame <KNXIPHeader HeaderLength="6" ProtocolVersion="16" KNXIPServiceType="TUNNELLING_REQUEST" Reserve="0" TotalLength="21" />
body="<TunnellingRequest communication_channel_id="33" sequence_counter="53" cemi="<CEMIFrame SourceAddress="IndividualAddress("15.15.11")" DestinationAddress="GroupAddress("0/1/5")" Flags="1011110011100000" payload="<GroupValueRead />" />" />" />

The strange thing is that, if I read the status manually from the ETS diagnostic, the HA starts to see the value of both switches and temperatures! If I restart again HA all buttons are displayed again as switched off.
Any idea?
Thanks.

Hi :wave:!
What connection method do you use? Do you have multiple lines?

Do you mean the KNX integration or the addon that installs knxd?

Please add some example yaml config for one non-working entity.

Have you seen the Troubleshooting section related to exactly this problem?

Hello,
I have one line, no line coupler.
I use a Jung ips 200 reg.
This is part of my configuration:

knx:
  tunneling:
    host: "192.168.18.181"
  switch:
    - name: "Ingresso"
      address: "0/0/1"
      state_address: "0/1/1"
    - name: "Scala"
      address: "0/0/2"
      state_address: "0/1/2"
  sensor:
    - name: "Temperatura sala"
      state_address: "2/1/10"
      sync_state: every 20
      type: temperature
      state_class: measurement

All items are having the same issue.
This is one entry of my actuator configuration in ETS linked in the example above named “Ingresso”:

From the Diagnostic I can see correctly both read request and response.

I tried to read the Troubleshooting but I don’t see anything wrong with my configuration.

With the read coming from HA?
Would you have a screenshot with timestamp, group address and individual addresses columns fully visible?

like this?

yes, exactly.
As you can see your HA tunnel has been assigned the IA 15.15.11
It should have an address on the same line as all the other devices - in your case 1.1.x

This address is assigned to HA by the tunneling server, so check the application/manual of the IPS200 on how to change the default IAs of its tunnels (some do this via a web ui, others in ETS). Change them to a free IA on your main line and restart.

ok I changed it to 1.1.201 and now it seems better, I’ll try it this evening and I’ll let you know, thanks a lot for your help!!

1 Like