I have had the Matter server installed on Home Assistant (HA) for quite some time now, and I have managed to add 11 Thread devices with some success. Initially, I only had a Nest Hub as a border router. To increase coverage, I added a second Nest Hub and a Skyconnect, all correctly configured within the same Thread network.
However, I often see devices losing connection and becoming unavailable on HA, although they remain available on Google Home. The addition of the two border routers has slightly improved the situation, but it is still not 100% stable.
The devices commissioned is stored in the Add-on, so by removing the add-on the system lost the list and the keys which has been generated for each device.
I recommend to restore the last backup of the add-on, this should give you the devices back. The share the log of the add-on at start-up.
The problem I have is that when update, rebuilding, or doing whatever to the container. The number of matter nodes goes back to 0.
All the entities in HA are still there, but they are unavailable.
After re-adding all matter devices manually, the old entities are still in HA. And I have to delete all those entities manually.
Honestly, I don’t know why that happens for you, it seems that /data is cleared somehow:
This seems to indicating that something deletes /data/chip.json. I’d check where /opt/matter/data is, and if the chip.json is present before the startup.
In general, this is not really Matter related, this is more a container handling/operational issue. Using Home Assistant OS + Matter Server add-on takes away such issues
chip.json has the cryptographic information about the fabric and the individual nodes (e.g. f/1/s/... are the individual nodes operational credentials). The file with the long number <number>.json is the Python Matter Server’s data storage, which also contains all nodes and their attribute. Both need to remain persistent and are necessary for the Matter Server to find and communicate with the devices.
Same probleme here. 2 days before over night, all devices are unavailable:
Startup log:
2024-10-04 20:20:31.904 (MainThread) INFO [matter_server.server.vendor_info] Loading vendor info from storage.
2024-10-04 20:20:31.910 (MainThread) INFO [matter_server.server.vendor_info] Loaded 248 vendors from storage.
2024-10-04 20:20:31.911 (MainThread) INFO [matter_server.server.vendor_info] Fetching the latest vendor info from DCL.
2024-10-04 20:20:32.141 (MainThread) INFO [matter_server.server.vendor_info] Fetched 247 vendors from DCL.
2024-10-04 20:20:32.142 (MainThread) INFO [matter_server.server.vendor_info] Saving vendor info to storage.
2024-10-04 20:20:32.163 (MainThread) INFO [matter_server.server.device_controller] Loaded 12 nodes from stored configuration
2024-10-04 20:20:32.176 (MainThread) INFO [matter_server.server.server] Matter Server successfully initialized.
2024-10-04 20:20:33.347 (MainThread) INFO [matter_server.server.device_controller.mdns] <Node:33> Discovered on mDNS
2024-10-04 20:20:33.348 (MainThread) INFO [matter_server.server.device_controller.mdns] <Node:66> Discovered on mDNS
2024-10-04 20:20:33.348 (MainThread) INFO [matter_server.server.device_controller.mdns] <Node:61> Discovered on mDNS
2024-10-04 20:20:33.349 (MainThread) INFO [matter_server.server.device_controller] <Node:33> Setting-up node...
2024-10-04 20:20:33.349 (MainThread) INFO [matter_server.server.device_controller] <Node:66> Setting-up node...
2024-10-04 20:20:33.349 (MainThread) INFO [matter_server.server.device_controller] <Node:61> Setting-up node...
2024-10-04 20:20:33.357 (MainThread) INFO [matter_server.server.device_controller.mdns] <Node:49> Discovered on mDNS
2024-10-04 20:20:33.357 (MainThread) INFO [matter_server.server.device_controller.mdns] <Node:13> Discovered on mDNS
2024-10-04 20:20:33.357 (MainThread) INFO [matter_server.server.device_controller.mdns] <Node:19> Discovered on mDNS
2024-10-04 20:20:33.358 (MainThread) INFO [matter_server.server.device_controller.mdns] <Node:21> Discovered on mDNS
2024-10-04 20:20:33.360 (MainThread) INFO [matter_server.server.device_controller.mdns] <Node:17> Discovered on mDNS
2024-10-04 20:20:33.360 (MainThread) INFO [matter_server.server.device_controller.mdns] <Node:50> Discovered on mDNS
2024-10-04 20:20:33.361 (MainThread) INFO [matter_server.server.device_controller] <Node:49> Setting-up node...
2024-10-04 20:20:33.362 (MainThread) INFO [matter_server.server.device_controller] <Node:13> Setting-up node...
2024-10-04 20:20:33.383 (Dummy-2) CHIP_ERROR [chip.native.DIS] Re-using pending resolve entry before reply was received.
2024-10-04 20:20:33.561 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:33.564 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:33.568 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:33.573 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:33.576 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:33.582 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:33.587 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:33.593 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:33.597 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:33.600 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:33.603 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:33.606 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:33.610 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:33.613 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:33.616 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:33.620 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:33.625 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:36.628 (MainThread) INFO [matter_server.server.sdk] <Node:33> Attempting to establish CASE session... (attempt 2 of 2)
2024-10-04 20:20:36.629 (MainThread) INFO [matter_server.server.sdk] <Node:66> Attempting to establish CASE session... (attempt 2 of 2)
2024-10-04 20:20:36.629 (MainThread) INFO [matter_server.server.sdk] <Node:61> Attempting to establish CASE session... (attempt 2 of 2)
2024-10-04 20:20:36.629 (MainThread) INFO [matter_server.server.sdk] <Node:49> Attempting to establish CASE session... (attempt 2 of 2)
2024-10-04 20:20:36.630 (MainThread) INFO [matter_server.server.sdk] <Node:13> Attempting to establish CASE session... (attempt 2 of 2)
2024-10-04 20:20:36.648 (Dummy-2) CHIP_ERROR [chip.native.DIS] Re-using pending resolve entry before reply was received.
2024-10-04 20:20:36.833 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:36.837 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:36.840 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:36.843 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:36.846 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:36.849 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:36.852 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:36.855 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:36.858 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:36.861 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:36.864 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:36.867 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:36.870 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:36.871 (MainThread) WARNING [matter_server.server.device_controller] <Node:33> Setup for node failed: Unable to establish CASE session with Node 33
2024-10-04 20:20:36.871 (MainThread) INFO [matter_server.server.device_controller] <Node:33> Retrying node setup in 60 seconds...
2024-10-04 20:20:36.871 (MainThread) WARNING [matter_server.server.device_controller] <Node:66> Setup for node failed: Unable to establish CASE session with Node 66
2024-10-04 20:20:36.872 (MainThread) INFO [matter_server.server.device_controller] <Node:66> Retrying node setup in 60 seconds...
2024-10-04 20:20:36.872 (MainThread) WARNING [matter_server.server.device_controller] <Node:61> Setup for node failed: Unable to establish CASE session with Node 61
2024-10-04 20:20:36.872 (MainThread) INFO [matter_server.server.device_controller] <Node:61> Retrying node setup in 60 seconds...
2024-10-04 20:20:36.872 (MainThread) WARNING [matter_server.server.device_controller] <Node:49> Setup for node failed: Unable to establish CASE session with Node 49
2024-10-04 20:20:36.872 (MainThread) INFO [matter_server.server.device_controller] <Node:49> Retrying node setup in 60 seconds...
2024-10-04 20:20:36.872 (MainThread) WARNING [matter_server.server.device_controller] <Node:13> Setup for node failed: Unable to establish CASE session with Node 13
2024-10-04 20:20:36.873 (MainThread) INFO [matter_server.server.device_controller] <Node:13> Retrying node setup in 60 seconds...
2024-10-04 20:20:36.873 (MainThread) INFO [matter_server.server.device_controller] <Node:19> Setting-up node...
2024-10-04 20:20:36.873 (MainThread) INFO [matter_server.server.device_controller] <Node:21> Setting-up node...
2024-10-04 20:20:36.873 (MainThread) INFO [matter_server.server.device_controller] <Node:17> Setting-up node...
2024-10-04 20:20:36.874 (MainThread) INFO [matter_server.server.device_controller] <Node:50> Setting-up node...
2024-10-04 20:20:37.077 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:37.080 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:37.084 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:37.089 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:40.088 (MainThread) INFO [matter_server.server.sdk] <Node:19> Attempting to establish CASE session... (attempt 2 of 2)
2024-10-04 20:20:40.089 (MainThread) INFO [matter_server.server.sdk] <Node:21> Attempting to establish CASE session... (attempt 2 of 2)
2024-10-04 20:20:40.090 (MainThread) INFO [matter_server.server.sdk] <Node:17> Attempting to establish CASE session... (attempt 2 of 2)
2024-10-04 20:20:40.097 (MainThread) INFO [matter_server.server.sdk] <Node:50> Attempting to establish CASE session... (attempt 2 of 2)
2024-10-04 20:20:40.295 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:40.298 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:40.302 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:40.305 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:40.309 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:40.312 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:40.315 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:40.318 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:40.322 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:40.325 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:40.328 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:40.332 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:40.336 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/app/OperationalSessionSetup.cpp:246
2024-10-04 20:20:40.336 (MainThread) WARNING [matter_server.server.device_controller] <Node:19> Setup for node failed: Unable to establish CASE session with Node 19
2024-10-04 20:20:40.337 (MainThread) INFO [matter_server.server.device_controller] <Node:19> Retrying node setup in 60 seconds...
2024-10-04 20:20:40.337 (MainThread) WARNING [matter_server.server.device_controller] <Node:21> Setup for node failed: Unable to establish CASE session with Node 21
2024-10-04 20:20:40.337 (MainThread) INFO [matter_server.server.device_controller] <Node:21> Retrying node setup in 60 seconds...
2024-10-04 20:20:40.337 (MainThread) WARNING [matter_server.server.device_controller] <Node:17> Setup for node failed: Unable to establish CASE session with Node 17
2024-10-04 20:20:40.337 (MainThread) INFO [matter_server.server.device_controller] <Node:17> Retrying node setup in 60 seconds...
2024-10-04 20:20:40.337 (MainThread) WARNING [matter_server.server.device_controller] <Node:50> Setup for node failed: Unable to establish CASE session with Node 50
2024-10-04 20:20:40.338 (MainThread) INFO [matter_server.server.device_controller] <Node:50> Retrying node setup in 60 seconds...