Support for Daikin AirBase units

cool! I literally just had my Daikin AirBase unit installed 15 minutes ago, Model BRP13B61.

What do you need to test? Looks like you merged your PR, Great. I will configure it all up as per (https://www.home-assistant.io/components/daikin/?) and let you know. Happy to help out. I will look more into this thread later, I am on hassbian, etc.

Can we add Zone support somehow?

1 Like

ok, I get this straight away:

2019-03-25 10:50:49 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry 192.168.1.125 for daikin
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/config_entries.py", line 303, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/usr/src/app/homeassistant/components/daikin/__init__.py", line 64, in async_setup_entry
    daikin_api = await daikin_api_setup(hass, conf[KEY_HOST])
  File "/usr/src/app/homeassistant/components/daikin/__init__.py", line 102, in daikin_api_setup
    api = DaikinApi(device)
  File "/usr/src/app/homeassistant/components/daikin/__init__.py", line 113, in __init__
    self.name = device.values['name']
KeyError: 'name'

I made this little docker file to add your file:

FROM homeassistant/home-assistant:dev

ADD https://bitbucket.org/fredrik_e/pydaikin/raw/c9e568c57d09aa41b72e995c7cb619675e50cfb0/pydaikin/appliance.py /usr/local/lib/python3.7/site-packages/pydaikin/applicance.py

ran it:

docker build . --tag hass:dev-jw
docker run --rm --name="hass" -it -p 8123:8123 -v "${PWD}/config":/config -e "TZ=Australia/Sydney"  hass:dev-jw

hass config

homeassistant:
  name: Home
  latitude: -38.4244
  longitude: 131.344
  elevation: 0
  unit_system: metric
  time_zone: Australia/Sydney

frontend:

config:

http:

daikin:
  hosts:
    - 192.168.1.125

logger:
  default: debug
  logs:
    urllib3.connectionpool: critical
1 Like

Did you mean Model BRP13B61 or Model BRP15B61

nice pick up, yeah. BRP15B61

I have been watching the logs for my primary/production HASS install, I noticed this as well:

2019-03-25 09:53:54 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry 192.168.1.125 for daikin
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/config_entries.py", line 302, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/daikin/__init__.py", line 64, in async_setup_entry
    daikin_api = await daikin_api_setup(hass, conf[KEY_HOST])
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/daikin/__init__.py", line 100, in daikin_api_setup
    name = device.values['name']
KeyError: 'name'

it is the same error as the dev one I launched, I assume this is a part of the discovery process, etc but I suppose this is the old component code, etc.

Good morning from Europe!

Nice Docker file!

You are not picking up the latest Daikin version from HA for some reason, I will investigate.

Gā€™Date Mate from the Land Downunder. :slight_smile:

Ok, if you need anything let me know. I am on the Discord server with the handle of ā€˜@warā€™ with the same DP and you can find me easily.

1 Like

I found my problem, I can not spell appliance (in the Dockerfile, the target is applicance.py)ā€¦

1 Like

Fredrike,

It was super cool to catch up with you on Discord tonight (your Monday Morning). As discussed lets add zone support!

https://github.com/home-assistant/home-assistant/issues/22376

Thanks

JĆ¼rgen

1 Like

Hi

Am I right in saying that this didnt get picked up in the new 0.90 release? Assume it will make it to 0.91??

Thanks

Yes, thanks to testing by @jurgenweber we now hope that the Airbase code will make the 0.91 release. We also did work out zone support, but as that PR not have been merged yet Iā€™m doubtful that zones will make the 0.91 release. (If you could push the reviewers to merge it the next 12h it might make the 0.91-beta).

2 Likes

you can try it yourself, a Dockerfile:

FROM homeassistant/home-assistant:dev

ADD https://raw.githubusercontent.com/fredrike/home-assistant/airbase-zones/homeassistant/components/daikin/__init__.py /usr/src/app/homeassistant/components/daikin/__init__.py
ADD https://raw.githubusercontent.com/fredrike/home-assistant/airbase-zones/homeassistant/components/daikin/switch.py /usr/src/app/homeassistant/components/daikin/switch.py

hass config:

homeassistant:
  name: Home
  latitude: -36.4244
  longitude: 141.344
  elevation: 0
  unit_system: metric
  time_zone: Australia/Sydney

frontend:

config:

http:

daikin:
  hosts:
    - 192.168.1.125

logger:
  default: debug

commands to run it:

docker build . --tag hass:dev
docker run --rm --name="hass" -it -p 8123:8123 -v "${PWD}/config":/config -e "TZ=Australia/Sydney" hass:dev

access via http://localhost:8123

Thanks

1 Like

I see the code has been released in 0.91 but it does not say it supports AirBase/BRP15B61ā€¦

Thanks for seeing this, Iā€™ll try to merge the two PRs with updated documentationā€¦

Clarification, the 0.91 supports AirBase just as the ā€œoldā€ European version, it is just the documentation page that lacks that information. This pull request updates the documentation.

1 Like

Wow awesome work, thanks!

I am also from Downunder and only yesterday I installed a Daikin Airbase BRP15B61 looking forward to getting it working in HA.

1 Like

Wait until 0.91.1 as it turned out that the 0.91 had a configuration issue for Daikin. The fix is merged and 0.91.1 will probably be out in a couple of hours.

1 Like

Thanks for the heads up saved a lot of effort, so that has it working I can now control it from HA,

After some sleep Iā€™ll try to figure out if my unit supports displaying inside / outside temps.

1 Like

Hey There, Iā€™m downunder as well, just got the BRP15B61 airbase installed, upgraded HA to 91.1, but no luck with Daikin component. ->

2019-04-06 22:59:18 ERROR (MainThread) [homeassistant.components.daikin.config_flow] Unexpected error creating device
Traceback (most recent call last):
File ā€œ/usr/local/lib/python3.7/site-packages/aiohttp/connector.pyā€, line 924, in _wrap_create_connection
await self._loop.create_connection(*args, **kwargs))
File ā€œuvloop/loop.pyxā€, line 1904, in create_connection
File ā€œuvloop/loop.pyxā€, line 1883, in uvloop.loop.Loop.create_connection
OSError: [Errno 113] Host is unreachable

Actually, I just realized I canā€™t even ping the device. It appears on my asus router as 192.168.1.163, but I canā€™t ping it, I just get Host is unreachable, weird. Has anyone else got the BRP15B61 working?

Any help appreciated.

from downunder also! :slight_smile:

@bedo2405 Have not jumped to 91.x yet still working with the pre-implementation code we got working with Fredrike. But working well with the brp15b61ā€¦
whats your HA setup ?
can you do a tracert to the brp15b61? (from HA and from other devices) - Are you in the same subnet etc? what your config yaml configuration?

@Thomas_Brady - our unit does not show the internal/external temps unfortunately - not sure if its our aircond model or something else? debug mode of wall controller does show a few temps are available.

I replaced a cooked skyfi (I have 2) with an airbase about 2 weeks ago and it works well. The only problem is I have to delete, then reload the Daikin from the integration page every time I restart the server - until then the component wonā€™t load and throws an error on the log:

" Unexpected error creating device
10:46 AM components/daikin/init.py (ERROR)"

I have a basic Hassio running on a Pi3 and an ASUS router. I can ping the airbase without problem.

If you canā€™t ping the device maybe try going back to setting up the airbase again (reboot-with me that means aircon off at switchboard). My experience is that setting up the daikin app and a reserved IP on the router was painless. The app does respond slowly from a remote IP - but it is reliableā€¦and if you are at the office it really doesnā€™t matter that it takes a minute to update. Hass is much quicker!