[SOLVED] Daikin BRP072C42 can't connect to home assistant

Adapter Model: BRP072C42 A/C Unit Model: FTKM18SV2S
I can ping the device from the home assistant container
I can control the device from the daikin app
I already put in the API key from the sticker field labeled “KEY”
I have an BRP069B41 in the same A/C model that works just fine with this integration

Stack Trace:

2021-01-18 10:01:12 ERROR (MainThread) [homeassistant.components.daikin.config_flow] ClientError
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 969, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs) # type: ignore # noqa
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1025, in create_connection
raise exceptions[0]
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1010, in create_connection
sock = await self._connect_sock(
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 924, in _connect_sock
await self.sock_connect(sock, address)
File "/usr/local/lib/python3.8/asyncio/selector_events.py", line 496, in sock_connect
return await fut
File "/usr/local/lib/python3.8/asyncio/selector_events.py", line 528, in _sock_connect_cb
raise OSError(err, f'Connect call failed {address}')
ConnectionRefusedError: [Errno 111] Connect call failed ('192.168.0.133', 80)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/daikin/config_flow.py", line 73, in _create_device
device = await Appliance.factory(
File "/usr/local/lib/python3.8/site-packages/pydaikin/daikin_base.py", line 115, in factory
await appl.update_status(appl.HTTP_RESOURCES[:1])
File "/usr/local/lib/python3.8/site-packages/pydaikin/daikin_base.py", line 209, in update_status
self.values.update(await self._get_resource(resource))
File "/usr/local/lib/python3.8/site-packages/pydaikin/daikin_base.py", line 185, in _get_resource
return await self._run_get_resource(resource)
File "/usr/local/lib/python3.8/site-packages/pydaikin/daikin_base.py", line 196, in _run_get_resource
async with self.session.get(f'http://{self._device_ip}/{resource}') as resp:
File "/usr/local/lib/python3.8/site-packages/aiohttp/client.py", line 1117, in __aenter__
self._resp = await self._coro
File "/usr/local/lib/python3.8/site-packages/aiohttp/client.py", line 520, in _request
conn = await self._connector.connect(
File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 535, in connect
proto = await self._create_connection(req, traces, timeout)
File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 892, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 1051, in _create_direct_connection
raise last_exc
File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 1020, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 975, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host 192.168.0.133:80 ssl:default [Connect call failed ('192.168.0.133', 80)]

Curl Request to the Adapter:



It seems like the API is active at port 443 not 80, the port that home assistant is trying to connect to
EDIT: got it to work by changing the adapter region to US

1 Like

Hi! I have the same unit. I keep adding it over and over again and it keeps on returning as this device is already configured.

Turned on debug logs and here is what i saw.

Logger: pydaikin.daikin_base
Source: components/daikin/config_flow.py:87
First occurred: 5:09:50 PM (2 occurrences)
Last logged: 5:44:19 PM

Exception in TaskGroup: Cannot connect to host 192.168.0.4:80 ssl:default [Connect call failed (‘192.168.0.4’, 80)]
Exception in TaskGroup: Cannot connect to host 192.168.0.4:2000 ssl:default [Connect call failed (‘192.168.0.4’, 2000)]

How did you go about changing the region? Is this curl command something i can do inside home assistant?