Hi
Struggling to have my first KNX connection working in my “hello world” HA setup.
HA Installed in Ubuntu laptop. static Wifi connection
python3 --version
Python 3.8.2
~/.homeassistant$ pip --version
Command ‘pip’ not found, but there are 18 similar ones.
:~/.homeassistant$ pip3 --version
pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)
configuration.yaml
knx:
tunneling:
host: 192.168.1.5
port: 3671
local_ip: 192.168.1.11
#already tried only with “knx:”
Here you have the lines with errors:
2020-05-09 18:06:57 INFO (MainThread) [homeassistant.setup] Setting up updater
2020-05-09 18:06:57 DEBUG (MainThread) [xknx.knx] Sending: <KNXIPFrame
body="" />
2020-05-09 18:06:57 INFO (MainThread) [homeassistant.setup] Setting up websocket_api
2020-05-09 18:06:57 INFO (MainThread) [homeassistant.setup] Setup of domain websocket_api took 0.0 seconds.
2020-05-09 18:06:57 DEBUG (MainThread) [xknx.knx] Received: <KNXIPFrame
body="" />
2020-05-09 18:06:57 INFO (MainThread) [homeassistant.setup] Setup of domain input_number took 0.1 seconds.
2020-05-09 18:06:57 INFO (MainThread) [homeassistant.setup] Setup of domain input_text took 0.1 seconds.
2020-05-09 18:06:57 INFO (SyncWorker_6) [homeassistant.loader] Loaded spotify from homeassistant.components.spotify
2020-05-09 18:06:58 DEBUG (MainThread) [xknx.knx] Received: <KNXIPFrame
body="<TunnellingRequest communication_channel_id=“14” sequence_counter=“0” cemi="<CEMIFrame SourceAddress=“PhysicalAddress(“0.0.12”)” DestinationAddress=“GroupAddress(“0/5/8”)” Flags=“1011110011100000” Command=“APCICommand.GROUP_WRITE” payload="" />" />" />
2020-05-09 18:06:58 DEBUG (MainThread) [xknx.knx] Sending: <KNXIPFrame
body="" />
2020-05-09 18:06:58 DEBUG (MainThread) [xknx.telegram] <Telegram group_address=“GroupAddress(“0/5/8”)”, payload="" telegramtype=“TelegramType.GROUP_WRITE” direction=“TelegramDirection.INCOMING” />
2020-05-09 18:06:59 DEBUG (MainThread) [xknx.knx] Received: <KNXIPFrame
body="<TunnellingRequest communication_channel_id=“14” sequence_counter=“1” cemi="<CEMIFrame SourceAddress=“PhysicalAddress(“0.0.12”)” DestinationAddress=“GroupAddress(“0/5/8”)” Flags=“1011110011100000” Command=“APCICommand.GROUP_WRITE” payload="" />" />" />
2020-05-09 18:06:59 DEBUG (MainThread) [xknx.knx] Sending: <KNXIPFrame
body="" />
2020-05-09 18:06:59 DEBUG (MainThread) [xknx.telegram] <Telegram group_address=“GroupAddress(“0/5/8”)”, payload="" telegramtype=“TelegramType.GROUP_WRITE” direction=“TelegramDirection.INCOMING” />
2020-05-09 18:07:00 ERROR (MainThread) [metno] aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/1.9/ returned Cannot connect to host aa015h6buqvih86i1.api.met.no:443 ssl:None [Connect call failed (‘157.249.177.128’, 443)]
2020-05-09 18:07:00 ERROR (MainThread) [homeassistant.components.met.weather] Retrying in 15 minutes
2020-05-09 18:07:01 DEBUG (MainThread) [xknx.knx] Received: <KNXIPFrame
body="<TunnellingRequest communication_channel_id=“14” sequence_counter=“2” cemi="<CEMIFrame SourceAddress=“PhysicalAddress(“0.0.12”)” DestinationAddress=“GroupAddress(“0/5/7”)” Flags=“1011110011100000” Command=“APCICommand.GROUP_WRITE” payload="" />" />" />
2020-05-09 18:07:01 DEBUG (MainThread) [xknx.knx] Sending: <KNXIPFrame
body="" />
2020-05-09 18:07:01 DEBUG (MainThread) [xknx.telegram] <Telegram group_address=“GroupAddress(“0/5/7”)”, payload="" telegramtype=“TelegramType.GROUP_WRITE” direction=“TelegramDirection.INCOMING” />
2020-05-09 18:07:03 ERROR (MainThread) [homeassistant.components.updater] Error requesting Home Assistant update data: Cannot connect to host updater.home-assistant.o 443 ssl:None [Connect call failed (‘151.101.1.195’, 443)]
2020-05-09 18:07:03 INFO (MainThread) [homeassistant.setup] Setup of domain updater took 6.2 seconds.
2020-05-09 18:07:03 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.updater
2020-05-09 18:07:03 INFO (MainThread) [homeassistant.setup] Setting up default_config
2020-05-09 18:07:03 INFO (MainThread) [homeassistant.setup] Setup of domain default_config took 0.0 seconds.
2020-05-09 18:07:03 INFO (SyncWorker_1) [homeassistant.loader] Loaded google_translate from homeassistant.components.google_translate
2020-05-09 18:07:03 INFO (MainThread) [homeassistant.setup] Setting up tts
2020-05-09 18:07:03 INFO (MainThread) [homeassistant.setup] Setup of domain tts took 0.0 seconds.
2020-05-09 18:07:03 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/home/vasco/homeassistant/lib/python3.8/site-packages/aiohttp/connector.py”, line 936, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs) # type: ignore # noqa
File “/usr/lib/python3.8/asyncio/base_events.py”, line 1025, in create_connection
raise exceptions[0]
File “/usr/lib/python3.8/asyncio/base_events.py”, line 1010, in create_connection
sock = await self._connect_sock(
File “/usr/lib/python3.8/asyncio/base_events.py”, line 924, in _connect_sock
await self.sock_connect(sock, address)
File “/usr/lib/python3.8/asyncio/selector_events.py”, line 494, in sock_connect
return await fut
File “/usr/lib/python3.8/asyncio/selector_events.py”, line 526, in _sock_connect_cb
raise OSError(err, f’Connect call failed {address}’)
OSError: [Errno 113] Connect call failed (‘52.206.118.85’, 443)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/home/vasco/homeassistant/lib/python3.8/site-packages/homeassistant/data_entry_flow.py”, line 123, in async_init
result = await self._async_handle_step(
File “/home/vasco/homeassistant/lib/python3.8/site-packages/homeassistant/data_entry_flow.py”, line 196, in _async_handle_step
result: Dict = await getattr(flow, method)(user_input)
File “/home/vasco/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/config_entry_oauth2_flow.py”, line 271, in async_step_discovery
return await self.async_step_pick_implementation()
File “/home/vasco/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/config_entry_oauth2_flow.py”, line 203, in async_step_pick_implementation
implementations = await async_get_implementations(self.hass, self.DOMAIN)
File “/home/vasco/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/config_entry_oauth2_flow.py”, line 316, in async_get_implementations
implementation = await get_impl(hass, domain)
File “/home/vasco/homeassistant/lib/python3.8/site-packages/homeassistant/components/cloud/account_link.py”, line 29, in async_provide_implementation
services = await _get_services(hass)
File “/home/vasco/homeassistant/lib/python3.8/site-packages/homeassistant/components/cloud/account_link.py”, line 76, in _get_services
services = await account_link.async_fetch_available_services(hass.data[DOMAIN])
File “/home/vasco/homeassistant/lib/python3.8/site-packages/hass_nabucasa/account_link.py”, line 120, in async_fetch_available_services
resp = await cloud.client.websession.post(f"{cloud.account_link_url}/services")
File “/home/vasco/homeassistant/lib/python3.8/site-packages/aiohttp/client.py”, line 480, in _request
conn = await self._connector.connect(
File “/home/vasco/homeassistant/lib/python3.8/site-packages/aiohttp/connector.py”, line 523, in connect
proto = await self._create_connection(req, traces, timeout)
File “/home/vasco/homeassistant/lib/python3.8/site-packages/aiohttp/connector.py”, line 858, in _create_connection
_, proto = await self._create_direct_connection(
File “/home/vasco/homeassistant/lib/python3.8/site-packages/aiohttp/connector.py”, line 1004, in _create_direct_connection
raise last_exc
File “/home/vasco/homeassistant/lib/python3.8/site-packages/aiohttp/connector.py”, line 980, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
File “/home/vasco/homeassistant/lib/python3.8/site-packages/aiohttp/connector.py”, line 943, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host account-link.nabucasa.com:443 ssl:None [Connect call failed (‘52.206.118.85’, 443)]
2020-05-09 18:07:04 DEBUG (MainThread) [xknx.knx] Received: <KNXIPFrame
body="<TunnellingRequest communication_channel_id=“14” sequence_counter=“3” cemi="<CEMIFrame SourceAddress=“PhysicalAddress(“0.0.12”)” DestinationAddress=“GroupAddress(“0/5/8”)” Flags=“1011110011100000” Command=“APCICommand.GROUP_WRITE” payload="" />" />" />
2020-05-09 18:07:04 DEBUG (MainThread) [xknx.knx] Sending: <KNXIPFrame
body="" />
2020-05-09 18:07:04 DEBUG (MainThread) [xknx.telegram] <Telegram group_address=“GroupAddress(“0/5/8”)”, payload="" telegramtype=“TelegramType.GROUP_WRITE” direction=“TelegramDirection.INCOMING” />
2020-05-09 18:07:04 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 8.50s
2020-05-09 18:07:04 INFO (MainThread) [homeassistant.core] Starting Home Assistant
2020-05-09 18:07:04 INFO (SyncWorker_1) [homeassistant.components.zeroconf] Starting Zeroconf broadcast
2020-05-09 18:07:04 INFO (MainThread) [homeassistant.core] Timer:starting
2020-05-09 18:07:05 DEBUG (MainThread) [xknx.knx] Received: <KNXIPFrame
body="<TunnellingRequest communication_channel_id=“14” sequence_counter=“4” cemi="<CEMIFrame SourceAddress=“PhysicalAddress(“0.0.12”)” DestinationAddress=“GroupAddress(“0/5/8”)” Flags=“1011110011100000” Command=“APCICommand.GROUP_WRITE” payload="" />" />" />
2020-05-09 18:07:05 DEBUG (MainThread) [xknx.knx] Sending: <KNXIPFrame
body="" />
2020-05-09 18:07:05 DEBUG (MainThread) [xknx.telegram] <Telegram group_address=“GroupAddress(“0/5/8”)”, payload="" telegramtype=“TelegramType.GROUP_WRITE” direction=“TelegramDirection.INCOMING” />
2020-05-09 18:07:07 DEBUG (MainThread) [xknx.log] Starting StateUpdater
2020-05-09 18:07:10 DEBUG (MainThread) [xknx.knx] Received: <KNXIPFrame
body="<TunnellingRequest communication_channel_id=“14” sequence_counter=“5” cemi="<CEMIFrame SourceAddress=“PhysicalAddress(“0.0.12”)” DestinationAddress=“GroupAddress(“0/5/7”)” Flags=“1011110011100000” Command=“APCICommand.GROUP_WRITE” payload="" />" />" />
2020-05-09 18:07:10 DEBUG (MainThread) [xknx.knx] Sending: <KNXIPFrame
body="" />
2020-05-09 18:07:10 DEBUG (MainThread) [xknx.telegram] <Telegram group_address=“GroupAddress(“0/5/7”)”, payload="" telegramtype=“TelegramType.GROUP_WRITE” direction=“TelegramDirection.INCOMING” />
2020-05-09 18:07:12 DEBUG (MainThread) [xknx.knx] Sending: <KNXIPFrame
body="<ConnectionStateRequest CommunicationChannelID=“14”, control_endpoint="<HPAI 192.168.1.11:38955 />" />" />
2020-05-09 18:07:12 DEBUG (MainThread) [xknx.knx] Received: <KNXIPFrame
body="" />
2020-05-09 18:07:12 DEBUG (MainThread) [xknx.log] Success: received correct answer from KNX bus: ErrorCode.E_NO_ERROR
2020-05-09 18:07:27 DEBUG (MainThread) [xknx.knx] Sending: <KNXIPFrame
body="<ConnectionStateRequest CommunicationChannelID=“14”, control_endpoint="<HPAI 192.168.1.11:38955 />" />" />
2020-05-09 18:07:27 DEBUG (MainThread) [xknx.knx] Received: <KNXIPFrame
body="" />
2020-05-09 18:07:27 WARNING (MainThread) [xknx.log] Error: KNX bus responded to request of type ‘ConnectionState’ with error in ‘ConnectionStateResponse’: ErrorCode.E_CONNECTION_ID
2020-05-09 18:07:37 INFO (SyncWorker_0) [homeassistant.loader] Loaded solarlog from homeassistant.components.solarlog
Any ideas? Many thanks