home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.15k stars 29.83k forks source link

Daikin AC module with Hardware BRP069B41 doesn't work #18563

Closed jonaspaulo closed 5 years ago

jonaspaulo commented 5 years ago

Home Assistant release with the issue:

Home Assistant 0.81.4

Last working Home Assistant release (if known):

Operating environment (Hass.io/Docker/Windows/etc.):

Docker on Synology NAS

Component/platform:

Daikin AC

Description of problem: I have the Daikin AC Bxx module instead of Axx (BRP069B41) and with the following config:

daikin:
hosts:
- 192.168.1.133

It doesn’t start:

2018-11-17 18:26:45 ERROR (MainThread) [homeassistant.setup] Error during setup of component daikin
Traceback (most recent call last):
  File “/usr/src/app/homeassistant/setup.py”, line 148, in _async_setup_component
    component.setup, hass, processed_config) # type: ignore
  File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File “/usr/src/app/homeassistant/components/daikin.py”, line 82, in setup
    if daikin_api_setup(hass, host) is None:
  File “/usr/src/app/homeassistant/components/daikin.py”, line 105, in daikin_api_setup
    device = appliance.Appliance(host)
  File “/usr/local/lib/python3.6/site-packages/pydaikin/appliance.py”, line 110, in init
    self.values.update(self.get_resource(resource))
  File “/usr/local/lib/python3.6/site-packages/pydaikin/appliance.py”, line 115, in get_resource
    return self.parse_response(r.text)
  File “/usr/local/lib/python3.6/site-packages/pydaikin/entity.py”, line 28, in parse_response
    raise ValueError(“non-OK return on response”)
ValueError: non-OK return on response

2018-11-17 18:27:05 ERROR (MainThread) [homeassistant.core] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
  File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File “/usr/src/app/homeassistant/components/daikin.py”, line 72, in discovery_dispatch
    if daikin_api_setup(hass, host) is None:
  File “/usr/src/app/homeassistant/components/daikin.py”, line 105, in daikin_api_setup
    device = appliance.Appliance(host)
  File “/usr/local/lib/python3.6/site-packages/pydaikin/appliance.py”, line 110, in init
    self.values.update(self.get_resource(resource))
  File “/usr/local/lib/python3.6/site-packages/pydaikin/appliance.py”, line 115, in get_resource
    return self.parse_response(r.text)
  File “/usr/local/lib/python3.6/site-packages/pydaikin/entity.py”, line 28, in parse_response
    raise ValueError(“non-OK return on response”)
ValueError: non-OK return on response

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

daikin:
  hosts:
      - 192.168.1.133

Traceback (if applicable):

Additional information:

fredrike commented 5 years ago

I have a fix for this in pydaikin, will update HA soon..