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 Integration not working under 2024.8.0 #123416

Closed RonFac closed 1 month ago

RonFac commented 1 month ago

The problem

After upgrading to 2024.8.0, my Daikin HVAC integration would not start. Regressing to the previous version 2024.7.4 has temporarily fixed the problem

What version of Home Assistant Core has the issue?

2024.8.0

What was the last working version of Home Assistant Core?

2024.7.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

daikin

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/daikin/init.py", line 49, in async_setup_entry daikin_api = await daikin_api_setup( ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/daikin/init.py", line 88, in daikin_api_setup device: Appliance = await DaikinFactory( ^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pydaikin/factory.py", line 26, in new await instance.init(*a, **kw) File "/usr/local/lib/python3.12/site-packages/pydaikin/factory.py", line 61, in init await self._generated_object.init() File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_skyfi.py", line 64, in init await self.update_status(self.HTTP_RESOURCES) File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_base.py", line 179, in update_status self.values.update_by_resource(resource, task.result())

Additional information

From the full changelog for 2024.8.0 : "Bump pydaikin to 2.13.1 (@kingy444 - #118679)"

jahmai commented 1 month ago

I also experienced the Daikin integration failing under 2024.8.0, but 2024.7.4 works for me.

albkk commented 1 month ago

Same here. Had to go back to my backup before update to 2024.8

bluemonkeysuit07 commented 1 month ago

+1 same issue since the upgrade

home-assistant[bot] commented 1 month ago

Hey there @fredrike, mind taking a look at this issue as it has been labeled with an integration (daikin) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `daikin` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign daikin` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


daikin documentation daikin source (message by IssueLinks)

hdcoffeeboy commented 1 month ago

Same here: [SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:1000)]

danieljowitsch commented 1 month ago

+1 after HA core update to 2024.08

jax79sg commented 1 month ago

Same here.

Failed setup, will retry: Cannot connect to host 192.168.50.202:443 ssl:default [[SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:1000)]

ZuluPilgrim commented 1 month ago

Same here, any ideas for a work around or fix? Family not happy they need to use a remote now :)

jahmai commented 1 month ago

I used the ssh command hc core update --version 2024.7.4 via this plugin: https://github.com/hassio-addons/addon-ssh No warranty at your own risk etc.

fredrike commented 1 month ago

I've pushed a new version of the underlaying library (https://github.com/fredrike/pydaikin/pull/13) and I think @mattyway is on the way to fix this on the HA side too.

fredrike commented 1 month ago

Duplicate of: https://github.com/home-assistant/core/issues/123160

fredrike commented 1 month ago

@home-assistant close

RonFac commented 1 month ago

My unit is a BRP15A61, requiring a password for authentication. It is still failing even under 2024.8.1


From: Fredrik Erlandsson @.> Sent: Saturday, 10 August 2024 6:29 PM To: home-assistant/core @.> Cc: RonFac @.>; Author @.> Subject: Re: [home-assistant/core] Daikin Integration not working under 2024.8.0 (Issue #123416)

@home-assistanthttps://github.com/home-assistant close

— Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/core/issues/123416#issuecomment-2280301712, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A543C4OEYG2DIMTSTMZAZB3ZQXFNBAVCNFSM6AAAAABMHQP3COVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBQGMYDCNZRGI. You are receiving this because you authored the thread.Message ID: @.***>

RonFac commented 1 month ago

https://github.com/home-assistant open

kingy444 commented 1 month ago

@RonFac can you confirm the errors are still the same in 2024.8.1

iKyosh commented 1 month ago

@RonFac can you confirm the errors are still the same in 2024.8.1

got the issue in 2024.8.1. It was not present in 2024.8.0 on my side.

RonFac commented 1 month ago

Yes

Errors reported:

2024-08-11 08:43:58.734 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: 'DaikinSkyFi' object has no attribute 'headers' 2024-08-11 08:43:58.737 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: 'DaikinSkyFi' object has no attribute 'headers' 2024-08-11 08:43:58.737 ERROR (MainThread) [homeassistant.components.daikin] Unexpected error creating device 192.168.1.137


From: iKyosh @.> Sent: Sunday, 11 August 2024 9:54 AM To: home-assistant/core @.> Cc: RonFac @.>; Mention @.> Subject: Re: [home-assistant/core] Daikin Integration not working under 2024.8.0 (Issue #123416)

@RonFachttps://github.com/RonFac can you confirm the errors are still the same in 2024.8.1

got the issue in 2024.8.1. It was not present in 2024.8.0 on my side.

— Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/core/issues/123416#issuecomment-2282317332, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A543C4LZ5HEPIOTQWNH7WLDZQ2R2PAVCNFSM6AAAAABMHQP3COVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBSGMYTOMZTGI. You are receiving this because you were mentioned.Message ID: @.***>

RonFac commented 1 month ago

Yes, confirmed errors are still the same

Copy of what's in the logs:

2024-08-11 08:43:58.734 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: 'DaikinSkyFi' object has no attribute 'headers' 2024-08-11 08:43:58.737 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: 'DaikinSkyFi' object has no attribute 'headers' 2024-08-11 08:43:58.737 ERROR (MainThread) [homeassistant.components.daikin] Unexpected error creating device 192.168.1.137


From: kingy444 @.> Sent: Sunday, 11 August 2024 9:06 AM To: home-assistant/core @.> Cc: RonFac @.>; Mention @.> Subject: Re: [home-assistant/core] Daikin Integration not working under 2024.8.0 (Issue #123416)

@RonFachttps://github.com/RonFac can you confirm the errors are still the same in 2024.8.1

— Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/core/issues/123416#issuecomment-2282307511, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A543C4K74NKROHX4QGNKA2DZQ2MHNAVCNFSM6AAAAABMHQP3COVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBSGMYDONJRGE. You are receiving this because you were mentioned.Message ID: @.***>

kingy444 commented 1 month ago

Thanks - those are different errors though.

These were raised as a result of the initial fix to the SSL error (the fix for the SSL issue broke the controller other versions)

jahmai commented 1 month ago

@RonFac Would you mind creating a new issue for that one? I have a Daikin that needs a password too but I am reticent to try updating based on your report.

RonFac commented 1 month ago

Thanks - those are different errors though.

These were raised as a result of the initial fix to the SSL error (the fix for the SSL issue broke the controller other versions)

That may well be the case, but the original issue raised in the closed ticket is still unresolved. Is there any diagnostic information that you can point me to that would be of assistance ?

RonFac commented 1 month ago

@RonFac Would you mind creating a new issue for that one? I have a Daikin that needs a password too but I am reticent to try updating based on your report.

Stay on your current version. The one that still works for me is 2024.07.04. If you have upgraded and want to regress back to that version, open a terminal window (SSH) and type : HA core update --version 2024.07.04