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.16k stars 29.84k forks source link

Matter Server often needs multiple reboots of Home Assistant OS to find matter devices #124570

Closed kersten-lohmeyer closed 1 week ago

kersten-lohmeyer commented 3 weeks ago

The problem

Matter Server often needs multiple (sometimes up to 10) reboots of Home Assistant OS (complete machine) to find matter devices that suddenly become unavailable in HA. Just restarting the Matter Server Addon never helps.

After the reboot sometimes only 1 of 2 devices comes back online. I usually wait for 10mins or so. Most of the time none comes back online. And if I'm lucky all come back online.

What version of Home Assistant Core has the issue?

core-2024.8.3

What was the last working version of Home Assistant Core?

Never worked reliably

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Matter

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2024-08-25 21:45:46.076 (Dummy-2) CHIP_ERROR [chip.native.EM] Failed to Send CHIP MessageCounter:198756196 on exchange 40483i with Node: <0000000000000000, 0> sendCount: 4 max retries: 4
2024-08-25 21:46:12.635 (Dummy-2) CHIP_ERROR [chip.native.SC] CASESession timed out while waiting for a response from the peer. Current state was 1
2024-08-25 21:46:27.885 (Dummy-2) CHIP_ERROR [chip.native.SC] CASESession timed out while waiting for a response from the peer. Current state was 3
2024-08-25 21:46:32.216 (Dummy-2) CHIP_ERROR [chip.native.EM] Failed to Send CHIP MessageCounter:198756202 on exchange 40484i with Node: <0000000000000000, 0> sendCount: 4 max retries: 4
2024-08-25 21:46:57.751 (Dummy-2) CHIP_ERROR [chip.native.EM] Failed to Send CHIP MessageCounter:198756208 on exchange 40485i with Node: <0000000000000000, 0> sendCount: 4 max retries: 4

Additional information

I'm using a SkyConnect stick and have 2 HomePod minis as other border routers. I currently only have 2 Matter devices, an Aqara U200 smartlock and a Tado Thermostat X. In Apple Home these devices always stay there rock solid btw.

home-assistant[bot] commented 3 weeks ago

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

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


matter documentation matter source (message by IssueLinks)

marcelveldt commented 2 weeks ago

Try temporary shutting down the OTBR so all thread traffic routed through the homepods. Also it may help to restart the homepods one by one. What you can clearly see in your logs is that the Matter controller has connectivity issues reaching your devices so somehow there is something going on at the network level.

marcelveldt commented 1 week ago

We have identified a global/common issue - we are tracking it here: https://github.com/home-assistant/core/issues/123835 Please follow that ticket for state updates. Thanks!