Closed zmumbauer closed 5 months 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!
(message by CodeOwnersMention)
matter documentation matter source (message by IssueLinks)
Nanoleaf devices are known to be very unstable on early firmware versions. Make sure you have the latest firmware version. You can update the firmware in the Nanoleaf app.
hey @marcelveldt, thanks for the response. All of my lights are on the latest firmware 3.6.173. I updated HA and the matter integration and was able to get one working on the first try; however, subsequent tries failed due to CHIP Error 0x00000003: Incorrect state
. Based on https://github.com/home-assistant/core/issues/114604#issuecomment-2032418628, I'm going to try uninstalling the matter integration.
Does the node id refer to the device? I tried adding the same light 3 times in a row and the logs show 3 different node ids:
2024-04-04 23:08:23.899 (MainThread) INFO [matter_server.server.vendor_info] Fetched 182 vendors from DCL.
2024-04-04 23:08:23.899 (MainThread) INFO [matter_server.server.vendor_info] Saving vendor info to storage.
2024-04-04 23:09:22.777 (MainThread) INFO [matter_server.server.device_controller] Starting Matter commissioning with code using Node ID 1 (attempt 1/3).
2024-04-04 23:09:52.779 (Dummy-2) CHIP_ERROR [chip.native.CTL] Discovery timed out
2024-04-04 23:09:52.779 (Dummy-2) CHIP_ERROR [chip.native.ZCL] Secure Pairing Failed
2024-04-04 23:09:52.780 (Dummy-2) WARNING [root] Failed to establish secure session to device: src/controller/python/ChipDeviceController-ScriptDevicePairingDelegate.cpp:89: CHIP Error 0x00000003: Incorrect state
2024-04-04 23:09:52.780 (Dummy-2) WARNING [root] Failed to commission: src/controller/python/ChipDeviceController-ScriptDevicePairingDelegate.cpp:89: CHIP Error 0x00000003: Incorrect state
2024-04-04 23:09:53.782 (Dummy-2) CHIP_ERROR [chip.native.DIS] Timeout waiting for mDNS resolution.
2024-04-04 23:09:57.782 (MainThread) INFO [matter_server.server.device_controller] Starting Matter commissioning with code using Node ID 1 (attempt 2/3).
2024-04-04 23:10:27.784 (Dummy-2) CHIP_ERROR [chip.native.CTL] Discovery timed out
2024-04-04 23:10:27.785 (Dummy-2) CHIP_ERROR [chip.native.ZCL] Secure Pairing Failed
2024-04-04 23:10:27.785 (Dummy-2) WARNING [root] Failed to establish secure session to device: src/controller/python/ChipDeviceController-ScriptDevicePairingDelegate.cpp:89: CHIP Error 0x00000003: Incorrect state
2024-04-04 23:10:27.785 (Dummy-2) WARNING [root] Failed to commission: src/controller/python/ChipDeviceController-ScriptDevicePairingDelegate.cpp:89: CHIP Error 0x00000003: Incorrect state
2024-04-04 23:10:28.785 (Dummy-2) CHIP_ERROR [chip.native.DIS] Timeout waiting for mDNS resolution.
2024-04-04 23:10:32.786 (MainThread) INFO [matter_server.server.device_controller] Starting Matter commissioning with code using Node ID 1 (attempt 3/3).
2024-04-04 23:10:36.704 (MainThread) INFO [matter_server.server.device_controller] Starting Matter commissioning with code using Node ID 2 (attempt 1/3).
2024-04-04 23:11:06.707 (Dummy-2) CHIP_ERROR [chip.native.CTL] Discovery timed out
2024-04-04 23:11:06.708 (Dummy-2) CHIP_ERROR [chip.native.ZCL] Secure Pairing Failed
2024-04-04 23:11:06.708 (Dummy-2) WARNING [root] Failed to establish secure session to device: src/controller/python/ChipDeviceController-ScriptDevicePairingDelegate.cpp:89: CHIP Error 0x00000003: Incorrect state
2024-04-04 23:11:06.708 (Dummy-2) WARNING [root] Failed to commission: src/controller/python/ChipDeviceController-ScriptDevicePairingDelegate.cpp:89: CHIP Error 0x00000003: Incorrect state
2024-04-04 23:11:06.709 (MainThread) ERROR [matter_server.server.client_handler] [547810446928] Error while handling: commission_with_code: Commission with code failed for node 1.
2024-04-04 23:11:07.709 (Dummy-2) CHIP_ERROR [chip.native.DIS] Timeout waiting for mDNS resolution.
2024-04-04 23:11:11.711 (MainThread) INFO [matter_server.server.device_controller] Starting Matter commissioning with code using Node ID 2 (attempt 2/3).
2024-04-04 23:11:41.714 (Dummy-2) CHIP_ERROR [chip.native.CTL] Discovery timed out
2024-04-04 23:11:41.714 (Dummy-2) CHIP_ERROR [chip.native.ZCL] Secure Pairing Failed
2024-04-04 23:11:41.714 (Dummy-2) WARNING [root] Failed to establish secure session to device: src/controller/python/ChipDeviceController-ScriptDevicePairingDelegate.cpp:89: CHIP Error 0x00000003: Incorrect state
2024-04-04 23:11:41.714 (Dummy-2) WARNING [root] Failed to commission: src/controller/python/ChipDeviceController-ScriptDevicePairingDelegate.cpp:89: CHIP Error 0x00000003: Incorrect state
2024-04-04 23:11:42.714 (Dummy-2) CHIP_ERROR [chip.native.DIS] Timeout waiting for mDNS resolution.
2024-04-04 23:11:45.749 (MainThread) INFO [matter_server.server.device_controller] Starting Matter commissioning with code using Node ID 3 (attempt 1/3).
2024-04-04 23:11:46.715 (MainThread) INFO [matter_server.server.device_controller] Starting Matter commissioning with code using Node ID 2 (attempt 3/3).
With each commission attempt the node id will increment. Looking at this log the device is not ready to be commissioned at all or connectivity is failing.
I'd restore the device to factory settings and try again.
I am having the same error with three brand new devices all GU10's running 3.6.173 and HA and matter upto date also
Did you all read our documentation for Matter ? Especially the tips about networking:
No vLANS (or have your IoT devices and HA on the same IoT vlan) no mDNS repeaters ! If you have (semi)professional network gear such as Unifi, Omada etc. be very careful with enabling multicast filtering options. Although not strictly required by the spec (it should work fully with link local IPV6 neighbour discovery) - it might be needed to setup IPv6 in your network, either by having a native IPv6 setup from your ISP or have an DHPv6 server active Make sure that IPv6 is enabled is your HA server network config. When commissioning a device, make sure your phone is not connected to a 5ghz only WiFi SSID. Read all recommendations about Thread and Thread border routers if you're commissioning Matter-over-thread devices. This issue tracker is for reporting bugs. For user support refer to the forums or better yet, the Matter channel on our discord server. There we can help you out with set-up related questions.
The problem
I've been able to successfully adopt several lights (after many retries) with seemingly no common pattern to copy.
Below is a log of a recent attempt to adopt one single downlight (multiple different node numbers are in the logs). In the end I was able to adopt it after:
This light was previously paired after a similar situation but my SD card recently went bust so I upgraded to a RP5 with ssd and have to readopt all my lights (except for one that still worked).
I've never worked with embedded devices so I'm not sure what to look for. Even if you could point me to a good resource to try and understand whats happening here better, it would be much appreciated.
Previously this same struggle was on a RP4 (2024.3.1); before that update (and an update to the Nanoleaf firmware) it didn't work at all.
What version of Home Assistant Core has the issue?
core-2024.3.3
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
Matter
Link to integration documentation on our website
https://www.home-assistant.io/integrations/matter/
Diagnostics information
home-assistant_matter_2024-03-30T02-25-12.659Z.log
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response