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
73.73k stars 30.85k forks source link

Daikin integration fills log with errors when device powered off #125752

Open dabbler68 opened 2 months ago

dabbler68 commented 2 months ago

The problem

Today I turned off my Daikin at the switchboard breaker. I noted that the logfile gets swamped with errors .... "Exception in TaskGroup: Cannot connect to host" mostly every 83 seconds (odd timing). I would like to be able to turn off the AC breaker at any time without getting all these error messages.

I use the BRP15B61 wifi adapter attached to FDYAN125AV1.

Even at the basic Silver level for integrations the Quality Scale says the log should not fill with retries: "This integration is able to cope when things go wrong. It will not print any exceptions nor will it fill the log with retry attempts. Also, it will show you if a device is offline or not ready when you start Home Assistant. "

Update: I had a similar error in the past. It may have been from when I had the system installed in March 2023. I had the following filter in my config file (apparently no longer required) . '# Daikin floods warnings every minute if switched off' homeassistant.components.daikin:

What version of Home Assistant Core has the issue?

2024.8.3

What was the last working version of Home Assistant Core?

I am not aware if this problem occurred in previous versions

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?

2024-09-11 22:38:20.803 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: Cannot connect to host 192.168.1.65:80 ssl:default [Connect call failed ('192.168.1.65', 80)]
2024-09-11 22:39:44.323 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: Cannot connect to host 192.168.1.65:80 ssl:default [Connect call failed ('192.168.1.65', 80)]
2024-09-11 22:41:07.715 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: Cannot connect to host 192.168.1.65:80 ssl:default [Connect call failed ('192.168.1.65', 80)]
2024-09-11 22:42:30.915 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: Cannot connect to host 192.168.1.65:80 ssl:default [Connect call failed ('192.168.1.65', 80)]

(keeps going)

Additional information

No response

home-assistant[bot] commented 2 months 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)

fredrike commented 2 months ago

@joostlek sorry to tag you on this. What is the best approach to handle this should we lower logging level?

joostlek commented 2 months ago

I think I might have solved this when going to a coordinator