Skip to content
Open
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
2 changes: 1 addition & 1 deletion openthread_border_router/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ ports_description:
8080/tcp: OpenThread Web port
8081/tcp: OpenThread REST API port
schema:
device: device(subsystem=tty)
device: device(subsystem=tty)?
baudrate: list(57600|115200|230400|460800|921600|1000000)
flow_control: bool
backbone_interface: str?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,14 @@ if [ "$(cat /proc/sys/net/ipv6/conf/all/forwarding)" != "1" ]; then
bashio::log.warning "IPv6 routing/forwarding is not enabled! Make sure the Home Assistant host has IPv6 forwarding enabled."
fi

device=$(bashio::config 'device')
if ! bashio::config.has_value 'device' && ! bashio::config.has_value 'network_device'; then
bashio::exit.nok "No device configured. Set either 'device' (serial port) or 'network_device' (TCP host:port)."
fi

if bashio::config.has_value 'network_device'; then
device="/tmp/ttyOTBR"
else
device="$(bashio::config 'device')"
fi

baudrate=$(bashio::config 'baudrate')
Expand Down
Loading