-
-
Notifications
You must be signed in to change notification settings - Fork 6
Features Bluetooth
Tuck edited this page Jun 28, 2026
·
3 revisions
Discover, pair, connect, and manage Bluetooth devices.
List known (paired or connected) Bluetooth devices.
deskbrid bluetooth.listNo parameters.
Response:
{
"type": "response",
"status": "ok",
"data": [
{"name": "Sony WH-1000XM4", "address": "XX:XX:XX:XX:XX:XX", "connected": true, "paired": true, "device_class": "headset"},
{"name": "Magic Mouse", "address": "YY:YY:YY:YY:YY:YY", "connected": false, "paired": true, "device_class": "mouse"}
]
}Scan for discoverable Bluetooth devices within range.
| Parameter | Type | Description |
|---|---|---|
duration |
uint? | Scan duration in seconds (default: 10) |
deskbrid bluetooth.scan '{"duration": 15}'{
"type": "bluetooth.scan",
"duration": 15
}Response:
{
"type": "response",
"status": "ok",
"data": [
{"name": "iPhone", "address": "ZZ:ZZ:ZZ:ZZ:ZZ:ZZ", "device_class": "phone", "rssi": -65}
]
}Stop an active Bluetooth scan.
deskbrid bluetooth.stop_scanNo parameters.
Connect to a paired Bluetooth device.
| Parameter | Type | Description |
|---|---|---|
address |
string | Device MAC address |
deskbrid bluetooth.connect '{"address": "XX:XX:XX:XX:XX:XX"}'{
"type": "bluetooth.connect",
"address": "XX:XX:XX:XX:XX:XX"
}Disconnect a connected Bluetooth device.
| Parameter | Type | Description |
|---|---|---|
address |
string | Device MAC address |
deskbrid bluetooth.disconnect '{"address": "XX:XX:XX:XX:XX:XX"}'Initiate pairing with a discovered Bluetooth device.
| Parameter | Type | Description |
|---|---|---|
address |
string | Device MAC address |
deskbrid bluetooth.pair '{"address": "ZZ:ZZ:ZZ:ZZ:ZZ:ZZ"}'Some devices require a pairing confirmation (PIN or numeric comparison). The agent will report the required code through the confirmation mode workflow.
Remove (unpair) a Bluetooth device.
| Parameter | Type | Description |
|---|---|---|
address |
string | Device MAC address |
deskbrid bluetooth.forget '{"address": "YY:YY:YY:YY:YY:YY"}'from deskbrid import Deskbrid
client = Deskbrid()
# List known devices
devices = client.bluetooth_list()
for d in devices:
print(f"{d['name']} - {'connected' if d['connected'] else 'disconnected'}")
# Scan for new devices
found = client.bluetooth_scan(duration=10)
for d in found:
print(f"Found: {d['name']} ({d['address']})")
# Pair and connect
if found:
client.bluetooth_pair(address=found[0]["address"])
client.bluetooth_connect(address=found[0]["address"])- BlueZ D-Bus API (
org.bluez). Requiresbluetoothdrunning. - Pairing may require a Bluetooth agent to handle PIN/confirmation codes.
- Scanning requires Bluetooth adapter in discoverable mode.
Stable — list, scan, connect, disconnect. Experimental — pair, forget.
- Accessibility
- Apps
- Audio
- Backlight (LED driver)
- Bluetooth
- Clipboard
- Color Picker
- Desktop Portal
- Desktop Settings
- Files
- Hotkeys
- Input
- Keyboard Layouts
- Media (MPRIS)
- Monitors
- Network
- Notifications
- Print (CUPS)
- Screenshots
- Screen Recording
- Screencast
- Self-Update
- System
- System Tray
- Systemd Units & Timers
- Terminals (PTY)
- Windows & Workspaces