Salut Pierre
J’ai suivi la procédure pour ajouter via websocket mais pas mieux.
Test on postman and with F12 on chrome
I added a bluetooth doogle on my home assitant
I update the new mater server update today
{
“message_id”: “1”,
“command”: “set_thread_dataset”,
“args”: {
“dataset”: “0e080000000000010000000300000f35060**************************************”
}
}
"fabric_id": 2,
"compressed_fabric_id": 1331531****,
"schema_version": 7,
"min_supported_schema_version": 5,
"sdk_version": "2024.1.0",
"wifi_credentials_set": false,
"thread_credentials_set": true
}
After this commande thread_credentials_set": true
{
“message_id”: “2”,
“command”: “commission_with_code”,
“args”: {
“code”: “My code on eve sticker”
}
}
Result
{
“message_id”: “2”,
“error_code”: 1,
“details”: “Commission with code failed for node 16.”
}
Logs on matter server
OSError: [Errno 101] Network is unreachable maybe my problem
2024-02-11 17:07:07 core-matter-server FabricAdmin[126] WARNING Allocating new controller with CaIndex: 1, FabricId: 0x0000000000000002, NodeId: 0x000000000001B669, CatTags:
2024-02-11 17:07:07 core-matter-server chip.DL[126] ERROR Long dispatch time: 152 ms, for event type 2
2024-02-11 17:07:07 core-matter-server zeroconf[126] WARNING Error with socket 62 ((‘::1’, 5353, 0, 0))): [Errno 101] Network is unreachable
Traceback (most recent call last):
File “/usr/local/lib/python3.11/asyncio/selector_events.py”, line 1200, in sendto
self._sock.sendto(data, addr)
OSError: [Errno 101] Network is unreachable
2024-02-11 17:10:29 core-matter-server chip.DL[126] ERROR Long dispatch time: 123 ms, for event type 2
2024-02-11 17:10:39 core-matter-server chip.CTL[126] ERROR Commissioning discovery over BLE failed: src/platform/Linux/bluez/ChipDeviceScanner.cpp:173: CHIP Error 0x00000032: Timeout
2024-02-11 17:10:39 core-matter-server chip.-[126] ERROR src/platform/Linux/bluez/ChipDeviceScanner.cpp:173: CHIP Error 0x00000032: Timeout at src/controller/SetUpCodePairer.cpp:324
2024-02-11 17:10:39 core-matter-server chip.BLE[126] ERROR BLE scan error: src/platform/Linux/bluez/ChipDeviceScanner.cpp:173: CHIP Error 0x00000032: Timeout
2024-02-11 17:10:59 core-matter-server chip.CTL[126] ERROR Discovery timed out
2024-02-11 17:10:59 core-matter-server chip.ZCL[126] ERROR Secure Pairing Failed
2024-02-11 17:11:00 core-matter-server chip.DIS[126] ERROR Timeout waiting for mDNS resolution.
2024-02-11 17:11:14 core-matter-server chip.CTL[126] ERROR Commissioning discovery over BLE failed: src/platform/Linux/bluez/ChipDeviceScanner.cpp:173: CHIP Error 0x00000032: Timeout
2024-02-11 17:11:14 core-matter-server chip.-[126] ERROR src/platform/Linux/bluez/ChipDeviceScanner.cpp:173: CHIP Error 0x00000032: Timeout at src/controller/SetUpCodePairer.cpp:324
2024-02-11 17:11:14 core-matter-server chip.BLE[126] ERROR BLE scan error: src/platform/Linux/bluez/ChipDeviceScanner.cpp:173: CHIP Error 0x00000032: Timeout
2024-02-11 17:11:34 core-matter-server chip.CTL[126] ERROR Discovery timed out
2024-02-11 17:11:34 core-matter-server chip.ZCL[126] ERROR Secure Pairing Failed
2024-02-11 17:11:35 core-matter-server chip.DIS[126] ERROR Timeout waiting for mDNS resolution.
2024-02-11 17:11:49 core-matter-server chip.CTL[126] ERROR Commissioning discovery over BLE failed: src/platform/Linux/bluez/ChipDeviceScanner.cpp:173: CHIP Error 0x00000032: Timeout
2024-02-11 17:11:49 core-matter-server chip.-[126] ERROR src/platform/Linux/bluez/ChipDeviceScanner.cpp:173: CHIP Error 0x00000032: Timeout at src/controller/SetUpCodePairer.cpp:324
2024-02-11 17:11:49 core-matter-server chip.BLE[126] ERROR BLE scan error: src/platform/Linux/bluez/ChipDeviceScanner.cpp:173: CHIP Error 0x00000032: Timeout
2024-02-11 17:12:09 core-matter-server chip.CTL[126] ERROR Discovery timed out
2024-02-11 17:12:09 core-matter-server chip.ZCL[126] ERROR Secure Pairing Failed
2024-02-11 17:12:09 core-matter-server matter_server.server.client_handler[126] ERROR [281473585973840] Error handling message: CommandMessage(message_id=‘2’, command=‘commission_with_code’, args={‘code’: ‘11916035719’})
Traceback (most recent call last):
File “/usr/local/lib/python3.11/site-packages/matter_server/server/client_handler.py”, line 193, in _run_handler
result = await result
^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/matter_server/server/device_controller.py”, line 265, in commission_with_code
raise NodeCommissionFailed(
matter_server.common.errors.NodeCommissionFailed: Commission with code failed for node 16.
2024-02-11 17:12:10 core-matter-server chip.DIS[126] ERROR Timeout waiting for mDNS resolution.
2024-02-11 17:21:27 core-matter-server zeroconf[126] WARNING Error with socket 52 ((‘fd9f:9afd:7d3f:8656:0:ff:fe00:fc10’, 5353, 0, 0))): [Errno 101] Network is unreachable
Traceback (most recent call last):
File “/usr/local/lib/python3.11/asyncio/selector_events.py”, line 1200, in sendto
self._sock.sendto(data, addr)
OSError: [Errno 101] Network is unreachable
2024-02-11 17:30:51 core-matter-server chip.DL[126] ERROR Long dispatch time: 103 ms, for event type 2
2024-02-11 17:41:09 core-matter-server chip.DL[126] ERROR Long dispatch time: 132 ms, for event type 2
2024-02-11 17:41:09 core-matter-server chip.DL[126] ERROR Long dispatch time: 236 ms, for event type 2
2024-02-11 17:41:19 core-matter-server chip.CTL[126] ERROR Commissioning discovery over BLE failed: src/platform/Linux/bluez/ChipDeviceScanner.cpp:173: CHIP Error 0x00000032: Timeout
2024-02-11 17:41:19 core-matter-server chip.-[126] ERROR src/platform/Linux/bluez/ChipDeviceScanner.cpp:173: CHIP Error 0x00000032: Timeout at src/controller/SetUpCodePairer.cpp:324
2024-02-11 17:41:19 core-matter-server chip.BLE[126] ERROR BLE scan error: src/platform/Linux/bluez/ChipDeviceScanner.cpp:173: CHIP Error 0x00000032: Timeout
2024-02-11 17:41:39 core-matter-server chip.CTL[126] ERROR Discovery timed out
2024-02-11 17:41:39 core-matter-server chip.ZCL[126] ERROR Secure Pairing Failed
2024-02-11 17:41:40 core-matter-server chip.DIS[126] ERROR Timeout waiting for mDNS resolution.
2024-02-11 17:41:54 core-matter-server chip.CTL[126] ERROR Commissioning discovery over BLE failed: src/platform/Linux/bluez/ChipDeviceScanner.cpp:173: CHIP Error 0x00000032: Timeout
2024-02-11 17:41:54 core-matter-server chip.-[126] ERROR src/platform/Linux/bluez/ChipDeviceScanner.cpp:173: CHIP Error 0x00000032: Timeout at src/controller/SetUpCodePairer.cpp:324
2024-02-11 17:41:54 core-matter-server chip.BLE[126] ERROR BLE scan error: src/platform/Linux/bluez/ChipDeviceScanner.cpp:173: CHIP Error 0x00000032: Timeout
2024-02-11 17:42:14 core-matter-server chip.CTL[126] ERROR Discovery timed out
2024-02-11 17:42:14 core-matter-server chip.ZCL[126] ERROR Secure Pairing Failed
2024-02-11 17:42:15 core-matter-server chip.DIS[126] ERROR Timeout waiting for mDNS resolution.
2024-02-11 17:42:29 core-matter-server chip.CTL[126] ERROR Commissioning discovery over BLE failed: src/platform/Linux/bluez/ChipDeviceScanner.cpp:173: CHIP Error 0x00000032: Timeout
2024-02-11 17:42:29 core-matter-server chip.-[126] ERROR src/platform/Linux/bluez/ChipDeviceScanner.cpp:173: CHIP Error 0x00000032: Timeout at src/controller/SetUpCodePairer.cpp:324
2024-02-11 17:42:29 core-matter-server chip.BLE[126] ERROR BLE scan error: src/platform/Linux/bluez/ChipDeviceScanner.cpp:173: CHIP Error 0x00000032: Timeout
2024-02-11 17:42:44 core-matter-server matter_server.server.client_handler[126] WARNING [281473585973840] Disconnected: Received invalid JSON: socket.addEventListener(“open”, (event) => {
console.log(“WebSocket is open”);
var message = {
“message_id”: “2”,
“command”: “commission_with_code”,
“args”: {
“code”: "11******
}
};
socket.send(JSON.stringify(message));
});
2024-02-11 17:42:49 core-matter-server chip.CTL[126] ERROR Discovery timed out
2024-02-11 17:42:49 core-matter-server chip.ZCL[126] ERROR Secure Pairing Failed
2024-02-11 17:42:49 core-matter-server matter_server.server.client_handler[126] ERROR [281473348477712] Error handling message: CommandMessage(message_id=‘2’, command=‘commission_with_code’, args={‘code’: ‘11916035719’})
Traceback (most recent call last):
File “/usr/local/lib/python3.11/site-packages/matter_server/server/client_handler.py”, line 193, in _run_handler
result = await result
^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/matter_server/server/device_controller.py”, line 265, in commission_with_code
raise NodeCommissionFailed(
matter_server.common.errors.NodeCommissionFailed: Commission with code failed for node 17.
2024-02-11 17:42:50 core-matter-server chip.DIS[126] ERROR Timeout waiting for mDNS resolution.
2024-02-11 17:47:47 core-matter-server chip.CTL[126] ERROR Commissioning discovery over BLE failed: src/platform/Linux/bluez/ChipDeviceScanner.cpp:173: CHIP Error 0x00000032: Timeout
2024-02-11 17:47:47 core-matter-server chip.-[126] ERROR src/platform/Linux/bluez/ChipDeviceScanner.cpp:173: CHIP Error 0x00000032: Timeout at src/controller/SetUpCodePairer.cpp:324
2024-02-11 17:47:47 core-matter-server chip.BLE[126] ERROR BLE scan error: src/platform/Linux/bluez/ChipDeviceScanner.cpp:173: CHIP Error 0x00000032: Timeout