Bluetooth (API)
The Bluetooth backend turns the node into an A2DP audio receiver. Power the adapter on/off, enter pairing mode, and manage connections, all from the API.
Enabled when Bluetooth is installed on the node.
Endpoints
Section titled “Endpoints”Status
Section titled “Status”GET /bluetoothReturns adapter state, power status, and connected devices.
Control
Section titled “Control”POST /bluetooth/power_upPOST /bluetooth/power_downPOST /bluetooth/pairing_modePairing mode makes the node discoverable for a configurable duration (default 60s). Devices are automatically trusted on first pairing.
Events
Section titled “Events”| Event | Trigger |
|---|---|
bluetooth.updated | Adapter or device state change |
Configuration
Section titled “Configuration”bluetooth: enabled: true timeout: 5s pairing_timeout: 60s idle_timeout: 30midle_timeout auto-powers down the adapter when no device is connected.
System setup
Section titled “System setup”The backend requires BlueZ configured as an A2DP audio receiver. The odio installer handles this automatically. For standalone installations, see Configuration — Bluetooth.
How it works
Section titled “How it works”The backend communicates with BlueZ via D-Bus. On power-up, it auto-unblocks soft-blocked rfkill devices. Paired devices appear as MPRIS players and PulseAudio clients.