← Journal
Standards & Interoperability · 27 October 2026

Home Assistant and KNX: a simple setup tutorial

A plain-English walkthrough of connecting Home Assistant to a KNX installation: the interface you need, tunnelling vs routing, KNX Secure, importing the ETS project and adding your first entity.

Home Assistant and KNX: a simple setup tutorial

Home Assistant is very good at the things KNX is not: dashboards, phone notifications, weather, and talking to the other gadgets in the house. KNX is very good at the thing Home Assistant should not be trusted with alone: switching the lights reliably, every day, for twenty years.

Put them together and each does what it is best at. Here is how to connect them, step by step, with the traps I would warn you about.

Before you start

You need a bridge between your network and the KNX bus. Home Assistant’s own documentation says it needs a local KNX/IP interface or router between Home Assistant and the bus.

You also need ETS access to your project. You do not need ETS running while you set up Home Assistant, but you will need a few things from it: the tunnel details if you use Secure, and the project file if you want group address names inside Home Assistant.

Step 1: Add the integration

In Home Assistant go to Settings, then Devices & services, then Add Integration, and pick KNX.

The first real choice is the connection type:

  • Automatic scans for a KNX IP interface and connects through a tunnel. It disappears if the scan finds nothing.
  • Tunneling connects to one specific interface. You choose UDP, TCP or Secure Tunneling, then enter the host and port.
  • Routing uses multicast to talk to a KNX IP router. The defaults are group 224.0.23.12 and port 3671. You must give Home Assistant an individual address that no other device uses.

For most homes, tunnelling to a known IP address is the simplest. Routing is fine on a clean network, but it depends on your switches handling multicast properly, which I have written about before.

One warning straight from the documentation: make sure Home Assistant is the only client connecting to the tunnel endpoint you give it. Sharing a tunnel with another client, such as a visualisation or a laptop running ETS, is asking for trouble.

Step 2: KNX Secure, if your installation uses it

If your interface uses IP Secure, Home Assistant can take the credentials in two ways: a .knxkeys keyring file exported from ETS, or manual entry.

For manual tunnelling you enter a User ID, the user password and, if set, the device authentication password. The User ID must be 2 or higher, because 0 and 1 are reserved. For manual routing you need the backbone key from the ETS Project Security report.

If you use Data Secure on group addresses, there is no manual option. You must import the .knxkeys file. Before you export it, assign the secured group addresses to the tunnel endpoint or to a dummy device in ETS, otherwise Home Assistant will not be able to read them.

Later changes are done from the three-dot menu on the KNX integration, under Reconfigure.

Step 3: Import the ETS project

This step is optional, but I would not skip it.

Open the KNX panel in the sidebar and upload your .knxproj file on the Info tab. The Home Assistant developer has described the import as feeding the group monitor and the device triggers. In practice, that means that when you watch the bus you see names such as “Kitchen downlights switch” instead of raw numbers like 1/1/12. If your ETS project has a password, you will be asked for it on import.

Importing does not create any entities. The maintainer has been clear about that, because a group address on its own does not tell Home Assistant what kind of thing it is. A door contact and a status object can look identical.

Step 4: Watch the bus before you build anything

Open the group monitor in the KNX panel and press a wall switch. You should see the telegram appear, with its group address and value. That single test proves the connection, the addressing and the filtering, before you have written a line of configuration.

The telegram history kept for the group monitor is a setting in the integration’s communication settings, so you can adjust how much is held.

Step 5: Add your first light

You can add entities in the KNX panel (Entities, then Add) or in YAML under a top-level knx: key in configuration.yaml. YAML changes need a restart to apply.

A basic dimmable light looks like this. The group addresses are examples only; use your own from ETS.

knx:
  light:
    - name: "Kitchen downlights"
      address: "1/1/12"
      state_address: "1/1/13"
      brightness_address: "1/1/14"
      brightness_state_address: "1/1/15"

According to the documentation, the switch address is the only required field, and the state address is optional. The state address matters more than it looks. It is how Home Assistant learns that someone used the wall switch, so the dashboard stays correct.

Brightness uses the percentage data type, DPT 5.001. One community write-up points out that only absolute dimming is supported, so if a device offers only relative dimming you need extra absolute group addresses in the project.

Restart, and the light appears. Assign it to an area by hand, because YAML cannot do that.

What I would check before calling it done

  • State addresses on everything. Without them the dashboard guesses.
  • One client per tunnel. Give Home Assistant its own endpoint.
  • Line couplers. One integrator’s write-up found that group addresses must pass through the line coupler filters in both directions for Home Assistant to see all status. That is one source’s experience, so confirm it on your own installation.
  • Keep the wall buttons. Home Assistant should add to the KNX system, not become the only way to switch a light.

The intern comparison works here too. Home Assistant is the clever intern who reads the building’s messages and tidies up. KNX is the building. Give the intern a proper desk and a name badge, which means a tunnel of his own, and he is very useful.

If you want this connected on your own installation, or you are specifying a new project and want it designed in from the start, just a conversation about what the project needs.

Wayne, KNX Logic | wayne@knxlogic.co.za | 082 564 3982 | www.knxlogic.co.za

Sources: Home Assistant KNX integration documentation (home-assistant.io/integrations/knx); Home Assistant core KNX strings.json (config flow labels); Home Assistant Community threads “Import KNX files into the HA” and “KNX project file import” (maintainer replies, 2023 to 2025); Helge Klein, “How to Integrate Home Assistant With KNX & ETS” (August 2025). Not verified in these sources: tunnel slot limits per interface, and exact menu wording in the current Home Assistant release, which may differ slightly from the above.

Planning a build or renovation? See what we automate, the hardware we specify, or common KNX questions.

keep reading

More from the journal.

Start with a conversation
about what the project needs.

Phone
+27 82 564 3982
Email
wayne@knxlogic.co.za
Based in
Johannesburg · working nationwide