Are there any best practices and/or recommendation on how to best organize the configuration file(s) for the KNX integration?
Putting everything into one file will get confusing quite quickly. Home assistant has some means to split the configuration.
This will allow you to split across the different domains (sensor
, switch
, cover
, light
, etc.).
Personally I would prefer to split across devices, e.g. have a separate file for every device. Some of my devices have entities in different domains, though, e.g. there could be binary_sensor
, sensor
and switch
entities, etc.
Maybe Iâm thinking to complicated here, but I donât see a way to merge different files across different domains.
For example, this is how I would like to organize my files:
og_z1_pm1.yaml
:
binary_sensor:
- name: "OG-Z1-PM1 Presence"
state_address: "2/4/1"
sensor:
- name: "OG-Z1-PM1 Temperature"
state_address: "2/4/7"
type: temperature
og_z2_pm1.yaml
:
binary_sensor:
- name: "OG-Z2-PM1 Presence"
state_address: "2/5/1"
sensor:
- name: "OG-Z2-PM1 Temperature"
state_address: "2/5/7"
type: temperature
After including those files, I would like the entries for each category to be added to the responding category.
Any recommendations on how to achieve this and/or other general recommendations on how to organize configuration files, specially for the KNX integration, which tends to become quite massive, since a lot of details have to be specified (addresses, state_addresses, etc.).