#Issues with OpenThread Border Router with ZBT-2 on Containerized HA

1 messages · Page 1 of 1 (latest)

neat geode
#

Hello all. I'm new here and have been setting up my Home Assistant server fresh this year.

Recently I got a few Matter/Thread compatible devices and need to set up a Thread Router. I bought the ZBT-2 to use with it, and have been trying my best to set it up, only for it to fail continually. The device is fully recognized by my server, and I can successfully flash the Thread firmware onto the device. As I am running Home Assistant using Docker Containers on a Raspberry Pi, I have set up the docker container for the OpenThread Border Router. This starts up fine, and is automatically recognized by HA, and I have no problem adding it to my system. However, as soon as I go into the configuration page for Thread, it says that I don't have a preferred network and there doesn't appear to be anyway possible to set the new network router as my preferred network.

I've spent a couple of days on this trying to debug it, and I've hit my wits end. Has anyone seen this before? What am I doing wrong?

#

⁨`services:
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
volumes:
- /haos/config:/config
- /haos/ssl:/ssl
- /etc/localtime:/etc/localtime:ro
- /run/dbus:/run/dbus:ro
- /dev/serial/by-id:/dev/serial/by-id
restart: unless-stopped
privileged: true
network_mode: host
environment:
TZ: America/Los_Angeles

----------------------------------

matter-server

matter-server:
image: ghcr.io/matter-js/python-matter-server:stable
container_name: matter-server
restart: unless-stopped
# Required for mDNS to work correctly
network_mode: host
security_opt:
# Needed for Bluetooth via dbus
- apparmor:unconfined
volumes:
# Create an .env file that sets the USERDIR environment variable.
- /haos/matter/data:/data/
# Required for Bluetooth via D-Bus
- /run/dbus:/run/dbus:ro
# If you adjust command line, make sure to pass the default CMD arguments too:
#command: --storage-path /data --paa-root-cert-dir /data/credentials --bluetooth-adapter 0

OpenThread Bridge Router

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/ttyUsbThread"
BACKBONE_IF: eth0
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-Nabu_Casa_ZBT-2_DCB4D90E3614-if00:/dev/ttyUsbThread
- /dev/net/tun:/dev/net/tun
volumes:
- /haos/openthread/data:/var/lib/thread
`⁩

gloomy shuttle
#

When running a container installation, you might need to manually install the "Open Thread Border Router" integration. It will prompt you to provide the API URL (looks like http://otbr.local:8081 should work for you)

#

After you do that, a dotsvertical menu should show up beside the thread border router in the Thread settings panel, allowing you to perform some actions including setting it as your preferred network.