Hi All, I’ve had the baby steps completed and managed to get a few ZWave devices added to HA running in docker. Now it is time to get it working with Matter/Thread. After a minute or so the procedure to add a new matter device (Inovelli White Dimmer) fails. I would appreciate some help with some hints on how to proceed.
I believe I have created a new network through the OTBR web page and also transferred the credentials to the HA iPhone app.
I’m using SMLight SLZB-07MG24 USB dongle for thread.
All docker containers are running in host mode, and looks like my wifi interface receives the ipv6 address.
The matter server returns some errors:
2025-02-16 04:18:28.547 (MainThread) INFO [matter_server.server.stack] Initializing CHIP/Matter Logging...
2025-02-16 04:18:28.547 (MainThread) INFO [matter_server.server.stack] Initializing CHIP/Matter Controller Stack...
[1739679508.567572][1:1] CHIP:CTL: Setting attestation nonce to random value
[1739679508.567773][1:1] CHIP:CTL: Setting CSR nonce to random value
[1739679508.568424][1:1] CHIP:DL: ChipLinuxStorage::Init: Using KVS config file: /tmp/chip_kvs
[1739679508.568654][1:1] CHIP:DL: ChipLinuxStorage::Init: Using KVS config file: /data/chip_factory.ini
[1739679508.568746][1:1] CHIP:DL: ChipLinuxStorage::Init: Using KVS config file: /data/chip_config.ini
[1739679508.568775][1:1] CHIP:DL: ChipLinuxStorage::Init: Using KVS config file: /data/chip_counters.ini
[1739679508.573313][1:1] CHIP:DL: Wrote settings to /data/chip_counters.ini
[1739679508.573326][1:1] CHIP:DL: NVS set: chip-counters/reboot-count = 16 (0x10)
[1739679508.573690][1:1] CHIP:DL: Failed to get Ethernet interface
[1739679508.573906][1:1] CHIP:DL: Failed to reset Ethernet statistic counts
[1739679508.574018][1:1] CHIP:DL: Got WiFi interface: wlp0s20f3
[1739679508.574296][1:1] CHIP:DL: Found the primary WiFi interface:wlp0s20f3
2025-02-16 04:18:28.574 (MainThread) INFO [chip.storage] Initializing persistent storage from file: /data/chip.json
2025-02-16 04:18:28.574 (MainThread) INFO [chip.storage] Loading configuration from /data/chip.json...
2025-02-16 04:18:28.650 (MainThread) INFO [chip.CertificateAuthority] Loading certificate authorities from storage...
2025-02-16 04:18:28.651 (MainThread) INFO [chip.CertificateAuthority] New CertificateAuthority at index 1
2025-02-16 04:18:28.651 (MainThread) INFO [chip.CertificateAuthority] Loading fabric admins from storage...
2025-02-16 04:18:28.651 (MainThread) INFO [chip.FabricAdmin] New FabricAdmin: FabricId: 0x0000000000000001, VendorId = 0xFFF1
2025-02-16 04:18:28.651 (MainThread) INFO [matter_server.server.stack] CHIP Controller Stack initialized.
2025-02-16 04:18:28.652 (MainThread) INFO [matter_server.server.server] Starting the Matter Server...
2025-02-16 04:18:28.654 (MainThread) INFO [matter_server.server.helpers.paa_certificates] Skip fetching certificates (already fetched within the last 24h).
2025-02-16 04:18:28.654 (MainThread) INFO [chip.FabricAdmin] Allocating new controller with CaIndex: 1, FabricId: 0x0000000000000001, NodeId: 0x000000000001B669, CatTags: []
2025-02-16 04:18:28.690 (Dummy-2) CHIP_ERROR [chip.native.DIS] Failed to advertise records: src/inet/UDPEndPointImplSockets.cpp:421: OS Error 0x02000065: Network is unreachable
2025-02-16 04:18:28.690 (Dummy-2) CHIP_ERROR [chip.native.DIS] Failed to advertise records: src/inet/UDPEndPointImplSockets.cpp:421: OS Error 0x02000065: Network is unreachable
2025-02-16 04:18:28.691 (Dummy-2) CHIP_ERROR [chip.native.DIS] Failed to advertise records: src/inet/UDPEndPointImplSockets.cpp:421: OS Error 0x02000065: Network is unreachable
2025-02-16 04:18:28.691 (Dummy-2) CHIP_ERROR [chip.native.DIS] Failed to advertise records: src/inet/UDPEndPointImplSockets.cpp:421: OS Error 0x02000065: Network is unreachable
2025-02-16 04:18:28.698 (MainThread) INFO [matter_server.server.vendor_info] Loading vendor info from storage.
2025-02-16 04:18:28.701 (MainThread) INFO [matter_server.server.vendor_info] Loaded 286 vendors from storage.
2025-02-16 04:18:28.702 (MainThread) INFO [matter_server.server.vendor_info] Fetching the latest vendor info from DCL.
2025-02-16 04:18:28.910 (MainThread) INFO [matter_server.server.vendor_info] Fetched 285 vendors from DCL.
2025-02-16 04:18:28.910 (MainThread) INFO [matter_server.server.vendor_info] Saving vendor info to storage.
2025-02-16 04:18:28.917 (MainThread) INFO [matter_server.server.device_controller] Loaded 0 nodes from stored configuration
2025-02-16 04:18:28.928 (MainThread) INFO [matter_server.server.server] Matter Server successfully initialized.
What my docker compose looks like:
services:
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
volumes:
- /home/ubuntu/home-assistant/config:/config
- /etc/localtime:/etc/localtime:ro
- /run/dbus:/run/dbus:ro
- /dev/serial/by-id:/dev/serial/by-id:ro
restart: unless-stopped
privileged: true
ports:
- 8123:8123
network_mode: host
otbr:
hostname: otbr
container_name: otbr
image: "ghcr.io/ownbee/hass-otbr-docker:latest"
privileged: true
network_mode: host
cap_add:
- SYS_ADMIN
- NET_ADMIN
environment:
DEVICE: "/dev/ttyUsbTread"
BACKBONE_IF: wlp0s20f3 #enp3s0
FLOW_CONTROL: 1
FIREWALL: 1
NAT64: 1
BAUDRATE: 460800
OTBR_REST_PORT: 8081
OTBR_WEB_PORT: 7586
AUTOFLASH_FIRMWARE: 0
devices:
- /dev/serial/by-id/usb-SMLIGHT_SMLIGHT_SLZB-07Mg24_6add7a39f772ed118f6073773dbf42d5-if00-port0:/dev/ttyUsbTread
- /dev/net/tun:/dev/net/tun
volumes:
- ./openthread/data:/var/lib/thread
matter-server:
container_name: matter-server
image: ghcr.io/home-assistant-libs/python-matter-server:stable
restart: unless-stopped
security_opt:
- apparmor=unconfined
volumes:
- /home/ubuntu/home-assistant/addons/matter-server:/data
- /run/dbus:/run/dbus:ro
network_mode: host
I also tried adding ipv6 suppor to docker daemon, but doesn’t seem like it is relevant since it is running in host mode.