Hello,
I will try to give more details. I’ve started from scratch …
I’ve installed :
Home Assistant OS 6.1 from this url:
https://github.com/home-assistant/operating-system/releases/download/6.1/haos_rpi4-64-6.1.img.xz
On a RPi4 (8GB)
Yes both RPi4 and KNX/IP router are on the same network (wired).
I am able to communicate with ETS, open remote and Jeedom (not at the same time ;)) but I could not find the right setting for HA unfortunately.
In the configuration file, I’ve added:
logger:
default: info
logs:
xknx: debug
To activate the logger.
Here is my first trials:
##########
- With router mode:
knx:
routing:
local_ip: "192.168.0.12"
###################
# KNX switch
###################
light:
- name: "Kitchen"
address: "2/0/7"
state_address: "1/0/23"
I got this from the log:
2021-08-02 17:27:27 INFO (MainThread) [xknx.log] XKNX v0.18.8 starting routing connection to KNX bus.
2021-08-02 17:27:27 DEBUG (MainThread) [xknx.log] Starting Routing from 192.168.0.12 as 15.15.250
2021-08-02 17:27:27 DEBUG (MainThread) [xknx.log] Could not establish connection to KNX/IP network. OSError: [Errno 99] Address not available
2021-08-02 17:27:27 ERROR (MainThread) [homeassistant.setup] Error during setup of component knx
##########
2. I’ve tried by putting the multicasting address:
knx:
routing:
local_ip: "224.0.23.12"
###################
# KNX switch
###################
light:
- name: "Kitchen"
address: "2/0/7"
state_address: "1/0/23"
I’ve got this:
2021-08-02 17:33:44 DEBUG (MainThread) [xknx.log] Starting Routing from 224.0.23.12 as 15.15.250
2021-08-02 17:33:44 DEBUG (MainThread) [xknx.log] Could not establish connection to KNX/IP network. OSError: [Errno 99] Address not available
2021-08-02 17:33:44 ERROR (MainThread) [homeassistant.setup] Error during setup of component knx
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 249, in _async_setup_component
result = await task
File "/usr/src/homeassistant/homeassistant/components/knx/__init__.py", line 177, in async_setup
await knx_module.start()
File "/usr/src/homeassistant/homeassistant/components/knx/__init__.py", line 287, in start
await self.xknx.start()
File "/usr/local/lib/python3.9/site-packages/xknx/xknx.py", line 109, in start
await self.knxip_interface.start()
File "/usr/local/lib/python3.9/site-packages/xknx/io/knxip_interface.py", line 51, in start
await self.start_routing(self.connection_config.local_ip)
File "/usr/local/lib/python3.9/site-packages/xknx/io/knxip_interface.py", line 135, in start_routing
await self.interface.connect()
File "/usr/local/lib/python3.9/site-packages/xknx/io/routing.py", line 100, in connect
raise ex
File "/usr/local/lib/python3.9/site-packages/xknx/io/routing.py", line 91, in connect
await self.udpclient.connect()
File "/usr/local/lib/python3.9/site-packages/xknx/io/udp_client.py", line 191, in connect
sock = UDPClient.create_multicast_sock(self.local_addr[0], self.remote_addr)
File "/usr/local/lib/python3.9/site-packages/xknx/io/udp_client.py", line 154, in create_multicast_sock
sock.setsockopt(
OSError: [Errno 99] Address not available
##########
3. Then I’ve try with the tunneling mode:
knx:
#routing:
#local_ip: "224.0.23.12"
tunneling:
host: "192.168.0.12"
port: 3671
local_ip: "192.168.0.41"
###################
# KNX switch
###################
light:
- name: "Kitchen"
address: "2/0/7"
state_address: "1/0/23"
=> And it works … Don’t get why
The only difference with my first trial is that I’ve disconnected the computer where the ETS is running. Can this be linked ?
It seems to be. Because now with ETS I can’t connect directly to the KNX/router; only the multicasting is working …
Thanks