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.98k stars 31.02k forks source link

Matter - Eve Energy cannot add in HA - Network is unreachable #129588

Open vinid223 opened 3 weeks ago

vinid223 commented 3 weeks ago

The problem

I am trying to add a Eve Energy smart plug in HA using the Matter integration but it is not working.

The device works perfectly fine using Matter in Apple HomeKit. I can enable pairing mode but when adding an existing device or even if I factory reset the device and add it directly into HA, I get an error.

I've checked every aspect of my router configuration as mentioned in couple of forum posts. Did many trial and error by disabling/enabling anything related to QoS, OneMesh, Multicast.

IPv6 is working fine, I can ping from the container other IPv6 devices outside of the host.

I'm not sure what I can do more, maybe something on my side and/or an issue with HA and Matter.

It's a brand new install, my other light switch imported without hassle.

What version of Home Assistant Core has the issue?

core-2024.10.4

What was the last working version of Home Assistant Core?

core-2024.10.4

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Matter - Eve Energy

Link to integration documentation on our website

https://www.home-assistant.io/integrations/matter/#to-add-a-new-device-using-the-ios-companion-app

Diagnostics information

config_entry-matter-01JB9RTG0XMT6N2E60G81QQVF9.json

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Matter-Server (docker) error logs

2024-10-31 12:24:14.305 (MainThread) INFO [matter_server.server.device_controller] Starting Matter commissioning with code using Node ID 36.
2024-10-31 12:24:14.359 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/controller/SetUpCodePairer.cpp:280
2024-10-31 12:24:44.324 (Dummy-2) CHIP_ERROR [chip.native.CTL] Discovery timed out
2024-10-31 12:24:44.324 (Dummy-2) CHIP_ERROR [chip.native.ZCL] Secure Pairing Failed
2024-10-31 12:24:44.324 (Dummy-2) WARNING [chip.ChipDeviceCtrl] Failed to establish secure session to device: src/controller/python/ChipDeviceController-ScriptDevicePairingDelegate.cpp:89: CHIP Error 0x00000003: Incorrect state
2024-10-31 12:24:44.325 (MainThread) ERROR [matter_server.server.client_handler] [22555417030288] Error while handling: commission_with_code: Commission with code failed for node 36.

Additional information

No response

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)

petritz commented 3 weeks ago

Hi, I struggle with the exact same issue (same device, same error log)!

hardl1 commented 3 weeks ago

Auch bei mir, gleiches Gerät, gleiche FW, Apple HomePod mini als Border Router. Allerdings liefen 10 Matter Geräte schon wochenlang auf Home und HA. Jetzt habe ich fast zeitgleich Core-2024.10.4 und einen neuen Router installiert, aber die Daten des Routers per Backup übernommen. Auf der Matter Benutzeroberfläche waren alle Nodes offline. Nachdem alle Versuche keine Änderung gebracht haben, löschte ich alle Nodes, dann die Matter und Thread Integration und habe beide neu installiert. Die Matter Geräte können problemlos zu Homekit hinzugefügt werden, aber das Koppeln schlägt immer fehl. Auch kann ich die Matter/Thread-Geräte nach einem Werksreset nicht direkt zu HA hinzufügen.

jjlauer commented 1 week ago

Same for me, Home Assistant matter integration v6.6.0 is completely broken. All my nodes are down, I try to pair something new and get the same result as above. How is adding a simple light switch in Home Assistant so broken?

Angel-HH commented 1 week ago

Same issue on my end. To add a new device in HomeKit works fine. I'm using Apple TV as Border Router.

hardl1 commented 1 week ago

Ich habe jetzt Tage nach einer Lösung gesucht, ohne Erfolg. Das Zurücksetzen auf September-Versionen von Core oder Matter hat nichts gebracht. Löschen und Neuinstallation von Matter- und Thread-Integration auch nicht. Es gibt nur ein WLAN. Apple HomePod Mini ist der einzige Border Router.

Eve Energy Thread/Matter lassen sich problmlos zu Home hinzufügen, aber nicht Koppeln. Auch nach Werk-Reset nicht direkt zu HA. Der Fehler ist immer der Gleiche: 2024-11-13 16:42:27.226 (MainThread) INFO [matter_server.server.device_controller] Starting Matter commissioning with code using Node ID 5. 2024-11-13 16:42:27.419 (Dummy-2) CHIP_ERROR [chip.native.-] src/inet/UDPEndPointImplSockets.cpp:416: OS Error 0x02000065: Network is unreachable at src/controller/SetUpCodePairer.cpp:280 2024-11-13 16:42:57.269 (Dummy-2) CHIP_ERROR [chip.native.CTL] Discovery timed out 2024-11-13 16:42:57.270 (Dummy-2) CHIP_ERROR [chip.native.ZCL] Secure Pairing Failed 2024-11-13 16:42:57.272 (Dummy-2) WARNING [chip.ChipDeviceCtrl] Failed to establish secure session to device: src/controller/python/ChipDeviceController-ScriptDevicePairingDelegate.cpp:89: CHIP Error 0x00000003: Incorrect state 2024-11-13 16:42:57.274 (MainThread) ERROR [matter_server.server.client_handler] [140253318365904] Error while handling: commission_with_code: Commission with code failed for node 5.

Angel-HH commented 1 week ago

@hardl1 wodrauf läuft dein HA? Bei mir ist es eine QNAP und dort als Container Station Das hier kling auch nach unserem Problem: https://community.home-assistant.io/t/cannot-add-thread-over-matter-device-from-homekit-to-ha/782229/4

hardl1 commented 1 week ago

@Angel-HHBei mir auch eine QNAP, aber in einer VMAm 13.11.2024 um 21:31 schrieb Angel-HH @.***>: @hardl1 wodrauf läuft dein HA? Bei mir ist es eine QNAP und dort als Container Station

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

Angel-HH commented 1 week ago

Habs gefunden: https://forum.qnapclub.de/thread/64501-vm-bekommt-keine-ipv6/ Durch ein Update der VM Umgebung wurde IPv6 by default deaktiviert. Führe in der Console auf der QNAP, wie hier beschrieben "ip6tables -P FORWARD ACCEPT" aus. Hat bei mir funktioniert.

hardl1 commented 1 week ago

@Angel-HH danke, das hat auch bei mir geholfen.