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.91k stars 30.98k forks source link

Home connect: device status hangs if internet drops while appliance is running #122734

Open xenia-09A opened 3 months ago

xenia-09A commented 3 months ago

The problem

When the internet has issues (isp maintenance ) and appliance is running HA looses track with cloud api and appliance status and hangs … only a reload correct this to correctly show status of appliance in HA, can recovery be improved? I am looking at second internet circuit but other may not have this option

What version of Home Assistant Core has the issue?

2024.7.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Home connect

Link to integration documentation on our website

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

Diagnostics information

Logger: homeconnect.sseclient Source: /usr/local/lib/python3.12/site-packages/homeconnect/sseclient.py:89 First occurred: July 21, 2024 at 4:22:16 AM (27 occurrences) Last logged: 12:48:19 AM

The appliance was running at 12:48 AM and hung as advised thanks

My router shows over down at 12:48 so only issue is if internet drops while appliance is running as advised

Example YAML snippet

N/A

Anything in the logs that might be useful for us?


Exception while reading event:
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/homeconnect/sseclient.py", line 81, in __next__
    next_chunk = next(self.resp_iterator)
                 ^^^^^^^^^^^^^^^^^^^^^^^^
StopIteration

During handling of the above exception, another exception occurred:

Additional information

isp acting up causing integration to not recover :)

File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 826, in generate raise ConnectionError(e) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.home-connect.com', port=443): Read timed out

home-assistant[bot] commented 3 months ago

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

Code owner commands Code owners of `home_connect` 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 home_connect` 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)


home_connect documentation home_connect source (message by IssueLinks)

xenia-09A commented 3 months ago

Hi this integration has been solid ,for weeks let me know how I can help bc I had to reload it twice today it seems it not recovering well for any communication issue

stapldm commented 3 months ago

Other than the dishwasher's crap wifi reception requiring its own nearby personal hotspot which it also sometimes can't find, mine has been working solidly with this integration for months (thankyou!), however overnight the dishwasher received an "urgent update" and had the code "suc" on the display this morning (suc means Software Update Complete for those who don't know.) Now HA reboot gets stuck Initialising the Home Connect integration so I had to disable it to allow a clean reboot without a permanent "Home Assistant is starting, not everything will be available until Home Connect integrated has loaded" or similar footer.

I have signed into Home Connect developer site and confirmed the api security keys are still good, and the android home connect app confirms the security keys are valid and active. Core 2024.8.0 Supervisor 2024.08.0 Operating System 12.4 Frontend 20240806.1

Dishwasher 5.4-3.11.4.1 (5.0)

Mentioned here just in case it was a factor in the above issue; it may of course be different. I can put the above into a new ticket if you feel it's not connected.

issue-triage-workflows[bot] commented 2 weeks 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 has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

GSzabados commented 1 week ago

I can see exactly the same issue, and a failover internet does not help on it. I cannot fully comment that does the integration recovers or not.

@Diegorro98, I see regularly the same error message:

Logger: homeconnect.sseclient
Source: /usr/local/lib/python3.12/site-packages/homeconnect/sseclient.py:90
First occurred: 14 November 2024 at 19:55:38 (1 occurrences)
Last logged: 14 November 2024 at 19:55:38

Exception while reading event:
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/homeconnect/sseclient.py", line 82, in __next__
    next_chunk = next(self.resp_iterator)
                 ^^^^^^^^^^^^^^^^^^^^^^^^
StopIteration