diff --git a/matter_server/CHANGELOG.md b/matter_server/CHANGELOG.md index 6359775cf3f..4266f675cb7 100644 --- a/matter_server/CHANGELOG.md +++ b/matter_server/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 8.0.1 + +- Allow to configure primary_interface + ## 8.0.0 - Bump Python Matter Server to [8.0.0](https://github.com/home-assistant-libs/python-matter-server/releases/tag/8.0.0) diff --git a/matter_server/config.yaml b/matter_server/config.yaml index b4267fda7a1..1766d966571 100644 --- a/matter_server/config.yaml +++ b/matter_server/config.yaml @@ -1,5 +1,5 @@ --- -version: 8.0.0 +version: 8.0.1 slug: matter_server name: Matter Server description: Matter WebSocket Server for Home Assistant Matter support. @@ -28,6 +28,7 @@ options: log_level_sdk: error beta: false enable_test_net_dcl: false + primary_interface: null schema: log_level: list(verbose|debug|info|warning|error|critical) log_level_sdk: list(automation|detail|progress|error|none)? @@ -38,6 +39,7 @@ schema: - str? matter_server_version: str? matter_sdk_wheels_version: str? + primary_interface: str? ports: 5580/tcp: null stage: stable diff --git a/matter_server/rootfs/etc/s6-overlay/s6-rc.d/matter-server/run b/matter_server/rootfs/etc/s6-overlay/s6-rc.d/matter-server/run index 4b74c1065da..66819977ff0 100755 --- a/matter_server/rootfs/etc/s6-overlay/s6-rc.d/matter-server/run +++ b/matter_server/rootfs/etc/s6-overlay/s6-rc.d/matter-server/run @@ -53,7 +53,11 @@ if bashio::config.true "enable_test_net_dcl"; then extra_args+=('--enable-test-net-dcl') fi -primary_interface="$(bashio::api.supervisor 'GET' '/network/info' '' 'first(.interfaces[] | select (.primary == true)) .interface')" +if bashio::config.has_value "primary_interface"; then + primary_interface=$(bashio::config 'primary_interface') +else + primary_interface="$(bashio::api.supervisor 'GET' '/network/info' '' 'first(.interfaces[] | select (.primary == true)) .interface')" +fi # Try fallback method (e.g. in case NetworkManager is not available) # shellcheck disable=SC2086 diff --git a/matter_server/translations/en.yaml b/matter_server/translations/en.yaml index d7e4432f33c..ae9f2e3f8ce 100644 --- a/matter_server/translations/en.yaml +++ b/matter_server/translations/en.yaml @@ -42,5 +42,10 @@ configuration: description: >- Install custom Matter SDK wheels version. NOTE: The API might not be compatible with the Python Matter server. + primary_interface: + name: Primary network interface + description: >- + Override the default system primary interface. This should be the interface + used for provisioning new Matter devices. network: 5580/tcp: Matter Server WebSocket server port.