home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.79k stars 28.93k forks source link

KNX Integration - Failed to connect #114576

Open lionel865 opened 3 months ago

lionel865 commented 3 months ago

The problem

I have a problem with my HA, I try to connect to my IP/knx Gateway Siemens (5WG1 148-1AB23) but didn't work. I have configure Secure tunneling on the interface but HA didin't connect. image

What version of Home Assistant Core has the issue?

core-2024.4.0b3

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

KNX

Link to integration documentation on our website

No response

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[bot] commented 3 months ago

Hey there @julius2342, @farmio, @marvin-w, mind taking a look at this issue as it has been labeled with an integration (knx) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `knx` 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 knx` 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)


knx documentation knx source (message by IssueLinks)

farmio commented 3 months ago

Hi 👋! Did the flow show the menu step "key file" or "manual" or was that error shown immediately after hitting "submit"? If latter, double check the ip address and see if you can connect to it from ETS.

lionel865 commented 3 months ago

hi, I have imported key file and I already check the ip and it's correct ip

farmio commented 3 months ago

Are there any messages in your logs? Maybe set xknx: debug see https://www.home-assistant.io/integrations/knx/#logs-for-the-knx-integration I have not seen that specific ip interface before, so let's see what the exact error is here 😬 a tcpdump (Wireshark) would also help 😉

lionel865 commented 3 months ago

Hi,

I obtain this logs when I try to configure image

farmio commented 3 months ago

Do you have some sort of firewall in your system?

lionel865 commented 3 months ago

No I only have my all local network with Ubiquity Dream machine

farmio commented 3 months ago

When configuring, can you select "Automatic"?

Bildschirmfoto 2024-04-02 um 09 16 07

I'd still not rule out some network issue completely 😬 but if you are sure that communication from the interface to the HA-instance is fine, then I think we really would need tcpdumps of a connection from ETS and one from HA (or xknx using the machine ETS is running on) to see what is really going on here.

lionel865 commented 3 months ago

I don't have this choice in my case... I only have Tunneling and Routing. I also try other navigator but I not show automatic choice...

I try to inspect traffic with wireshark

farmio commented 3 months ago

The "Automatic" option only appears when an interface was found via Knx discovery (which sends a multicast packet and waits for a unicast answer).

Does ETS find the interface? It should do the exact same procedure.

lionel865 commented 3 months ago

Yes the ETS working fine with the autodiscover function, and I progaming well via ETS en this gateway :/

libo commented 3 weeks ago

Hi since you mentioned Ubiquity Dream Machine.

After 4 years of KNX and home-assistant working without a single issue I turned on Multicast Filtering (IGMP Snooping) last weekend on my Dream Machine Pro. At the very first home-assistant reboot (after an upgrade) I ended in the scenario reported here.

Screenshot 2024-06-13 at 07 48 07

I turned Multicast Filtering off and HA could discover the KNX gateway again.

lionel865 commented 3 weeks ago

Hi !

Thanks for your Support ! I Try this soon and I came back to you if it's working :)

lionel865 commented 3 weeks ago

Hi since you mentioned Ubiquity Dream Machine.

After 4 years of KNX and home-assistant working without a single issue I turned on Multicast Filtering (IGMP Snooping) last weekend on my Dream Machine Pro. At the very first home-assistant reboot (after an upgrade) I ended in the scenario reported here.

Screenshot 2024-06-13 at 07 48 07

I turned Multicast Filtering off and HA could discover the KNX gateway again.

Hi,

I tried but The HomeAssistant doesn't detec my KNX Gateway...

lionel865 commented 2 weeks ago

@libo Hi, I try to disabled this settings but I have already not access to automatic setup image