2024年11月24日星期日 上午1:00:34

Installing matter server docker image on a Raspberry Pi 3B+(Matter over Wi-Fi ) via Docker Run

8 个月 前
#29684 引用
docker logs 4ec5538b0481
2024-03-14 19:09:48 raspberrypi matter_server.server.stack[1] INFO Initializing CHIP/Matter Controller Stack...
[1710443389.581991][1:1] CHIP:CTL: Setting attestation nonce to random value
[1710443389.589106][1:1] CHIP:CTL: Setting CSR nonce to random value
[1710443389.715704][1:1] CHIP:DL: ChipLinuxStorage::Init: Using KVS config file: /tmp/chip_kvs
[1710443389.719139][1:1] CHIP:DL: writing settings to file (/tmp/chip_kvs-LZPeLi)
[1710443389.719397][1:1] CHIP:DL: renamed tmp file to file (/tmp/chip_kvs)
[1710443389.721984][1:1] CHIP:DL: ChipLinuxStorage::Init: Using KVS config file: /data/chip_factory.ini
[1710443389.749759][1:1] CHIP:DL: ChipLinuxStorage::Init: Using KVS config file: /data/chip_config.ini
[1710443389.751001][1:1] CHIP:DL: ChipLinuxStorage::Init: Using KVS config file: /data/chip_counters.ini
[1710443389.758675][1:1] CHIP:DL: writing settings to file (/data/chip_counters.ini-7rlWTh)
[1710443389.761869][1:1] CHIP:DL: renamed tmp file to file (/data/chip_counters.ini)
[1710443389.761946][1:1] CHIP:DL: NVS set: chip-counters/reboot-count = 11 (0xB)
[1710443389.762754][1:1] CHIP:DL: Got Ethernet interface: eth0
[1710443389.763090][1:1] CHIP:DL: Found the primary Ethernet interface:eth0
[1710443389.763438][1:1] CHIP:DL: Got WiFi interface: wlan0
[1710443389.763502][1:1] CHIP:DL: Failed to reset WiFi statistic counts
2024-03-14 19:09:49 raspberrypi PersistentStorage[1] WARNING Initializing persistent storage from file: /data/chip.json
2024-03-14 19:09:49 raspberrypi PersistentStorage[1] WARNING Loading configuration from /data/chip.json...
2024-03-14 19:09:49 raspberrypi chip.DL[1] ERROR MDNS failed to join multicast group on wlan0 for address type IPv4: src/inet/UDPEndPointImplSockets.cpp:777: Inet Error 0x00000110: Address not found
2024-03-14 19:09:50 raspberrypi CertificateAuthorityManager[1] WARNING Loading certificate authorities from storage...
2024-03-14 19:09:50 raspberrypi CertificateAuthority[1] WARNING New CertificateAuthority at index 1
2024-03-14 19:09:50 raspberrypi CertificateAuthority[1] WARNING Loading fabric admins from storage...
2024-03-14 19:09:50 raspberrypi FabricAdmin[1] WARNING New FabricAdmin: FabricId: 0x0000000000000001, VendorId = 0xFFF1
2024-03-14 19:09:50 raspberrypi matter_server.server.stack[1] INFO CHIP Controller Stack initialized.
2024-03-14 19:09:50 raspberrypi matter_server.server.server[1] INFO Starting the Matter Server...
2024-03-14 19:09:50 raspberrypi matter_server.server.helpers.paa_certificates[1] INFO Fetching the latest PAA root certificates from DCL.
/usr/local/lib/python3.11/site-packages/matter_server/server/helpers/paa_certificates.py:46: CryptographyDeprecationWarning: The parsed certificate contains a NULL parameter value in its signature algorithm parameters. This is invalid and will be rejected in a future version of cryptography. If this certificate was created via Java, please upgrade to JDK16+ or the latest JDK11 once a fix is issued. If this certificate was created in some other fashion please report the issue to the cryptography issue tracker. See https://github.com/pyca/cryptography/issues/8996 for more details.
  pem_certificate = x509.load_pem_x509_certificate(certificate.encode())
0
8 个月 前
#29690 引用
Hardware Requirements

Requirements to communicate with Wi-Fi/Ethernet based Matter devices
Make sure you run the container on the host network. The host network interface needs to be in the same network as the Android/iPhone device you are using for commissioning. Matter uses link-local multicast protocols which do not work across different LANs or VLANs.

The host network interface needs IPv6 support enabled.

Requirements to communicate with Thread devices through Thread border routers
For communication through Thread border routers which are not running on the same host as the Matter Controller server to work, IPv6 routing needs to be properly working.

source:https://github.com/home-assistant-libs/python-matter-server
0
8 个月 前
#29691 引用
Software Requirements
0
8 个月 前
#29706 引用
I am currently trying to get the Matter server running in Docker. Unfortunately, it probably fails because of the mDNS.

0
8 个月 前
#29707 引用

docker logs  matter-server
2024-03-14 20:02:03 raspberrypi matter_server.server.stack[1] INFO Initializing CHIP/Matter Controller Stack...
[1710446524.226375][1:1] CHIP:CTL: Setting attestation nonce to random value
[1710446524.226989][1:1] CHIP:CTL: Setting CSR nonce to random value
[1710446524.230552][1:1] CHIP:DL: ChipLinuxStorage::Init: Using KVS config file: /tmp/chip_kvs
[1710446524.231919][1:1] CHIP:DL: writing settings to file (/tmp/chip_kvs-KO239i)
[1710446524.232337][1:1] CHIP:DL: renamed tmp file to file (/tmp/chip_kvs)
[1710446524.232851][1:1] CHIP:DL: ChipLinuxStorage::Init: Using KVS config file: /data/chip_factory.ini
[1710446524.233519][1:1] CHIP:DL: ChipLinuxStorage::Init: Using KVS config file: /data/chip_config.ini
[1710446524.233851][1:1] CHIP:DL: ChipLinuxStorage::Init: Using KVS config file: /data/chip_counters.ini
[1710446524.234887][1:1] CHIP:DL: writing settings to file (/data/chip_counters.ini-485Bwg)
[1710446524.236170][1:1] CHIP:DL: renamed tmp file to file (/data/chip_counters.ini)
[1710446524.236292][1:1] CHIP:DL: NVS set: chip-counters/reboot-count = 15 (0xF)
[1710446524.237418][1:1] CHIP:DL: Got Ethernet interface: eth0
[1710446524.238120][1:1] CHIP:DL: Found the primary Ethernet interface:eth0
[1710446524.239066][1:1] CHIP:DL: Got WiFi interface: wlan0
[1710446524.239208][1:1] CHIP:DL: Failed to reset WiFi statistic counts
2024-03-14 20:02:04 raspberrypi PersistentStorage[1] WARNING Initializing persistent storage from file: /data/chip.json
2024-03-14 20:02:04 raspberrypi PersistentStorage[1] WARNING Loading configuration from /data/chip.json...
2024-03-14 20:02:04 raspberrypi chip.DL[1] ERROR MDNS failed to join multicast group on wlan0 for address type IPv4: src/inet/UDPEndPointImplSockets.cpp:777: Inet Error 0x00000110: Address not found
2024-03-14 20:02:05 raspberrypi CertificateAuthorityManager[1] WARNING Loading certificate authorities from storage...
2024-03-14 20:02:05 raspberrypi CertificateAuthority[1] WARNING New CertificateAuthority at index 1
2024-03-14 20:02:05 raspberrypi CertificateAuthority[1] WARNING Loading fabric admins from storage...
2024-03-14 20:02:05 raspberrypi FabricAdmin[1] WARNING New FabricAdmin: FabricId: 0x0000000000000001, VendorId = 0xFFF1
2024-03-14 20:02:05 raspberrypi matter_server.server.stack[1] INFO CHIP Controller Stack initialized.
2024-03-14 20:02:05 raspberrypi matter_server.server.server[1] INFO Starting the Matter Server...
2024-03-14 20:02:05 raspberrypi matter_server.server.helpers.paa_certificates[1] INFO Fetching the latest PAA root certificates from DCL.
/usr/local/lib/python3.11/site-packages/matter_server/server/helpers/paa_certificates.py:46: CryptographyDeprecationWarning: The parsed certificate contains a NULL parameter value in its signature algorithm parameters. This is invalid and will be rejected in a future version of cryptography. If this certificate was created via Java, please upgrade to JDK16+ or the latest JDK11 once a fix is issued. If this certificate was created in some other fashion please report the issue to the cryptography issue tracker. See https://github.com/pyca/cryptography/issues/8996 for more details.
  pem_certificate = x509.load_pem_x509_certificate(certificate.encode())


0
8 个月 前
#29712 引用


ws://192.168.2.50:5580/ws


By changing the integration to point to my docker host’s IP on port 5580 (ws://<my_host_ip>:5580/ws),
0
8 个月 前
#29722 引用
20240318

docker pull  ghcr.io/home-assistant-libs/python-matter-server:stable
0
8 个月 前
#29796 引用
example  not  test

docker run -d --name matter-server --restart=unless-stopped \
    --security-opt apparmor=unconfined -v /home/local/homeassistant/matter:/data \
    -v /run/dbus:/run/dbus:ro --network=host \
    ghcr.io/home-assistant-libs/python-matter-server:stable
0
8 个月 前
#29799 引用

2024-03-18 22:43:45 (MainThread) INFO [matter_server.server.server] Stopping the Matter Server...
2024-03-18 22:43:45 (MainThread) INFO [matter_server.server.stack] Shutting down the Matter stack...
2024-03-18 22:43:45 (MainThread) CHIP_ERROR [chip.native.CTL] Shutting down the stack...
2024-03-18 22:43:45 (MainThread) CHIP_ERROR [chip.native.DL] Inet Layer shutdown
2024-03-18 22:43:45 (MainThread) CHIP_ERROR [chip.native.DL] BLE shutdown
2024-03-18 22:43:45 (MainThread) CHIP_ERROR [chip.native.DL] System Layer shutdown
2024-03-18 22:43:45 (MainThread) INFO [aiorun] Waiting for executor shutdown.



0
7 个月 前
#31915 引用


mkdir data
docker run -d \
  --name matter-server \
  --restart=unless-stopped \
  --security-opt apparmor=unconfined \
  -v $(pwd)/data:/data \
  -v /run/dbus:/run/dbus:ro \
  --network=host \
  ghcr.io/home-assistant-libs/python-matter-server:stable


docker logs matter-server


2024-04-04 23:18:28.272 (MainThread) WARNING [FabricAdmin] Allocating new controller with CaIndex: 1, FabricId: 0x0000000000000001, NodeId: 0x000000000001B669, CatTags: []




--vendorid VENDORID   Vendor ID for the Fabric, defaults to 65521
  --fabricid FABRICID   Fabric ID for the Fabric, defaults to 1
  --storage-path STORAGE_PATH
                        Storage path to keep persistent data, defaults to $HOME/.matter_server
  --port PORT           TCP Port to run the websocket server, defaults to 5580
  --log-level LOG_LEVEL
                        Provide logging level. Example --log-level debug, default=info, possible=(critical, error, warning, info, debug)
  --log-file LOG_FILE   Log file to write to (optional).


https://github.com/home-assistant-libs/python-matter-server
0