KNX project file import

Hi there,
I just imported a KNX project file into HA. I´m not sure what happens after the import!?


Is there any documentation about it?
Could´nt find anything on the integration documentation (KNX - Home Assistant).
Since this is now an “official” integration and worked on with the KNX Association directly, I´m quite confused not to find anything about using this feature.
I´m happy for any hint, even videos on Youtube welcome :slight_smile:

4 Likes

Hi :wave:!
It’s only used for the group monitor and device triggers currently.

1 Like

Thanks @marschall.philipp for asking this. I did the same just few days ago and also confused and trying to find documentation.
What is the best way currently to import KNX project as project file or as csv/xml file file?
I found following project on github GitHub - laurent-martin/ets-to-homeassistant: script to convert ETS5 project file to a YAML configuration file suitable for Home Assistant, any experiences?

2 Likes

I created a fork of that project and created a custom script.

With this I can generate 1100 lines of yaml out of my knx project file.

See my repository and documentation. It should be comprehensive :slight_smile:

1 Like

I have also imported it and looks like it creates a HASS entity from each KNX Group Address.

This is the same that is done in knx.yaml file:

switch:
  - name: "Hallway lights"
    address: "0/0/2"
    state_address: "0/1/2"

and they both create a HASS-entity.

Is this import-feature some new addition and we should not make manual knx.yaml file anymore?

I’d assume that using the yaml-file for something else becomes difficult as any option should have the entity name where any option/attribute would be written and those names don’t exist anymore if they’re imported from project file.

Btw, it’s annoying process as I’ve RF actuators and ETS requires mandatory password. And that password is asked every time the project file is imported.

They should ditch the whole file and make that same information flow over network between these two software.

I was talking about the Knx integrations project import, not about the script thing linked above.

The integration feature doesn’t create any entities automatically.

Maybe try a password manager :person_shrugging:
Usually a Knx project doesn’t get changed very often once the installation is finished, so I guess the problem will diminish.

Mee too.

Could be, but I think there is a dialog for that. There are so many things going on (like RF connection problems) that my working configuration is still evolving.

This is the dialog, opens from left side menu entry KNX. At the bottom is a big blue button “Add entity” and it gives three types to pick from (I need temperature, it’s none of those) and for example Light-type, there are project-file Devices that can be opened and underneath those Group Addresses can be dragged with mouse into new entity fields.

But yes, not automatically - but imo no knx.yaml is needed after that?

For the 3 platforms that are currently supported, you don’t need yaml config. You can use yaml, if you prefer, though. You can also mix if you like…
See KNX entities dashboard