Skip to content

Commit 93a4d1f

Browse files
authored
Merge pull request #8 from ArthFink/af/ha-open-thread-doku
af/ha open thread doku
2 parents fe1a22f + 2ff3c13 commit 93a4d1f

File tree

2 files changed

+66
-12
lines changed

2 files changed

+66
-12
lines changed

README.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,22 @@ The build process ensures the most up-to-date OpenThread firmware for nRF52840 b
88

99
- **UART Version**: `ot-cli-ftd-UART.hex`
1010
- **USB Version**: `ot-cli-ftd-USB.hex`
11+
- **USB Radio Co-Processo**: `ot-rcp-USB.hex`
1112

12-
The firmware is uploaded as artifacts that you can download directly from the **Actions** tab.
13+
Firmware is published as part of [bi-monthly releases](https://github.com/ArthFink/nrf52840-OpenThread/releases), which include precompiled binaries for different use cases supported versions.
1314

1415
## How to Download the Firmware
1516

16-
1. Go to the [**Actions tab**](../../actions) of this repository.
17-
2. Select the latest workflow run for the `Build OpenThread nRF52840 Examples` workflow.
18-
3. Scroll down to the **Artifacts** section at the bottom of the workflow page.
19-
4. Click on the `ot-nrf528xx-binaries` artifact to download a ZIP file containing:
20-
- `ot-cli-ftd-UART.hex`
21-
- `ot-cli-ftd-USB.hex`
22-
- Corresponding ELF files.
23-
17+
1. Go to the [Releases page](https://github.com/ArthFink/nrf52840-OpenThread/releases).
18+
2. Select the most recent release (release 07/2025 known good).
19+
3. Download the appropriate firmware file for your device and use case from the Assets section.
20+
- For use with OpenThread Border Router, a Radio Co-Processor (RPC) image is required.
21+
2422
## How to Flash the Firmware
2523

2624
### USB Version
2725

28-
To flash the USB version (`ot-cli-ftd-USB.hex`), you can use either the **nRF Connect for Desktop** application or the **nrfjprog** command-line tool. Follow the steps below based on your preferred method:
26+
To flash the USB version (`ot-rcp-USB.hex`), you can use either the **nRF Connect for Desktop** application or the **nrfjprog** command-line tool. Follow the steps below based on your preferred method:
2927

3028
#### Using nRF Connect for Desktop
3129

@@ -35,7 +33,7 @@ To flash the USB version (`ot-cli-ftd-USB.hex`), you can use either the **nRF Co
3533
- Insert the dongle into a USB port on your computer.
3634
- Hold down the reset button while inserting the dongle until the LED blinks rapidly. This indicates the device is in program mode.
3735
4. In the Programmer Tool, select the detected nRF52840 dongle from the device list.
38-
5. Click **Add file** and choose the `ot-cli-ftd-USB.hex` file.
36+
5. Click **Add file** and choose the `ot-rcp-USB.hex` file.
3937
6. Ensure the **Erase & Write** option is selected.
4038
7. Click **Write** to flash the firmware onto the dongle.
4139

@@ -50,7 +48,7 @@ If you prefer using the command-line tool, **nrfjprog** (part of the [nRF Comman
5048
2. Flash the USB firmware:
5149
- Use the following command:
5250
```bash
53-
nrfjprog --program ot-cli-ftd-USB.hex --sectorerase --reset
51+
nrfjprog --program ot-rcp-USB.hex--sectorerase --reset
5452
```
5553

5654
3. Verify the flashing process:
@@ -66,6 +64,10 @@ Once you have downloaded the firmware, you can flash it onto your nRF52840 devic
6664
nrfjprog -f nrf52 --chiperase --program ot-cli-ftd-UART.hex --reset
6765
```
6866

67+
## Home Assistant
68+
69+
👉 For Home Assistant setup instructions, check out [homeassisten-setup-otbr.md](./homeassisten-setup-otbr.md).
70+
6971
## License
7072

7173
This repository and the OpenThread firmware are licensed under the [BSD 3-Clause License](LICENSE).

homeassisten-setup-otbr.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
## Home Assistant Thread Setup Guide
2+
3+
Once the firmware is flashed to your nRF52840 dongle, follow these steps to set up OpenThread in Home Assistant.
4+
5+
### 1. Install OpenThread Border Router Add-on
6+
7+
Go to **Settings > Add-ons > Add-on Store**, and install the **OpenThread Border Router** add-on.
8+
9+
#### Configuration
10+
11+
- **Device**: /dev/serial/by-id/usb-Nordic_Semiconductor_nRF528xx_OpenThread_Device_XXXXXXXXXXXX-if00
12+
*(Note: Device path may differ depending on your system)*
13+
- **Baudrate**: 460800
14+
- **Hardware flow control**: on
15+
- **Automatically flash firmware**: off
16+
- **Log level**: default:warn
17+
- **OTBR firewall**: on
18+
- **NAT64**: off
19+
20+
After starting the add-on, check the logs. You should see:
21+
22+
```
23+
[20:57:37] INFO: Successfully sent discovery information to Home Assistant.
24+
s6-rc: info: service otbr-agent-rest-discovery successfully started
25+
s6-rc: info: service legacy-services: starting
26+
s6-rc: info: service legacy-services successfully started
27+
```
28+
### 2. Add Thread Integration
29+
30+
- Go to **Settings > Devices & Services**
31+
- Click **"+ Add Integration"** and select **Thread**
32+
- Click the gear icon ⚙️ next to the `ha-thread-xxxx` network
33+
- Select **Preferred network**
34+
35+
### 3. Sync Thread Credentials to Mobile
36+
37+
In the **Home Assistant Companion App** (as described in [this guide](https://www.home-assistant.io/integrations/thread/#case-1-making-home-assistant-your-first-thread-network)):
38+
39+
- Go to **Settings > Companion App > Troubleshooting**
40+
- Tap **Sync Thread credentials**
41+
42+
- If you skip this step, your phone won’t be aware of the Thread network and Border Router, which means it won’t be able to commission or control Thread devices—even if the network itself is working properly.
43+
44+
### 4. Add Matter Server and Pair Devices
45+
46+
- Add the **Matter Server** integration
47+
- Pair your Matter-compatible device using the Companion App
48+
49+
### Resources
50+
51+
- [Thread Integration Documentation](https://www.home-assistant.io/integrations/thread/)
52+
- [Making Home Assistant Your First Thread Network](https://www.home-assistant.io/integrations/thread/#case-1-making-home-assistant-your-first-thread-network)

0 commit comments

Comments
 (0)