Spliting knx confiiguration

Hi all,

first, happy new year !

i am trying to split knx configuration

i have a folder named ‘KNX’ containing all specific knx yaml files (knx_sensors.yaml, knx_ligths.yaml…)
it contains also a knx.yaml file

tunneling:
  host: '192.168.1.xxx'
  port: 3671

configuration.yaml

knx: !include_dir_merge_named knx/
scene: !include scenes.yaml

in configuration folder, i have some other sensor.yaml files loaded
If i do configuration>Server control>check, it is ok.

So i restart the server,
but ui lovelace does not find entities : “entity not avalaible : light.xxx”

if i move knx files in configuration directory and load them using “xxx: !include knx/knx_xxxx.yaml”, it works fine !

So, can someone help me to understand what is wrong in my way of spliting ?

tks in advance

Is the KNX folder in /config/knx or /knx?

/config/knx

i tryied a simply conf

 knx: 
   tunneling:
     host: '192.168.1.xxx'
     port: 3671
   expose : !include knx_expose.yaml  
   light: 
     - name: 'Cuisine'
       address: '0/1/1'
       state_address: '0/6/1'

i get the error bellow after checking configuration
Invalid config for [knx]: [light] is an invalid option for [knx]. Check: knx->knx->light. (See /config/configuration.yaml, line 152).

I also notice these error in logs

Log Details (ERROR)
Logger: xknx.log
Source: /usr/local/lib/python3.7/site-packages/xknx/io/udp_client.py:91
First occurred: 10:42:25 AM (24 occurrences)
Last logged: 10:43:48 AM

ValueError: 704 is not a valid APCICommand

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/xknx/knxip/cemi_frame.py”, line 147, in from_knx_data_link_layer
self.cmd = APCICommand(tpci_apci & 0xFFC0)
File “/usr/local/lib/python3.7/enum.py”, line 310, in call
return cls.new(cls, value)
File “/usr/local/lib/python3.7/enum.py”, line 564, in new
raise exc
File “/usr/local/lib/python3.7/enum.py”, line 548, in new
result = cls.missing(value)
File “/usr/local/lib/python3.7/enum.py”, line 577, in missing
raise ValueError(“%r is not a valid %s” % (value, cls.name))
ValueError: 704 is not a valid APCICommand

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/xknx/io/udp_client.py”, line 87, in data_received_callback
knxipframe.from_knx(raw)
File “/usr/local/lib/python3.7/site-packages/xknx/knxip/knxip.py”, line 78, in from_knx
pos += self.body.from_knx(data[pos:])
File “/usr/local/lib/python3.7/site-packages/xknx/knxip/tunnelling_request.py”, line 48, in from_knx
pos += self.cemi.from_knx(raw[pos:])
File “/usr/local/lib/python3.7/site-packages/xknx/knxip/cemi_frame.py”, line 116, in from_knx
return self.from_knx_data_link_layer(raw)
File “/usr/local/lib/python3.7/site-packages/xknx/knxip/cemi_frame.py”, line 150, in from_knx_data_link_layer
“APCI not supported: {0:#012b}”.format(tpci_apci & 0xFFC0))
xknx.exceptions.exception.CouldNotParseKNXIP:

Are you using up to date HA (2020.12 and above) with xknx 0.15.6 ?

Try to get rid of the config problem first - if that trackback / error appears with working config please open an issue at GitHub.

i use docker
here is what i can get, no idea on how get xknx version.

Home Assistant 0.107.5

Frontend version: 20200318.1 - latest

arch x86_64
dev false
docker true
hassio false
os_name Linux
os_version 3.10.105
python_version 3.7.7
timezone Europe/Paris
version 0.107.5
virtualenv false

Sincerly

It’s a quite old version (as in many known and fixed bugs) shipped with 0.117 (it logs its version once after startup).
I recommend to update to 2020.12 or newer.

ok, so, let’s try :sweat_smile: