Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 117767

KNX IP Interface can't be found in HA, but in XKNX

$
0
0

Hi all, new member here, trying to configure my KNX IP Bridge.

My Config:

  • raspi 4
  • HA installed via Docker
  • network: 192.168.178.x (internet gateway and KNX IP Interface) ↔ 192.168.0.x (NAT enabled Wlan router, Raspi, My PC)
  • MDT IP bridge (exact model tbd if required)

The IP bridge unfortunately is in a different subnet because of the its physical location - it’s in the basement near by the internet router. For safety reasons I created another subnet for my apartment only - using another (wifi) router, which is the DHCP server, too.

I can connect to the IP Bridge from “My PC” using ETS6, but I have to enable NAT mode, otherwise the device can be pinged but not connected to.

I can also connect to the bridge using XKNX using this python snipped:

import asyncio
from xknx import XKNX
from xknx.io import ConnectionConfig, ConnectionType

MY_IP = "192.168.178.3"
async def main() -> None:
    connection_config = ConnectionConfig(
        connection_type=ConnectionType.ROUTING,
        gateway_ip=MY_IP,
        route_back=True
    )
    xknx = XKNX(connection_config=connection_config)

    await xknx.start()
    print("Tunnel connected")
    await asyncio.sleep(1)
    print("end")
    await xknx.stop()

asyncio.run(main())

It runs on “My PC” and from “raspi” (even inside Docker, i.e., it’s not a Docker config error). It says “Tunnel connected”. It does not work when using ConnectionType.TUNNELING or ConnectionType.TUNNELING_TCP, due to xknx.exceptions.exception.CommunicationError: Tunnel connection could not be established.

So it looks like XKNX (which is the knx backend for HA) works despite my weird network config - I just need to configure HA similarly.

I followed the instructions to add the KNX integration, chose “tunneling” and tried all tunneling types with no success (“Could not find a KNX tunneling server on your network”). I also tried “routing”, but can only add broadcast addresses which seem not to work.

Question: How do I (manually?) create the same config in HA that I’m using in XKNX? How do the configuration.yml keys map to the python lib?

PS: where are the integration settings stored? They do not appear in the configuration.yml and companion files anymore.

Thanks for your support!

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 117767

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>