New to the forum, beginner in HA and KNX, so please be patient.
I have been playing with HA since a few months and managed to integrate the following:
Kodi & Squeezbox to react on Fritzbox calls
Modded (tasmota) plug & light, also to react on Fritzbox calls
Now I’ve started with KNX but I cannot get the IP interface into HA.
Have followed the steps from KNX integration + the KNX Cookbook but to no avail.
In my configuration.yaml I have tried with:
knx:
&
knx:
tunneling:
host: 172.16.0.35 (address from KNX IP interface)
port: 3671
local_ip: 172.16.0.5 (address from HA)
HA 110.0 runs in a dedicated container on Debian Buster (used the RPi setup instructions)
Do you have any log messages from the Knx component?
Are you running docker? If so, be sure to run it in network mode “host”. Even if your container isn’t docker it has to be available by its ip from your Knx ip interface without any NATing inbetween and the local_ip has to be the containers ip.
Btw your spacing seems off - check if the spacing in your actual configuration is right.
Do you mean the logs from within HA for the KNX integration?
I don’t see anything in ‘Developer Tools’, ‘Info’.
In " /home/homeassistant/.homeassistant/home-assistant.log" there is a repetition of:
WARNING (MainThread) [xknx.log] Error: KNX bus did not respond in time to request of type 'Disconnect'
WARNING (MainThread) [xknx.log] Error: KNX bus did not respond in time to request of type 'Connect'
WARNING (MainThread) [xknx.log] Cannot connect to KNX. Retry in 3 seconds.
No, running LXC (Proxmox VE) and the KNX interface is ping-able from the HA cli (everthting is in the same subnet), so guess that’s not an issue.
Regarding spacing: tbh, I haven’t seen any rules regarding that but now I’ve found that it has to be 0 or 2 spaces. Thanks for pointing that out!
Does a ‘Check Configuration’ from the UI reveal these errors?
This is what I have for my mediaplayers and works
Give us more information on your setup.
What Ip Interface are you using? Does it use Knx Secure?
Do you have any Knx devices configured in HA?
Do you know if multicast works between your HA instance and Ip Interface? (For Discovery)
Is port 3671 maybe blocked by a firewall?
Enable debug logging for Knx ( Activate debug log for KNX ). Clear your Knx config options and just use knx:
restart HA and Post the logs here. They are found in “Developer Tools” -> “Logs”
No, just started to get to familiar with KNX and have been trying to get the IP interface in HA since I thought this has to be done first.
No idea
From HA cli:
nc -zv 172.16.0.35 3671
172.16.0.35: inverse host lookup failed: Unknown host
(UNKNOWN) [172.16.0.35] 3671 (?) : Protocol not available
LOG:
22:20:34 INFO (MainThread) [homeassistant.setup] Setup of domain logger took 0.0 seconds.
22:20:34 INFO (MainThread) [homeassistant.setup] Setting up http
22:20:34 INFO (MainThread) [homeassistant.setup] Setup of domain http took 0.0 seconds.
22:20:34 INFO (MainThread) [homeassistant.setup] Setting up system_log
22:20:34 INFO (MainThread) [homeassistant.setup] Setup of domain system_log took 0.0 seconds.
22:20:34 INFO (MainThread) [homeassistant.setup] Setting up recorder
22:20:34 INFO (MainThread) [homeassistant.setup] Setting up webhook
22:20:34 INFO (MainThread) [homeassistant.setup] Setup of domain webhook took 0.0 seconds.
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up alexa
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain alexa took 0.0 seconds.
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain recorder took 0.1 seconds.
22:20:35 INFO (SyncWorker_6) [homeassistant.loader] Loaded google_assistant from homeassistant.components.google_assistant
22:20:35 INFO (SyncWorker_15) [homeassistant.loader] Loaded camera from homeassistant.components.camera
22:20:35 INFO (SyncWorker_5) [homeassistant.loader] Loaded homekit from homeassistant.components.homekit
22:20:35 INFO (SyncWorker_7) [homeassistant.loader] Loaded device_tracker from homeassistant.components.device_tracker
22:20:35 INFO (SyncWorker_7) [homeassistant.loader] Loaded ffmpeg from homeassistant.components.ffmpeg
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up cloud
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain cloud took 0.0 seconds.
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up ssdp
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain ssdp took 0.0 seconds.
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up group
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain group took 0.0 seconds.
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up input_text
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up input_select
22:20:35 INFO (SyncWorker_8) [homeassistant.loader] Loaded fritzbox_callmonitor from homeassistant.components.fritzbox_callmonitor
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up input_boolean
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up script
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain script took 0.0 seconds.
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up sun
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain sun took 0.0 seconds.
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up lovelace
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up updater
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up input_datetime
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up zone
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up met
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain met took 0.0 seconds.
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up input_number
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up knx
22:20:35 INFO (MainThread) [xknx.log] XKNX v0.11.3 starting automatic connection to KNX bus.
22:20:35 DEBUG (MainThread) [xknx.log] Searching on lo / 127.0.0.1
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up scene
22:20:35 INFO (MainThread) [homeassistant.components.scene] Setting up scene.homeassistant
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up person
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up sensor
22:20:35 DEBUG (MainThread) [xknx.knx] Sending: <KNXIPFrame <KNXIPHeader HeaderLength="6" ProtocolVersion="16" KNXIPServiceType="KNXIPServiceType.SEARCH_REQUEST" Reserve="0" TotalLength="14" />
body="<SearchRequest discovery_endpoint="<HPAI 127.0.0.1:48020 />" />" />
22:20:35 DEBUG (MainThread) [xknx.log] Searching on eth0 / 172.16.0.5
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up history
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain history took 0.0 seconds.
22:20:35 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.fritzbox_callmonitor
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up system_health
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain system_health took 0.0 seconds.
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up config
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up device_automation
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain device_automation took 0.0 seconds.
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up websocket_api
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain websocket_api took 0.0 seconds.
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up api
22:20:35 INFO (SyncWorker_11) [homeassistant.loader] Loaded squeezebox from homeassistant.components.squeezebox
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain input_text took 0.1 seconds.
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain input_select took 0.1 seconds.
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain input_boolean took 0.1 seconds.
22:20:35 INFO (SyncWorker_0) [homeassistant.loader] Loaded switch from homeassistant.components.switch
22:20:35 INFO (SyncWorker_0) [homeassistant.loader] Loaded light from homeassistant.components.light
22:20:35 INFO (SyncWorker_0) [homeassistant.loader] Loaded weather from homeassistant.components.weather
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain lovelace took 0.1 seconds.
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain input_datetime took 0.1 seconds.
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain input_number took 0.1 seconds.
22:20:35 DEBUG (MainThread) [xknx.knx] Sending: <KNXIPFrame <KNXIPHeader HeaderLength="6" ProtocolVersion="16" KNXIPServiceType="KNXIPServiceType.SEARCH_REQUEST" Reserve="0" TotalLength="14" />
body="<SearchRequest discovery_endpoint="<HPAI 172.16.0.5:33900 />" />" />
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain scene took 0.1 seconds.
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up auth
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain auth took 0.0 seconds.
22:20:35 INFO (MainThread) [homeassistant.helpers.storage] Migrating person storage from 1 to 2
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain api took 0.0 seconds.
22:20:35 INFO (SyncWorker_12) [homeassistant.loader] Loaded kodi from homeassistant.components.kodi
22:20:35 DEBUG (MainThread) [xknx.knx] Received: <KNXIPFrame <KNXIPHeader HeaderLength="6" ProtocolVersion="16" KNXIPServiceType="KNXIPServiceType.SEARCH_RESPONSE" Reserve="0" TotalLength="76" />
body="<SearchResponse control_endpoint="<HPAI 172.16.0.35:3671 />" dibs="[
<DIBDeviceInformation
knx_medium="KNXMedium.TP1"
programming_mode="False"
individual_address="PhysicalAddress("1.1.1")"
installation_number="0"
project_number="0"
serial_number="00:71:00:0b:e1:06"
multicast_address="0.0.0.0"
mac_address="48:33:dd:00:b8:2b"
name="KIPI" />,
<DIBSuppSVCFamilies families="[DIBServiceFamily.CORE version: 1, DIBServiceFamily.DEVICE_MANAGEMENT version: 1, DIBServiceFamily.TUNNELING version: 1]" />
]" />" />
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up mqtt
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain mqtt took 0.0 seconds.
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain config took 0.1 seconds.
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up weather
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain weather took 0.0 seconds.
22:20:35 DEBUG (MainThread) [xknx.log] Starting tunnel from 172.16.0.5 to 172.16.0.35:3671
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up search
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain search took 0.0 seconds.
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain zone took 0.2 seconds.
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up media_player
22:20:35 INFO (MainThread) [xknx.log] closing transport None
22:20:35 INFO (MainThread) [xknx.log] closing transport None
22:20:35 INFO (MainThread) [homeassistant.components.weather] Setting up weather.met
22:20:35 INFO (MainThread) [homeassistant.components.media_player] Setting up media_player.squeezebox
22:20:35 DEBUG (MainThread) [xknx.knx] Sending: <KNXIPFrame <KNXIPHeader HeaderLength="6" ProtocolVersion="16" KNXIPServiceType="KNXIPServiceType.CONNECT_REQUEST" Reserve="0" TotalLength="26" />
body="<ConnectRequest control_endpoint="<HPAI 172.16.0.5:44421 />" data_endpoint="<HPAI 172.16.0.5:44421 />" request_type="ConnectRequestType.TUNNEL_CONNECTION" />" />
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up zeroconf
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up kodi
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain kodi took 0.0 seconds.
22:20:35 DEBUG (MainThread) [xknx.knx] Received: <KNXIPFrame <KNXIPHeader HeaderLength="6" ProtocolVersion="16" KNXIPServiceType="KNXIPServiceType.CONNECT_RESPONSE" Reserve="0" TotalLength="20" />
body="<ConnectResponse communication_channel="141" status_code="ErrorCode.E_NO_ERROR" control_endpoint="<HPAI 172.16.0.35:3671 />" request_type="ConnectRequestType.TUNNEL_CONNECTION" identifier="4354" />" />
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up automation
22:20:35 INFO (MainThread) [homeassistant.components.media_player] Setting up media_player.kodi
22:20:35 DEBUG (MainThread) [xknx.log] Tunnel established communication_channel=141, id=4354
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain knx took 0.2 seconds.
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up switch
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain switch took 0.0 seconds.
22:20:35 INFO (SyncWorker_5) [homeassistant.loader] Loaded climate from homeassistant.components.climate
22:20:35 INFO (SyncWorker_5) [homeassistant.loader] Loaded cover from homeassistant.components.cover
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up light
22:20:35 INFO (SyncWorker_7) [homeassistant.loader] Loaded binary_sensor from homeassistant.components.binary_sensor
22:20:35 INFO (SyncWorker_7) [homeassistant.loader] Loaded notify from homeassistant.components.notify
22:20:35 INFO (MainThread) [homeassistant.components.scene] Setting up scene.knx
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up climate
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain climate took 0.0 seconds.
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up cover
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain cover took 0.0 seconds.
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain light took 0.1 seconds.
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up binary_sensor
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain binary_sensor took 0.0 seconds.
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up notify
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain notify took 0.0 seconds.
22:20:35 INFO (MainThread) [homeassistant.components.switch] Setting up switch.knx
22:20:35 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: light A5C70D_LI_1
22:20:35 INFO (MainThread) [homeassistant.components.light] Setting up light.mqtt
22:20:35 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: switch 6BB297_RL_1
22:20:35 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: binary_sensor 6BB297_BTN_1
22:20:35 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: sensor 6BB297_status
22:20:35 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: sensor A5C70D_status
22:20:35 INFO (MainThread) [homeassistant.components.climate] Setting up climate.knx
22:20:35 INFO (MainThread) [homeassistant.components.cover] Setting up cover.knx
22:20:35 INFO (MainThread) [homeassistant.components.light] Setting up light.knx
22:20:35 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.knx
22:20:35 INFO (MainThread) [homeassistant.components.notify] Setting up notify.knx
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain automation took 0.1 seconds.
22:20:35 INFO (MainThread) [homeassistant.components.switch] Setting up switch.mqtt
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain person took 0.3 seconds.
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up onboarding
22:20:35 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.mqtt
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up mobile_app
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain onboarding took 0.0 seconds.
22:20:35 INFO (MainThread) [homeassistant.components.binary_sensor] Not adding entity Stekker Button1 because it's disabled
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain mobile_app took 0.0 seconds.
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up frontend
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain frontend took 0.0 seconds.
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain media_player took 0.2 seconds.
22:20:35 INFO (MainThread) [homeassistant.components.notify] Setting up notify.mobile_app
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up map
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain map took 0.0 seconds.
22:20:35 INFO (MainThread) [homeassistant.setup] Setting up logbook
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain logbook took 0.0 seconds.
22:20:35 INFO (MainThread) [homeassistant.setup] Setup of domain zeroconf took 0.2 seconds.
22:20:36 INFO (SyncWorker_10) [homeassistant.components.fritzbox_callmonitor.sensor] Fritz!Box phone book successfully updated
22:20:36 INFO (MainThread) [homeassistant.setup] Setup of domain sensor took 1.0 seconds.
22:20:36 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.mqtt
22:20:36 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.knx
22:20:36 INFO (MainThread) [homeassistant.components.updater] Submitted analytics to Home Assistant servers. Information submitted includes {}
22:20:36 INFO (MainThread) [homeassistant.setup] Setup of domain updater took 1.2 seconds.
22:20:36 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.updater
22:20:36 INFO (MainThread) [homeassistant.setup] Setting up default_config
22:20:36 INFO (MainThread) [homeassistant.setup] Setup of domain default_config took 0.0 seconds.
22:20:36 INFO (SyncWorker_15) [homeassistant.loader] Loaded google_translate from homeassistant.components.google_translate
22:20:36 INFO (MainThread) [homeassistant.setup] Setting up tts
22:20:36 INFO (MainThread) [homeassistant.setup] Setup of domain tts took 0.0 seconds.
22:20:37 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 2.71s
22:20:37 INFO (MainThread) [homeassistant.core] Starting Home Assistant
22:20:37 INFO (SyncWorker_10) [homeassistant.components.zeroconf] Starting Zeroconf broadcast
22:20:37 INFO (SyncWorker_17) [homeassistant.loader] Loaded upnp from homeassistant.components.upnp
22:20:37 INFO (MainThread) [homeassistant.core] Timer:starting
22:20:37 INFO (MainThread) [homeassistant.components.automation] Initialized trigger FB Rings
22:20:37 INFO (MainThread) [homeassistant.components.automation] Initialized trigger FB Rings
22:20:45 DEBUG (MainThread) [xknx.log] Starting StateUpdater
22:20:50 DEBUG (MainThread) [xknx.knx] Sending: <KNXIPFrame <KNXIPHeader HeaderLength="6" ProtocolVersion="16" KNXIPServiceType="KNXIPServiceType.CONNECTIONSTATE_REQUEST" Reserve="0" TotalLength="16" />
body="<ConnectionStateRequest CommunicationChannelID="141", control_endpoint="<HPAI 172.16.0.5:44421 />" />" />
22:20:50 DEBUG (MainThread) [xknx.knx] Received: <KNXIPFrame <KNXIPHeader HeaderLength="6" ProtocolVersion="16" KNXIPServiceType="KNXIPServiceType.CONNECTIONSTATE_RESPONSE" Reserve="0" TotalLength="8" />
body="<ConnectionStateResponse CommunicationChannelID="141" status_code="ErrorCode.E_NO_ERROR" />" />
22:20:50 DEBUG (MainThread) [xknx.log] Success: received correct answer from KNX bus: ErrorCode.E_NO_ERROR
22:21:05 DEBUG (MainThread) [xknx.knx] Sending: <KNXIPFrame <KNXIPHeader HeaderLength="6" ProtocolVersion="16" KNXIPServiceType="KNXIPServiceType.CONNECTIONSTATE_REQUEST" Reserve="0" TotalLength="16" />
body="<ConnectionStateRequest CommunicationChannelID="141", control_endpoint="<HPAI 172.16.0.5:44421 />" />" />
22:21:05 DEBUG (MainThread) [xknx.knx] Received: <KNXIPFrame <KNXIPHeader HeaderLength="6" ProtocolVersion="16" KNXIPServiceType="KNXIPServiceType.CONNECTIONSTATE_RESPONSE" Reserve="0" TotalLength="8" />
body="<ConnectionStateResponse CommunicationChannelID="141" status_code="ErrorCode.E_NO_ERROR" />" />
22:21:05 DEBUG (MainThread) [xknx.log] Success: received correct answer from KNX bus: ErrorCode.E_NO_ERROR
Depends on what you want to do.
I’d define some devices - but this is dependent on what the actuator controls. The simplest thing would be a switch. Or a light without brightness etc.
If you want to have the inputs usable in HA you would define a binary_sensor