Part3 - Connect ZBT-1
diy matter gateway product
I have flashed my Connect ZBT-1 with an openthread firmware (thread only). The dongle will act as a border router.
Installation Connect ZBT-1 mit Thread Firmware & Home Assistant in docker.
Table of Contents
source:https://connectzbt1.home-assistant.io/about-firmware-options/
Quick Start
doing the following:
Run OTBR on the pi using docker
Run homeassistant on the pi using docker
enable the otbr integration -->which allows you create otbr
enable the thread integration-->which allows you create thread network
enable matter --> (which allows you to add matter devices)
Architecture
Docker containers
Home assistant docker(Installation Instructions)
otbr docker(Installation Instructions)
Matter server docker(Installation Instructions)
Home Assistant Integrations
OpenTread Border Router Integration
Thread integration
Matter Integration
Step by step
reflash your Connect ZBT-1 the Thread firmware
Run OpenThread Border Router in docker container
Thread 设备
Thread 设备向 Thread 边界路由器注册自己的服务,接着 Thread 边界路由器通过多播 DNS 向 Wi-Fi 网络广播所有 Thread 设备的服务信息。
Thread 边界路由器还实现了 DNS-SD 发现代理 (Discovery Proxy),这样 Thread 设备也可以发现 Wi-Fi 网络中的服务。
The Thread Border Router needs a 15.4 Radio Co-Processor (RCP) in order to create and interact with the Thread network.
OpenThread’s image:
https://hub.docker.com/r/openthread/otbr
Manually configure all the skyconnect dongle settings, create a mesh network, enable the REST protocol, and import the credentials dataset. You’ll also need to make sure your IPv6 setup and mDNS are working correctly.
Add Open Thread Border Router Integration on hass
put the URL that points to that docker container’s port in that text field.
use http://localhost:8081 by default to connect to the otbr container.
Create thread network via Thread integration
Thread integration
used to create thread network, border router must be assigned to the homeassistant thread network
This will automatically create a new Thread network with the name ha-thread-xxxx.
screenshot for thread network:
ha-thread-xxxx,The last for digits are a network-specific identifier (PAN ID).
IPV6网络 and mDNS
网络允许 mDNS/Bonjour 通信(用于设备发现)
Ble 树莓派蓝牙功能打开
首先确保蓝牙是可用的
hciconfig -a
hci0: Type: Primary Bus: UART
BD Address: B8:27: ACL MTU: 1021:8 SCO MTU: 64:1
UP RUNNING
RX bytes:2911 acl:0 sco:0 events:217 errors:0
TX bytes:33155 acl:0 sco:0 commands:217 errors:0
Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH SNIFF
Link mode: PERIPHERAL ACCEPT
Name: 'raspberrypi'
Class: 0x000000
Service Classes: Unspecified
Device Class: Miscellaneous,
HCI Version: 4.1 (0x7) Revision: 0x1fc
LMP Version: 4.1 (0x7) Subversion: 0x2209
Manufacturer: Broadcom Corporation (15)
useful links
https://community.home-assistant.io/t/using-matter-and-thread-in-a-dockerized-ha-instance/721088/6
Enable Thread on Home Assistant Connect ZBT-1
https://connectzbt1.home-assistant.io/procedures/enable-thread/
Comments
Comments are closed