On host I have knx virtual that talks correctly to HA server via UDP (seen with procmon).
It seems that knx stack didn’t succeed to reply to knx virtual.
nmap -p 3671 -sU -v 192.168.178.XX0
says 3671/udp state closed
On core log I got
WARNING (MainThread) [xknx.log] Sending telegram failed. No active communication channel.
Am I right saying that the problem lies on HA OS with 3671 udp port closed?
How can I open it?
The default installation of ha OS uses alpine linux. Is there a firewall enabled in this installation? (awall?)
No, 3671 is the port used by the tunneling server to listen for incoming connections. Outgoing use a random port, just like for everything else.
Yes. The tunneling server is the one to reply. You can’t connect to HA, but HA has to initiate a connection. Also SearchReqests will not be answered by HA.
Does HAOS run docker in network=host mode?
I’d not complicate stuff with VMs, but just install HA core locally for such a test system and work my way up from there.
Another possible block is Windows. The Knx stack used in HA is hardly tested on Windows.
xknx.knx] Sending: <KNXIPFrame <KNXIPHeader HeaderLength="6" ProtocolVersion="16" KNXIPServiceType="CONNECT_REQUEST" Reserve="0" TotalLength="26" />
body="<ConnectRequest control_endpoint="<HPAI 0.0.0.0:0 />" data_endpoint="<HPAI 0.0.0.0:0 />" request_type="ConnectRequestType.TUNNEL_CONNECTION" />" />
[xknx.log] Error: KNX bus did not respond in time (1.0 secs) to request of type 'Connect'
[xknx.log] Could not establish connection to KNX/IP interface. CommunicationError: ConnectRequest failed. Status code: None
[xknx.log] Closing transport.
the first 4 rows are ETS5 and KV (knx virtual) chatting. KV is listening on port 3671.
The last 2 rows seems that kv is receiving a datagram from HA, but fails to respond.
xknx logs seems correct… It send a datagram correctly, but fails to get an answer.
[xknx.knx] Sending: <KNXIPFrame <KNXIPHeader HeaderLength="6" ProtocolVersion="16" KNXIPServiceType="CONNECT_REQUEST" Reserve="0" TotalLength="26" />
body="<ConnectRequest control_endpoint="<HPAI 0.0.0.0:0 />" data_endpoint="<HPAI 0.0.0.0:0 />" request_type="ConnectRequestType.TUNNEL_CONNECTION" />" />
[xknx.log] Error: KNX bus did not respond in time (1.0 secs) to request of type 'Connect'
[xknx.log] Could not establish connection to KNX/IP interface. CommunicationError: ConnectRequest failed. Status code: None
[xknx.log] Closing transport.
That’s what the knx.org article is saying.
If you send HPAI all 0 you are requesting it to use route back (NAT mode) - this is not supported by Knx Virtual.
Try to install both on the same machine and don’t enable route_back. Maybe you’re more lucky then.
How can I install on same machine if HA runs on linux and KNX virtual (KV) on windows?
I tried a programmatic approach… I set up an UDP proxy on windows host (where KV is running) and set HA to use the proxy UDP port.
KV seems not to respond to this (local) port.
With ETS5 UDP flow is as follow:
On previous installations (virtualbox) the light switch was automatically added to the “home” page, for some reason not now
Adding it manually did the trick!! The ligh in KNX virtual is named ch1 HAKNX|644x500