Daikin Component - no climate entities created - task exception

Hi There,

Just upgraded to 0.61 on hass.io with a Raspberry PI3.

I’m using BRP072A42 adapters but can’t get things to work.

If i use the configuration based on the main component https://home-assistant.io/components/daikin/ i get sensor entities created for inside and outside temperature for each host defined but don’t get any climate entities.

If i add configuration based on the client component “climate.daikin” I get errors during startup related to “KeyError: ‘f_rate’” and get no climate entities created, errors below.

Any ideas…

2018-01-17 13:42:42 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/lib/python3.6/asyncio/tasks.py”, line 180, in _step
result = coro.send(None)
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py”, line 399, in async_process_entity
new_entity, self, update_before_add=update_before_add
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py”, line 247, in async_add_entity
yield from entity.async_update_ha_state()
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py”, line 217, in async_update_ha_state
attr = self.state_attributes or {}
File “/usr/lib/python3.6/site-packages/homeassistant/components/climate/init.py”, line 521, in state_attributes
fan_mode = self.current_fan_mode
File “/usr/lib/python3.6/site-packages/homeassistant/components/climate/daikin.py”, line 229, in current_fan_mode
return self.get(ATTR_FAN_MODE)
File “/usr/lib/python3.6/site-packages/homeassistant/components/climate/daikin.py”, line 120, in get
value = self._api.device.represent(‘f_rate’)[1].title()
File “/usr/lib/python3.6/site-packages/pydaikin/appliance.py”, line 145, in represent
v = self.values[key]
KeyError: ‘f_rate’

1 Like

Same error, same result . Same br adaptor for me as well

Hass.io 61.1
I don’t have any error in logs. But the daikin climate ui does not show up anymore
I do see two new sensors

  • sensor.inside_temperature_house_inside_temperature
  • sensor.outside_temperature_house_outside_temperature

I’ve been using the @rofrantz component up to now and it was working perfectly
Note: I have discovery turned off, if that can be of any help

Just to be sure. Before, with the @rofrantz custom component, I had it configured like

climate:
  - platform: daikin
    host: x.x.x.x

while now, I should use

daikin:
  hosts:
    - x.x.x.x

is that right?

Not yet because netdisco (autodiscovery) component was not upgraded yet I think.
I havent tried it yet but let me know if it works or not

i’m not sure what you mean.
if you mean discovery, i have disabled it. I can enable it and check.
if you mean the whole component, no it’s not working. I see the two new sensor but not the climate component

I’ll try to check the main component this weekend since as u were saying it was working. They’ve probably changed smth with the latest release.

I’ll try to add also discovery since they’ve merged my fix for network discovery so u don’t need to specify the host anymore @ekt.

tl;dr: plugin is ok. was just naming.

I think I found the problem. Basically I’m still ignorant in ha, I should have checked.
In your initial implementation, the default entity name was ‘daikin’. To show it, in my group I had:

my_group:
  view: no
  entities:
   - climate.daikin
   - sensor.daikin_outdoor

now the entity is being automatically named ‘climate.hallway’ where ‘hallway’ is the name I gave to that split in the daikin android app. I should have checked the ‘States’ page first

All this happens because I didn’t set a ‘name’ entry in the climate definition.

Last thing: I think the current implementation is better, because it avoids issues in cases when one has more then one device.

Thanks a lot for you work, by the way

@brettjonesoz,

Did you ever get this to work with the BRP072A42?

I am considering ordering one of these adapters for the unit in my office if it works.

Thanks!

Dan

Nope still have the problem. looks like i have a different problem to @ekt as i’m getting a task exception on startup related to the climate component. Sensor is working as needed, I suspect some sort of packaging issue where not all of @rofrantz changes got incorporated…

@brettjonesoz it seems u don’t have the f_rate (fan speed) info from daikin. Can u tell me what http://[YOUR_DAIKIN_IP]/aircon/get_control_info output is ?

@ekt I didn’t really understood from ur last response if everything’s ok for you or not after that naming issue u discovered in ur config. Can u please let me know ?
Thanks everyone for ur feedback

@rofrantz yes is ok. everything works great.

Get_control_info
ret=OK,pow=0,mode=3,adv=,stemp=24.0,shum=0,dt1=25.0,dt2=M,dt3=24.0,dt4=25.0,dt5=25.0,dt7=25.0,dh1=AUTO,dh2=50,dh3=0,dh4=0,dh5=0,dh7=AUTO,dhh=50,b_mode=3,b_stemp=24.0,b_shum=0,alert=255

Indeed @peterho its way I was expecting u guys don’t have f_rate ( fan speed control) that we all have on our BRP models and i’ve tested on two models so far.
This is what I have:

ret=OK,pow=0,mode=2,adv=,stemp=M,shum=0,dt1=25.0,dt2=M,dt3=25.0,dt4=25.0,dt5=25.0,dt7=25.0,dh1=AUTO,dh2=0,dh3=0,dh4=0,dh5=0,dh7=AUTO,dhh=50,b_mode=2,b_stemp=M,b_shum=0,alert=255,f_rate=5,f_dir=2,b_f_rate=5,b_f_dir=2,dfr1=5,dfr2=5,dfr3=5,dfr4=5,dfr5=5,dfr6=5,dfr7=5,dfrh=5,dfd1=0,dfd2=2,dfd3=0,dfd4=0,dfd5=0,dfd6=0,dfd7=0,dfdh=0

Can u however help me understand ur device by answering a couple of questions:

  1. is it an air conditioning device, if yes what model ?
  2. can u control the fan speed from ur remote control ?
  3. can u control the fan speed from ur android or ios device or simply doesn’t support it ?

@rofrantz
‘/common/basic_info’ answer contains a ‘ver’ entry. just to be sure the firmware version
I’d also try: /aircon/get_model_info

Get_model_info returns the following
ret=OK,model=NOTSUPPORT,type=N,pv=0,cpv=0,mid=NA,s_fdir=0,en_scdltmr=1

Basic_info returns the following (I redacted /removed a couple of values for anonymity in inverted commas)
ret=OK,type=aircon,reg=th,dst=1,ver=2_9_0,pow=0,err=0,location=0,name=%64%61%69%6b%69%6e,icon=6,method=polling,port=30050,id=“redacted”,pw=“redacted”,lpw_flag=0,adp_kind=2,pv=0,cpv=0,cpv_minor=00,led=1,en_setzone=1,mac=A408EAD48ECA,adp_mode=run,en_hol=0,grp_name=,en_grp=0

Its great @peterho but can u please answer to the 3 questions I’ve asked before providing info that I didnt asked yet ?

  1. is it an air conditioning device, if yes what model ?
  2. can u control the fan speed from ur remote control ?
  3. can u control the fan speed from ur android or ios device or simply doesn’t support it ?
  1. Model airco head unit fdxs60cvma.
    Wi-Fi card model brp072a42 connected to s21 port on head unit airco board
  2. Fan speed. On the airco remote you have option of normal, powerful (high) or home leave (low). There is also on the slide out covered portion a fan speed button. Cycling through fan speed has the following. A (auto), eco, then 1 through 5. There is also a separate button for quiet. (I’ll attach photo in next post of remote)
  3. On android app version d-mobile those fan options are not available. Basically
    on / off.
    Temperature set
    Temperature current inside and outside.
    Then modes of auto cool heat fan or dry (screenshot attached)

Remote control photo attached