Unfortunately documentation is thin next to using the HAOS Add-On.
I had an old Zigbee stick lying around (slae.sh) that I flashed with a Thread firmware and set everything up, but I could never bind (?) or learn new devices. Then I decided to switch radios, because maybe a newer radio is better. I now have a SONOFF Dongle Plus MG24 and have flashed the vendor Thread firmware. My otbr docker compose is as follows:
open-thread-border-router:
image: openthread/border-router:latest
container_name: otbr
privileged: true
network_mode: host
group_add:
- "dialout"
cap_add:
- NET_ADMIN
<<: [ *common-keys-unstopped ]
environment:
OT_RCP_DEVICE: "spinel+hdlc+uart:///dev/ttyUSB0?uart-baudrate=460800&uart-init-deassert&art-flow-control=0"
OT_INFRA_IF: "eth0"
OT_THREAD_IF: "wpan0"
OT_WEB_LISTEN_ADDR: "0.0.0.0"
OT_WEB_LISTEN_PORT: "8089"
OT_REST_LISTEN_ADDR: "0.0.0.0"
OT_REST_LISTEN_PORT: "8088"
OT_LOG_LEVEL: 7
devices:
- /dev/HL-sonoffmg24-2:/dev/ttyUSB0
- /dev/net/tun
volumes:
- ${DOCKERDIR}/otbr:/data/
I now went ahead and added the Open Thread Border Router integration in HA (running on docker) using http://otbr:8088 and that works. Home Assistant finds the otbr and apparently there is a thread network already (I didn't create anything, I just started the otbr container). It says "OpenThread-12ca" and some more info:
Network name: OpenThread-12ca
Channel: 15
Dataset ID: 01KH3ZX4DJRRW1QAN512YKW8B0
PAN ID: 12ca
Extended PAN ID: b64fd8beca347058
So we do have a network. The problem starts when I try to "Send credentials to phone" via the Companion app on iOS. I get the error: "Operation failed. Failed to store thread credential in keychain, error: THread network credetnials does not match with any of the active thread networks around".