The Thread mesh and border routers
12 min Read in this browser
You will be able to
- Name the roles in a Thread network
- Explain what a border router does and why one network matters
Thread is a low-power mesh network for small devices. It uses the same 802.15.4 radio and the same 2.4 GHz channels 11 to 26 as Zigbee, but unlike Zigbee it is an IPv6 network: every Thread device has an IP address.
Roles
| Role | What it does |
|---|---|
| Router | a device built to route (usually mains-powered) that relays for others; up to 32 at once |
| Router-eligible end device | a device built to route that isn't routing yet, promoted if the mesh needs it |
| End device | talks only through its parent router; sleepy ones (battery sensors) wake periodically |
| Leader | one router, elected automatically, that manages the network |
| Border router | a router that also connects the mesh to the home's IP network |
The roles adapt by themselves: router-capable devices are promoted when the mesh needs them, and a new leader is elected if the old one goes away. Whether a device can route depends on how it was built, not only on its power: a mains-powered device can still be a plain end device.
The border router
Without a border router, Thread devices can only talk to each other. The border router is what lets Home Assistant reach them. It can be:
- the Selora Hub, with a Thread radio (ZBT-1, ZBT-2, ZBDongle-E with OpenThread firmware) and the OpenThread Border Router app;
- Apple: HomePod mini, HomePod (2nd gen), Apple TV 4K (2nd gen, or 3rd gen Wi-Fi + Ethernet);
- Google: Nest Hub (2nd gen), Nest Hub Max, Nest Wifi, Nest Wifi Pro, Google TV Streamer;
- others, such as some Amazon Echo, eero, SmartThings and Aqara devices.
Several border routers on the same Thread network add redundancy. Several border routers that each created their own network split the home into separate meshes.
One Thread network per home
Fragmentation is one of the most common Thread problems on site. A home with an Apple or Google border router already runs its own Thread network. If the Selora Hub creates a second one, the devices end up split between them:
- each mesh is smaller, with fewer routers to relay and to fall back on;
- devices can't move from one mesh to the other when a router goes away;
- Home Assistant reaches the devices on the other mesh only through that mesh's border routers: if those sleep, are unplugged, or sit on another network segment, the devices drop out of Home Assistant.
So, before starting the Selora Hub's border router:
- Find the existing networks: Settings → Connectivity → Thread lists every border router it discovers. Ask the customer about Apple, Google, Amazon or eero devices too.
- If a network exists, import its credentials from the Companion app on a phone that knows it ("Send credentials to Home Assistant" on the Thread page) and make it the preferred network. The Selora Hub's border router then joins it when it starts.
- If none exists, the Selora Hub's network becomes the preferred one.
The Selora Hub's border router joins the preferred network only if it has no network yet: one started too early forms its own, and must be reset to join the preferred one. The panel should end up showing one network name with every border router under it. Also make sure the phone you commission from has the same preferred network: devices added from a phone join the phone's preferred network.
Thread
A low-power IPv6 mesh network for small devices, on the same 2.4 GHz radio channels as Zigbee. Matter devices often use it.
Mesh
A network where devices pass each other's messages along, so a device far from the hub reaches it through the others. Zigbee, Z-Wave and Thread are meshes, and so are mesh Wi-Fi systems.
Zigbee
A low-power 2.4 GHz mesh network for sensors, switches and bulbs. The Hub joins it through a USB or network coordinator.
IPv6
The newer version of IP, with much longer addresses. Thread devices use it, so it must be on in the local network, even when the internet provider doesn't offer it.
End device
A device in a Zigbee or Thread mesh that relays nothing for others. Battery sensors sleep most of the time to save power; so do Zigbee switches without a neutral wire.
Thread Border Router
A device that connects a Thread mesh to the home network: the Hub with its Thread radio, or devices such as a HomePod mini or a Nest Hub.
Companion app
Home Assistant's own app for iPhone and Android: the homeowner's controls and notifications, and, with location on, how the home knows who is in.
Go further on selorahomes.com
What you read is saved in this browser only. Sign in to keep it in your account, take the quizzes and get certified.
This lesson by Selora Homes is licensed CC BY 4.0 : share and adapt it, even commercially, crediting Selora Homes with a link. Photos by others keep their own licences, as credited.