KNX integration faild to load with NUC

hello

i just moved from RPI to NUC days ago.

my whole setup is by using a KNX integration.

it was working fine with RPI but in the NUC I get this error and spend the last two days to solve it with no luck.

any idea or hint to solve it very appreciated.

“”""""

KNX

Could not connect to KNX interface:
Local IP address is not a valid IPv4 address.

""""

I am sure that the IP is correct I was using the same before in my RPI.

I have changed my KNX router and changed the IP but got the same error

i am using the last update of HA.

i am running HA only inside the NUC. no Docker or VM.

i posted my KNX setup with the error log

thanks in advance

1

3 4

So you run Home Assistant in a virtual environment?

Is local_ip the ip of the machine running Home Assistant?

1 Like

You can’t configure tunneling and routing at the same time.
Omit ‘local_ip’ - it’s not needed normally. (You probably don’t need any connection configuration).
Also don’t use config_file: when you don’t really need it (you don’t). It requires a different config syntax. You are using the HA syntax. Just configure the connection in knx: (or omit)

And applying a match-all filter (*) to fire event should not be necessary.

Have a look at https://www.home-assistant.io/integrations/knx/

1 Like

Hello dear. Thanks for your help.
I just flashed the HA image on my NUC SSD just like we do on SD cards. So i think it’s not a VM.
Do you think it’s possible that my NUC have a different IP address than my HA?

Hello dear. Thanks for your help and your time.

The point is it was working fine with the same KNX configuration in my old rpi.
After moving to my new NUC it’s just stoped. Even I have another KNX setup working with the same configuration very fine on rpi until now.
However I have tried to not to use XKNX. Config _file and just use KNX. But it keep showing the same error.
I have followed the next tutorial too with no luck to fix it.

Would you please show me your KNX configuration?
Thanks

This won’t be much help but the /config/configuration.yaml part should look like this:

knx:
  tunneling:
    host: '192.168.xx.xx'
  light: # either include or write directly
    ...

Please note that 192.88.xx.xx is not part of private address space and therefore should not be used as one. Private network - Wikipedia

Have you ran the most recent version of HA (for KNX this is 2020.12.x) on the Raspberry as well as on the NUC? Are there any other messages in the Logs when you use proper configuration?

I can’t say anything about your installation method. Maybe someone else can.

1 Like

thank you very much for the hint
it works now.

what I did is deleted the V2 file for the old database and removed the Xknx.yaml config file. and configured the KNX as shown in the pic.
thank you very much for your help and support. appreciate it very much
Capture

Then you inatalled Home Assistant OS, which runs in docker. Your HA instance has a different IP then the NUC itself, something like 172.19.x.x. but I don’t know if it matters in this case.

I guess it runs in host network mode then. Otherwise knx wouldn’t work at all. So the IP is the nucs IP.