Daikin Component - no climate entities created - task exception

I tried adding only B1, but same error. Also tried renaming it in Daikin app to something generic like Bedroom. Next I will try taking out the module and reseting it. I don’t know what else I can do. I will report back if I find out something.
Thank you for taking your time to answer me.

Send a pm to me and we’ll try to troubleshoot.

Have you tested the backend library pydaikin?

@fredrike: …awesome!

image image

i’ll start logging it and see how it behaves in the next days

1 Like

unfortunately there is an inherent flaw in how daikin exposes its data, making this new sensors returning wrong-ish numbers. basically power consumption of the last hour (23:00 to 23:59) is lost.

is it ok to elaborate here or do you prefer to move the discussion somewhere in github?

ekt, I’ve sent you a PM so we can take the development off this thread.

sorry fredrike, i’ve been a bit busy - will write you soon!

Looking for some help on how to troubleshoot and get working in AU a BRP15B61 on HA version 0.88.1 - no custom_components inplace. - Have tried Config setup as
daikin:
hosts:
- 192.168.0.xxx
and

climate:

  • platform: daikin
    host: 192.168.0.xxx

but getting the error:-

Sun Feb 24 2019 07:46:20 GMT+1100 (Australian Eastern Daylight Time)
Error setting up entry 192.168.0.xxx for daikin
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/homeassistant/config_entries.py”, line 260, in async_setup
result = await component.async_setup_entry(hass, self)
File “/usr/local/lib/python3.7/site-packages/homeassistant/components/daikin/init.py”, line 64, in async_setup_entry
daikin_api = await daikin_api_setup(hass, conf[KEY_HOST])
File “/usr/local/lib/python3.7/site-packages/homeassistant/components/daikin/init.py”, line 100, in daikin_api_setup
name = device.values[‘name’]
KeyError: ‘name’

appreciate any help!

@Borgy

I Don’t have a BRP15B61, so i can’t comment on that particular unit

however, i don’t think you need the separate climate entry since version V85.0

see the following release notes

[https://www.home-assistant.io/blog/2019/01/09/release-85/]

look for

  • Add config flow for Daikin. Removes configuration option: (breaking change)

all i need in my configuration.yaml since v85.0 is the following

daikin:
  hosts:
    - 10.0.0.xxx

thanks - yeah i had just tried exactly as you had noted above with my ip and still got the same error on start up of HA.
Other errors logged with this config:
Unexpected error creating device
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py”, line 600, in urlopen
chunked=chunked)
File “/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py”, line 384, in _make_request
six.raise_from(e, None)
File “”, line 2, in raise_from
File “/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py”, line 380, in _make_request
httplib_response = conn.getresponse()
File “/usr/local/lib/python3.7/http/client.py”, line 1321, in getresponse
response.begin()
File “/usr/local/lib/python3.7/http/client.py”, line 296, in begin
version, status, reason = self._read_status()
File “/usr/local/lib/python3.7/http/client.py”, line 265, in _read_status
raise RemoteDisconnected(“Remote end closed connection without”
http.client.RemoteDisconnected: Remote end closed connection without response

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/requests/adapters.py”, line 449, in send
timeout=timeout
File “/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py”, line 638, in urlopen
_stacktrace=sys.exc_info()[2])
File “/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py”, line 367, in increment
raise six.reraise(type(error), error, _stacktrace)
File “/usr/local/lib/python3.7/site-packages/urllib3/packages/six.py”, line 685, in reraise
raise value.with_traceback(tb)
File “/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py”, line 600, in urlopen
chunked=chunked)
File “/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py”, line 384, in _make_request
six.raise_from(e, None)
File “”, line 2, in raise_from
File “/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py”, line 380, in _make_request
httplib_response = conn.getresponse()
File “/usr/local/lib/python3.7/http/client.py”, line 1321, in getresponse
response.begin()
File “/usr/local/lib/python3.7/http/client.py”, line 296, in begin
version, status, reason = self._read_status()
File “/usr/local/lib/python3.7/http/client.py”, line 265, in _read_status
raise RemoteDisconnected(“Remote end closed connection without”
urllib3.exceptions.ProtocolError: (‘Connection aborted.’, RemoteDisconnected(‘Remote end closed connection without response’))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/homeassistant/components/daikin/config_flow.py”, line 42, in _create_device
Appliance, host)
File “/usr/local/lib/python3.7/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.7/site-packages/pydaikin/appliance.py”, line 131, in init
self.update_status(HTTP_RESOURCES)
File “/usr/local/lib/python3.7/site-packages/pydaikin/appliance.py”, line 150, in update_status
self.values.update(self.get_resource(resource))
File “/usr/local/lib/python3.7/site-packages/pydaikin/appliance.py”, line 142, in get_resource
r = self.session.get(‘http://%s/%s’ % (self.ip, resource))
File “/usr/local/lib/python3.7/site-packages/requests/sessions.py”, line 546, in get
return self.request(‘GET’, url, **kwargs)
File “/usr/local/lib/python3.7/site-packages/requests/sessions.py”, line 533, in request
resp = self.send(prep, **send_kwargs)
File “/usr/local/lib/python3.7/site-packages/requests/sessions.py”, line 646, in send
r = adapter.send(request, **kwargs)
File “/usr/local/lib/python3.7/site-packages/requests/adapters.py”, line 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: (‘Connection aborted.’, RemoteDisconnected(‘Remote end closed connection without response’))

At this point not sure where/what else to try…

I’m the current developer of the component.

It looks like you can’t connect to your unit with the address you have entered. Are you sure you have given the right address?

Hi @fredrike - thanks for responding.

Yes 100% sure is the correct address - the Daikin Aribase app is connected to this IP and working. I also noted in the HA log file reported the same later IP in the logfile so it found it (?)

2019-02-24 15:22:49 INFO (MainThread) [homeassistant.components.daikin.config_flow] Discovered device: {‘id’: ‘aName’, ‘name’: ‘DaikinAir’, ‘ip’: ‘192.168.0.xxx’, ‘mac’: ‘YYYYYYYYYY’, ‘ver’: ‘1_1_0’}

Any other thoughts? or tests I can do?

Cheers

@fredrike - are you able to suggest a troubleshooting path for this issue?

A general approach to troubleshooting is to install and run the backend library pydaikin:

pip install pydaikin
pydaikin -l
pydaikin 192.168.1.12  # Where 192.168.1.12 is the IP reported by the previous command

Another approach is to make sure that all the endpoints in appliance.py-7 works and outputs data.

i.e. (change ip accordingly)
http://192.168.1.12/aircon/get_control_info
http://192.168.1.12/aircon/get_model_info
http://192.168.1.12/aircon/get_price
http://192.168.1.12/aircon/get_sensor_info
http://192.168.1.12/aircon/get_target
http://192.168.1.12/aircon/get_week_power
http://192.168.1.12/aircon/get_year_power
http://192.168.1.12/common/basic_info
http://192.168.1.12/common/get_holiday
http://192.168.1.12/common/get_notify
http://192.168.1.12/common/get_remote_method

Thanks @fredrike

I assume these all should have had /skyfi/ after the IP address?

Running them all I get :

http://192.168.0.131/skyfi/aircon/get_model_info

ret=OK,err=0,model=NOTSUPPORT,type=N,humd=0,s_humd=7,en_zone=0,en_filter_sign=1,acled=1,land=0,elec=0,temp=1,m_dtct=0,ac_dst=au,dmnd=0,en_temp_setting=1,en_frate=1,en_fdir=0,en_rtemp_a=0,en_spmode=0,en_ipw_sep=0,en_scdltmr=0,en_mompow=0,en_patrol=0,en_airside=0,en_quick_timer=1,en_auto=0,en_dry=1,en_common_zone=0,cool_l=16,cool_h=32,heat_l=16,heat_h=32,frate_steps=2,en_frate_auto=0

http://192.168.0.131/skyfi/aircon/get_price

ret=PARAM NG,msg=404 Not Found

http://192.168.0.131/skyfi/aircon/get_sensor_info

ret=OK,err=0,htemp=-,otemp=-

http://192.168.0.131/skyfi/aircon/get_target

ret=PARAM NG,msg=404 Not Found

http://192.168.0.131/skyfi/aircon/get_week_power

ret=PARAM NG,msg=404 Not Found

http://192.168.0.131/skyfi/aircon/get_year_power

ret=PARAM NG,msg=404 Not Found

http://192.168.0.131/skyfi/common/basic_info

ret=OK,type=aircon,reg=au,dst=1,ver=1_1_0,rev=14,pow=0,err=0,location=0,name=%44%61%69%6b%69%6e%41%69%72,icon=0,method=polling,port=30050,id=[name],pw=[pwd],lpw_flag=0,adp_kind=3,led=1,en_setzone=1,mac=XYXYXYXYX,adp_mode=run,ssid=DaikinAP0000

http://192.168.0.131/skyfi/common/get_holiday

ret=PARAM NG,msg=404 Not Found

http://192.168.0.131/skyfi/common/get_notify

ret=PARAM NG,msg=404 Not Found

http://192.168.0.131/skyfi/common/get_remote_method

ret=OK,method=polling,notice_ip_int=3600,notice_sync_int=60

Does the componet handle this? Does this help work out what may be happening?

The SkyFi units are using a different protocol than the one implemented in this component.

Supported hardware

Only the European versions of Daikin AC (models BRP069A41, 42, 43, 45).

Please use this custom_component instead: https://github.com/kabongsteve/HomeAssistant/blob/master/climate/skyfi.py

Edit: If you don’t have a configured password and request http://192.168.0.131/ac.cgi what do you get back then? It looks pretty easy to adopt pydaikin to support SkyFi units too.

I’ve created a new thread for Daikin AirBase units. Thank you @Borgy for your extensive testing for the new integration.

Thank YOU! A team effort… Working well so far indeed…

1 Like

removed. Wrong character in my script

1 Like

Does a Daikin device in a location different from the HA location communicate with it?

No, I don’t think so.