KNX IP connection

Hi,

I am currently working on installing a knx system at home. Seems like an IP Interface/Router is needed to connect HS to knx. Would an Interface do? Or the router is better? Which brand/model is the best choice? I am asking because reading the forums seems like some have problems and maybe there a specific brand/model that has proven to work best.

Thanks

My Gira X1 connected to my network is working great… No issues at all!

Hi Cadish,

Interesting, from what I have learned in the last weeks the X1 is not needed when using HA. Basically HA can do everything the X1 can and then more.

How are you integrating the X1 in your system?

I was planning on getting the X1 too, but decided against it. That’s why I’m searching a component to connect HA and knx, but don’t know if a router would be better than an IP gateway, I would like to get the gateway as they are cheaper, but maybe the router is better?

I agree with you, but I didn’t want to rely on HA for the basics. I never want to run into a situation where I cannot turn on the light anymore because my NUC broke down or anything like that. That’s why I really wanted a stable system for these basics, which was the X1. HA is then just for the nice-to-have features turning my house into a real smart home. If this breaks down (for any reason whatsoever), that’s ok. The basics keep on working as it should be.

I didn’t investigate in other hardware, so can’t help you any further with the choice for gateway or router…

An interface should be enough. If you would like to program trough ETS the same time when connected to HA, make sure the interface has enough concurrent connections.

Cardish:

I agree, but AFAIK you don’t need the X1 for those basic interactions, they can be done with ETS.

My plan is to use ETS to do the basics and HA for the fancy stuff, just like you, but no X1, just a gateway.

Jens:

Thanks, but is there any scenario when a router is needed for concurrent conections? I am wondering that… but HA is there, and maybe should be the only connection between knx and the outside world.

Any input about the X1?

A router would only be needed when connecting multiple networks together or when using Multicast i think.

https://www.ivoryegg.co.uk/support_articles/what-is-the-difference-between-a-knx-ip-interface-and-a-knx-ip-router

When using HA in combination with KNX an interface should be sufficient. However, if you want to be future proof, and have some extra cash, you could consider a router.

Hi again,

Well I ordered the X1 and the IP gateway. It will be difficult to decide which one to keep. If the X1 could interact with HA, it would be great to have, but I’m not sure that’s possible.

HI , how did you setup the X1 connection in the configuration.yaml?

Hi @tomben

This is the config of the knx component:

knx:
  tunneling:
   host: '192.168.1.231'
   port: 3671
   local_ip: '192.168.1.27'

Next to that, of course you need to define your KNX switches, lights, … etc.

Cadish

Do i have to setup something in the X1 settings to allow access?

No, that should be fine I guess. Just make sure you have the correct IP addresses.

host means the IP address of your X1, while local_ip is the IP address of home assistant itself

Has anyone tried the same thing with Schneider Electric 's equivalent to the gira X1, named “wiser for knx” or also homelynk/spacelynk?

I literally just got the Wiser KNX router installed a couple of hours ago and I managed to get it working! Well, I got one light working so the rest is simply a few hundred hours of trial and error and an annoyed wife away from being completed! :wink:

knx:
  tunneling:
    host: '192.168.2.23'  #Your Wiser IP address
    port: 3671
    local_ip: '192.168.2.109'  #Your HA IP address

I have no idea why port 3671 is the standard port for this but it worked so, I’m not complaining. There was zero mention of it in the Wiser documentation.

I managed to get one of the lights to work by finding a light switch and it’s corresponding state address in the object list you’ll find in the Wiser Web GUI. Both had almost identical names (will depend on who set up your KNX and how they named everything). It wasn’t obvious which was which but I guessed and it was right the first time, worst case, just reverse the two and it should work. I had this in my config.yaml for the switch:

switch:
  - platform: knx
    name: "Cutting Board Light"
    address: '1/1/7'
    state_address: '1/4/7'

BR
Tony

Wow, this works like a charm. Thanks! :partying_face:
(Wasn’t sure if my Gira X1 alone would work correctly as a KNX IP interface, or it can only be used together with the Gira App.)

Hi!
Be aware that this is deprecated with current HA version. Connection is now set up from UI.

If your X1 and HA installation are on the same network no configuration should be needed - it should find the gateway automatically.
If not I’d still recommend to not set a local_ip if not necessary.

Thanks for the info. HA couldn’t find X1 automatically, but leaving out local_ip also works. :smiley: