XKNX is controlled via a configuration file. Per default the configuration file is named
xknx.yaml. You can change this by providing the
config option like so:
Throughout the time this configuration has grown a lot meaning that it can be really hard to maintain for bigger installations.
There are several ways to improve the readability of your configuration:
lights: !include lights.yamlwill load all lights from a dedicated
host: !env_var XKNX_HOST 192.168.0.200will load the host variable from an environment variable
XKNX_HOSTdoes not exist falls back to
There is one advanced method to load a whole directory of YAML files at once. Your files must have the
.yaml file extension.
!include_dir_listwill return the complete content of a directory as a list with each file content being and entry in the list. The list entries are unordered.