I had a working KNX integration but now I want to switch to a KNX secure connection.
I am using an MDT IP Interface with 4 tunnels. Therefore I tried two ways: Manual configuration and automatic configuration using knxkeys-file from tunnel 4.
I don’t know what’s wrong, but I keep getting an error message: tunnel connection could not be established.
BTW: Tunnel connection using ETS is working fine. Should be a general problem.
I don’t have such an interface to test with.
The routers I have (different manufacturers) worked fine for any tunnel, but I’ll try to test that again.
Do you have any log errors of your failed connection attempts?
So I did some testing and found a bug 🪲😬
Once you upload a knxkeys file this is always used, even if you choose manual config later.
If you want to have manual config you’d need to remove the lines
"knxkeys_filename": ...,
"knxkeys_password": ...,
from your .storage/core.config_entries file manually.
There also seems to be a problem when your knxkeys file contains keys from multiple tunnelling servers.
I’ll try to do a fix for that for the next release.
The downside is that there is no upgrade path, so the IP router and Email client need to be removed and re-added with the new version. Make sure to have the QR codes at hand if you are using secure connection.
For what it’s worth: I have an MDT SCN-IP100.03 IP router. The KNX Secure instructions show a ‘Description’ field containing the User ID, but it’s empty on my IP router (no idea if it’s supposed to be preset by default). Since the instructions say to increment by 1, I set user ID to ‘2’ in the KNX HA integration, which seems to have gotten me the second tunnel (x.x.254) it seems (the first was .255). Latest knxprod V2.3 and firmware V3.06.
Either way, can confirm it works .
Edit: double checked the user passwords associated with the available tunnels, the password I entered is matched to .255 but the address Home Assistant reports is x.x.254. So weird stuff, but hey, it works.
hi, am completely new to HomeAssistant and so far I am only working wit KNX on ETS 6 - but have no knowledge concerning tunnelling, etc. I got everything runnig to the point, that the KNX-Integration in Home Assistant cannot “fetch gateway info to 10.0.0.10:3671”.
After trying all the “fields” i could find in ETS6 of my MDT SCN-IP 100.03 IP Router I am at a loss na don’t know how i can connect my IP-Router in KNX with my HomeAssistant Setup. can anybody help?! Thanks so much in advance!
When exactly are you running into this error?
Do you have some firewall rules or something alike, disabilng UDP communication?
Can you share your configuration and logs?
As a heads-up: MDT Gateways still have some Secure related bugs. They just don’t seem to test or even care at all
hi, thanks for taking the time!! I use a Unifi Cloud Key für my setup but am a total beginner and don’t know a lot about the network - details. so i don’t have any knowloedge concerning, wher to ad (or disable) a firewall or disable UDP. I am pretty sure, that there is nofirewall though.
The problem occurs at the very beginning when trying to connect HA with KNX - the simply cannot be a connection.