Hello,
I'm trying to set up a Home Assistant with different Matter devices. For this I am using the nRF Connect Matter Samples "light_switch" and "light_bulb".
For commissioning I'm using the Home Assistant Mobile App while following this Documentation: https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.0/nrf/samples/matter/light_switch/README.html#matter-light-switch-sample-remote-control-commissioning.
Sadly I am unable to connect my light switch. With the bulb I didn't have any problems. I just scanned the Code via the App and got it to connect. But when I do the same with the light switch then after trying to connect the device with the Home Assistant for a while, the App says "An Error has occured".
I did enable the advertising mode manually as it is said in the documentation. My Border Router also works fine. After scanning the Code and starting the commissioning, the Matter device is trying to connect but after working a while the Error occurs.
For some reason after this, the device is somehow connected to the Border Router. I can see that in the Web-GUI. But in my Home Assistant device/entity list there is no Matter light switch.
The Home Assistant Matter Server Log prints this:
2024-01-04 08:54:52 core-matter-server chip.DIS[65] ERROR Timeout waiting for mDNS resolution.
2024-01-04 08:55:06 core-matter-server chip.DIS[65] ERROR OperationalSessionSetup[1:000000000000000A]: operational discovery failed: src/lib/address_resolve/AddressResolve_DefaultImpl.cpp:119: CHIP Error 0x00000032: Timeout
2024-01-04 08:55:37 core-matter-server chip.DIS[65] ERROR Timeout waiting for mDNS resolution.
2024-01-04 08:55:51 core-matter-server chip.DIS[65] ERROR OperationalSessionSetup[1:0000000000000009]: operational discovery failed: src/lib/address_resolve/AddressResolve_DefaultImpl.cpp:119: CHIP Error 0x00000032: Timeout
2024-01-04 08:55:51 core-matter-server matter_server.server.device_controller[65] WARNING Unable to subscribe to Node 9 as it is unavailable, will retry later in the background.
2024-01-04 08:56:22 core-matter-server chip.DIS[65] ERROR Timeout waiting for mDNS resolution.
2024-01-04 08:56:36 core-matter-server chip.DIS[65] ERROR OperationalSessionSetup[1:000000000000000A]: operational discovery failed: src/lib/address_resolve/AddressResolve_DefaultImpl.cpp:119: CHIP Error 0x00000032: Timeout
2024-01-04 08:57:07 core-matter-server chip.DIS[65] ERROR Timeout waiting for mDNS resolution.
2024-01-04 08:57:21 core-matter-server chip.DIS[65] ERROR OperationalSessionSetup[1:000000000000000A]: operational discovery failed: src/lib/address_resolve/AddressResolve_DefaultImpl.cpp:119: CHIP Error 0x00000032: Timeout
2024-01-04 08:57:21 core-matter-server matter_server.server.device_controller[65] WARNING Unable to subscribe to Node 10 as it is unavailable, will retry later in the background.
2024-01-04 08:57:39 core-matter-server matter_server.server.helpers.paa_certificates[65] INFO Fetching the latest PAA root certificates from DCL.
2024-01-04 08:57:40 core-matter-server matter_server.server.helpers.paa_certificates[65] INFO Fetched 0 PAA root certificates from DCL.
2024-01-04 08:57:40 core-matter-server matter_server.server.helpers.paa_certificates[65] INFO Fetching the latest PAA root certificates from Git.
2024-01-04 08:57:40 core-matter-server matter_server.server.helpers.paa_certificates[65] INFO Fetched 0 PAA root certificates from Git.
2024-01-04 08:57:52 core-matter-server chip.DIS[65] ERROR Timeout waiting for mDNS resolution.
2024-01-04 08:58:06 core-matter-server chip.DIS[65] ERROR OperationalSessionSetup[1:0000000000000009]: operational discovery failed: src/lib/address_resolve/AddressResolve_DefaultImpl.cpp:119: CHIP Error 0x00000032: Timeout
2024-01-04 08:58:06 core-matter-server matter_server.server.client_handler[65] ERROR [547813051728] Error handling message: CommandMessage(message_id='7ba6d27ef0f54654ade14e1bbc6d1278', command='commission_on_network', args={'setup_pin_code': 61719140, 'ip_addr': None})
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/matter_server/server/client_handler.py", line 188, in _run_handler
result = await result
^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/matter_server/server/device_controller.py", line 230, in commission_on_network
raise NodeCommissionFailed(
matter_server.common.errors.NodeCommissionFailed: Commission on network failed for node 23
In the log of my Matter device I can't find any Errors.
Is this a problem with the light switch or the Home Assistant?