Core: Daikin Unexpected error creating device

Created on 7 Apr 2019  路  17Comments  路  Source: home-assistant/core

Home Assistant release with the issue:

Last working Home Assistant release (if known):
Home Assistant Ver. 0.90.0 on Rasp with Noobs

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

Component/platform:
Daikin

Description of problem:

Hello since i have Upgraded from Homeassistant on Noobs to Hass.io i have the Problem that my Daikin can麓t created after second Restart. First it would by find by the Discovery. Second.. it would be came this error

ERROR (MainThread) [homeassistant.components.daikin] Unexpected error creating device

i have remove anything Daikin Config from the Configuration.yaml but no help.

If i remove the entry in the Integration and set it again it work until the restart.

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


Traceback (if applicable):


Additional information:

daikin

All 17 comments

Hey there @fredrike, @rofrantz, mind taking a look at this issue as its been labeled with a integration (daikin) you are listed as a codeowner for? Thanks!

What other components are you using?

Hello

I use anything more than 20 different components, These are cams, climate ( Heating contoller), rf switches, aquara sensor, car lock, Plex media player, Hue lights, FritzBox switches.

I have the same problem, it appeared after upgrade to 0.91.1 Please see the extract from home-assistant.log

$ grep daikin home-assistant.log
2019-04-07 13:29:17 INFO (MainThread) [homeassistant.setup] Setting up daikin
2019-04-07 13:29:17 INFO (MainThread) [homeassistant.setup] Setup of domain daikin took 0.0 seconds.
2019-04-07 13:29:26 ERROR (MainThread) [homeassistant.components.daikin] Unexpected error creating device
2019-04-07 13:30:44 INFO (MainThread) [homeassistant.components.daikin.config_flow] Discovered device: {'id': 'xxxxxxxxxxxx', 'name': 'Serverrum', 'ip': '192.168.0.xx', 'mac': 'xxxxxxxxxxxx', 'ver': '1_2_51'}

The climate device and related sensors are not created.

When I remove the entry from the Integrations menu and add it again, everything works fine. After a restart of Homeassistant the errors above reappear.

I think I have located the issue and it is related to
https://github.com/home-assistant/home-assistant/issues/22706#issuecomment-480362255 where some other component closes the socket.

The #22880 should fix the issue as it retries when connection fails.

@fredrike
Still same symptoms. At 20:36 I deleted the integration and added it again.

$ grep daikin home-assistant.log
2019-04-08 20:29:29 INFO (SyncWorker_2) [homeassistant.util.package] Attempting install of pydaikin==1.4.0
2019-04-08 20:29:39 INFO (MainThread) [homeassistant.setup] Setting up daikin
2019-04-08 20:29:39 INFO (MainThread) [homeassistant.setup] Setup of domain daikin took 0.0 seconds.
2019-04-08 20:29:44 WARNING (MainThread) [pydaikin.appliance] ServerDisconnectedError 3
2019-04-08 20:29:49 WARNING (MainThread) [pydaikin.appliance] ServerDisconnectedError 2
2019-04-08 20:29:50 ERROR (MainThread) [homeassistant.components.daikin] Connection to Daikin timeout
2019-04-08 20:30:30 INFO (SyncWorker_2) [homeassistant.util.package] Attempting install of pydaikin==1.4.0
2019-04-08 20:30:41 INFO (MainThread) [homeassistant.components.daikin.config_flow] Discovered device: {'id': '409F38D0FF8C', 'name': 'Serverrum', 'ip': '192.168.0.66', 'mac': '409F38D0FF8C', 'ver': '1_2_51'}
2019-04-08 20:36:49 INFO (MainThread) [homeassistant.loader] Loaded daikin.climate from homeassistant.components.daikin.climate
2019-04-08 20:36:49 INFO (MainThread) [homeassistant.components.climate] Setting up climate.daikin
2019-04-08 20:36:49 INFO (MainThread) [homeassistant.loader] Loaded daikin.sensor from homeassistant.components.daikin.sensor
2019-04-08 20:36:49 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.daikin
2019-04-08 20:36:49 INFO (MainThread) [homeassistant.loader] Loaded daikin.switch from homeassistant.components.daikin.switch
2019-04-08 20:36:49 INFO (MainThread) [homeassistant.components.switch] Setting up switch.daikin

Please advice how I can assist with further logging.

@astrandb please contact me on discord (I'm fredrike#1724)

exactly same problem for me, Daikin Stylish.

The problem exist after install Hass.io 0.91.3

exactly same problem for me, Daikin Stylish.

The problem exist after install Hass.io 0.91.3

The fix have been merged but have not reached a release yet. It is not related to Daikin models but how Home Assistant is using shared network connections. I didn't see it as in my set-up the issue didn't exist.

Ok you mean we should wait for a Release where the bug would be fix in the future?

Or is there a better workaround

Ok you mean we should wait for a Release where the bug would be fix in the future?

Or is there a better workaround

You could try to push @pvizeli to release a 0.91.4 version with the fixes from #22880 & #22901

Or you could replace homeassistant/components/daikin/__init__.py with this https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/daikin/__init__.py

It would be great if you could test the latest Pre-release https://github.com/home-assistant/home-assistant/releases/tag/0.92.0b2 and make sure that the issues are resolved before the 0.92 release.

For me it s work perfect on the Beta. No error at reboot

Ok here also!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

moskovskiy82 picture moskovskiy82  路  3Comments

TheZoker picture TheZoker  路  3Comments

arangates picture arangates  路  3Comments

bdraco picture bdraco  路  3Comments

kirichkov picture kirichkov  路  3Comments