matter_server: add ble_proxy option#4617
Conversation
Adds a new `ble_proxy` boolean option that passes `--ble-proxy` to the matter server, enabling BLE commissioning through Home Assistant's bluetooth component (including ESPHome BLE proxies) via WebSocket. When enabled, the matter server exposes a /ble WebSocket endpoint that the HA matter integration connects to for proxying BLE operations. This is separate from `bluetooth_adapter_id` which configures a local HCI adapter directly. Both options are mutually exclusive at the server level (--ble-proxy takes precedence with a warning). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
e6d29b1 to
6186cdc
Compare
Add `ble_proxy` add-on option that maps to the Matter Server's `--ble-proxy` flag. Lets the Home Assistant Matter integration drive BLE commissioning through HA's bluetooth stack (incl. ESPHome BLE proxies) instead of requiring a Bluetooth adapter on the add-on host. Only available with the Beta Matter Server (>= 0.7.1, JavaScript-based) and mutually exclusive with `bluetooth_adapter_id`.
…uirement - Ignore `bluetooth_adapter_id` with a warning when `ble_proxy` is set (the two CLI flags are mutually exclusive at the Matter Server, but this also avoids passing both from the add-on side). - Mention the Home Assistant 2026.06 requirement in the option description and CHANGELOG (the Matter integration's BLE proxy support lands there).
…not add-on The 8.5.0 add-on works fine without 2026.06; only the BLE proxy feature needs the HA Matter integration support that lands there.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThis pull request introduces a new ChangesBLE Proxy Feature
🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Proposed change
Add a `ble_proxy` boolean option to the Matter Server add-on. When
enabled, the add-on starts the matter-server with `--ble-proxy`
instead of the local-adapter `--bluetooth-adapter` flag. The
matter-server then exposes a `/ble` WebSocket endpoint that Home
Assistant's Matter integration connects to and bridges through HA's
bluetooth component (including ESPHome BLE proxies).
This is the add-on side of a three-repo change:
Add BLE proxy support to matter integration core#171384
The two BLE-related options are mutually exclusive at the
matter-server level — `--ble-proxy` takes precedence if both are
set, with a warning logged. The add-on docs note the conflict.
Type of change
Test plan
matter-server start command (verified in `s6-rc.d/.../run`).
HA's bluetooth integration, with matter-server in `--ble-proxy`
mode.
🤖 Generated with Claude Code
Summary by CodeRabbit
ble_proxyconfiguration option (v8.5.0) to expose Matter Server's BLE proxy endpoint for Home Assistant's Matter integration. Requires Home Assistant 2026.06+ and Beta Matter Server ≥ 0.7.1. This setting is mutually exclusive with Bluetooth Adapter ID.