Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions matter_server/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 3 additions & 1 deletion matter_server/config.yaml
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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)?
Expand All @@ -38,6 +39,7 @@ schema:
- str?
matter_server_version: str?
matter_sdk_wheels_version: str?
primary_interface: str?
ports:
5580/tcp: null
stage: stable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions matter_server/translations/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,10 @@
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

Check failure on line 48 in matter_server/translations/en.yaml

View workflow job for this annotation

GitHub Actions / YAMLLint

line too long
used for provisioning new Matter devices.
network:
5580/tcp: Matter Server WebSocket server port.