Skip to content

Commit 5ad9322

Browse files
committed
Revert "[openthread_border_router] Remove firmware flashing from the addon (home-assistant#4061)"
This reverts commit 6f606ed.
1 parent 0085bb7 commit 5ad9322

File tree

17 files changed

+115
-14
lines changed

17 files changed

+115
-14
lines changed

openthread_border_router/CHANGELOG.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# Changelog
22

3-
## 2.14.0
4-
- Remove firmware flashing from the addon, this is now handled by Core 2025.7.0.
5-
63
## 2.13.0
74
- Bump to OTBR POSIX version b067e5ac (2025-01-13 22:32:22 -0500)
85
- Bump universal-silabs-flasher to 0.0.28

openthread_border_router/DOCS.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ Follow these steps to get the add-on installed on your system:
1212

1313
## How to use
1414

15-
You will need a 802.15.4 capable radio supported by OpenThread flashed with OpenThread
16-
RCP firmware. Home Assistant Yellow as well as Home Assistant SkyConnect/Connect ZBT-1
17-
are both able to run OpenThread and will be flashed with the correct firmware by Home
18-
Assistant Core.
15+
You will need a 802.15.4 capable radio supported by OpenThread. Home Assistant
16+
Yellow as well as Home Assistant SkyConnect/Connect ZBT-1 are both capable to run
17+
OpenThread. This add-on automatically installs the necessary firmware on these systems.
1918

2019
If you are using Home Assistant Yellow, choose `/dev/ttyAMA1` as device.
2120

@@ -62,6 +61,7 @@ Add-on configuration:
6261
| device (mandatory) | Serial port where the OpenThread RCP Radio is attached |
6362
| baudrate | Serial port baudrate (depends on firmware) |
6463
| flow_control | If hardware flow control should be enabled (depends on firmware) |
64+
| autoflash_firmware | Automatically install/update firmware (Home Assistant SkyConnect/Yellow) |
6565
| otbr_log_level | Set the log level of the OpenThread BorderRouter Agent |
6666
| firewall | Enable OpenThread Border Router firewall to block unnecessary traffic |
6767
| nat64 | Enable NAT64 to allow Thread devices accessing IPv4 addresses |

openthread_border_router/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ FROM $BUILD_FROM
33

44
ARG BUILD_ARCH
55
ARG OTBR_VERSION
6+
ARG UNIVERSAL_SILABS_FLASHER
67

78
# Set shell
89
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
@@ -92,6 +93,8 @@ RUN \
9293
&& cd build/otbr/ \
9394
&& ninja \
9495
&& ninja install) \
96+
&& pip install --break-system-packages \
97+
universal-silabs-flasher==${UNIVERSAL_SILABS_FLASHER} \
9598
&& apt-get purge -y --auto-remove \
9699
git \
97100
nodejs \

openthread_border_router/build.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ build_from:
44
amd64: ghcr.io/home-assistant/amd64-base-debian:bookworm
55
args:
66
OTBR_VERSION: b067e5ac5f8b3e92750df24922017eee2bc0fa04
7+
UNIVERSAL_SILABS_FLASHER: 0.0.28

openthread_border_router/config.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
version: 2.14.0
2+
version: 2.13.0
33
slug: openthread_border_router
44
name: OpenThread Border Router
55
description: OpenThread Border Router add-on
@@ -8,7 +8,7 @@ url: >-
88
arch:
99
- aarch64
1010
- amd64
11-
homeassistant: 2025.7.0
11+
homeassistant: 2023.9.0
1212
gpio: true
1313
hassio_api: true
1414
discovery:
@@ -28,6 +28,7 @@ options:
2828
device: null
2929
baudrate: "460800"
3030
flow_control: true
31+
autoflash_firmware: true
3132
otbr_log_level: notice
3233
firewall: true
3334
nat64: false
@@ -42,6 +43,7 @@ schema:
4243
baudrate: list(57600|115200|230400|460800|921600)
4344
flow_control: bool
4445
network_device: str?
46+
autoflash_firmware: bool
4547
otbr_log_level: list(debug|info|notice|warning|error|critical|alert|emergency)
4648
firewall: bool
4749
nat64: bool

openthread_border_router/rootfs/etc/s6-overlay/s6-rc.d/otbr-agent/dependencies.d/universal-silabs-flasher

Whitespace-only changes.

openthread_border_router/rootfs/etc/s6-overlay/s6-rc.d/otbr-agent/run

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ declare otbr_log_level_int
1717
declare otbr_rest_listen
1818
declare otbr_rest_listen_port
1919

20-
# Cleanup unused configs
21-
if bashio::config.exists 'autoflash_firmware'; then
22-
bashio::addon.option 'autoflash_firmware'
23-
fi
24-
2520
backbone_if="$(bashio::api.supervisor 'GET' '/network/info' '' 'first(.interfaces[] | select (.primary == true)) .interface')"
2621
device=$(bashio::config 'device')
2722

openthread_border_router/rootfs/etc/s6-overlay/s6-rc.d/universal-silabs-flasher/dependencies.d/banner

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
oneshot

0 commit comments

Comments
 (0)