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 component can't connect to WiFi adapter #19751

Closed AndreasFridh closed 5 years ago

AndreasFridh commented 5 years ago

Home Assistant release with the issue:

0.84.6

Last working Home Assistant release (if known):

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

Hassio 0.84.6 rPI 2

Component/platform:

https://www.home-assistant.io/components/daikin/

Description of problem:

Daikin HVAC unit with wifi dongle is not working in home assistant, the device is not showing up under the climate domain.

WiFI adapter on HVAC: BRP069A41, remote connection is activated, the GET commands directly to the IP is reporting values. Daikin WiFi Firmware: 1.2.51

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

daikin:
  hosts:
    - 192.168.1.xx
  monitored_conditions:
    - inside_temperature
    - outside_temperature

Traceback (if applicable):

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 248, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 349, in async_device_update
    await self.hass.async_add_executor_job(self.update)
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/sensor/daikin.py", line 125, in update
    self._api.update()
  File "/usr/local/lib/python3.6/site-packages/homeassistant/util/__init__.py", line 324, in wrapper
    result = method(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/daikin.py", line 130, in update
    self.device.update_status()
  File "/usr/local/lib/python3.6/site-packages/pydaikin/appliance.py", line 150, in update_status
    self.values.update(self.get_resource(resource))
  File "/usr/local/lib/python3.6/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.6/site-packages/requests/sessions.py", line 546, in get
    return self.request('GET', url, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/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',))

Additional information: Tested with discovery, not working. Tested the other Daikin component, not working either. I have the european model, so this should be the right component for my units by the documentation.

fatuuse commented 5 years ago

My Daikin loses connection after restart of HASS. I need to remove it in the integration and add it again. The it works. In the log after restart, log says: Connection to Daikin could not be established

Version 0.87.1

thejeffreystone commented 5 years ago

There appears to be a Daikin PR that has ben merged into dev to Async support - perhaps that will resolve the issue? https://github.com/home-assistant/home-assistant/pull/21638

I would say try updating to 0.90 and seeing if it is still an issue, but I am not seeing any other recent changes to the Daiken component.

azazul1980 commented 5 years ago

Same fail with Hass.io 0.91.0 after restart the connection is broken. Only add over Integration Workflow is working :./

boggiano commented 5 years ago

Same here. I have two units: they are the same and the have the same firmware. Without discovery only one works and I get for the second one:

Connection to Daikin could not be established

In the discovery page I see an empty entry (only IP is filled): if I remove it and recreate, they both work until the next restart of hassbian.

Everything was working before the update 0.89 -> 0.91.3

EDIT: Just tried pydaikin.py Everything is working and I can see both devices as expected

stale[bot] commented 5 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.