Skip to content

Add custom device names via Rename Device menu item#181

Open
ATLMCW wants to merge 1 commit into
ts1:masterfrom
ATLMCW:master
Open

Add custom device names via Rename Device menu item#181
ATLMCW wants to merge 1 commit into
ts1:masterfrom
ATLMCW:master

Conversation

@ATLMCW
Copy link
Copy Markdown

@ATLMCW ATLMCW commented May 16, 2026

Summary

  • Adds a Rename Device… menu item that lets users assign a custom label (e.g. "My iPhone", "My Apple Watch") to the monitored BLE device
  • Custom name replaces the raw auto-detected name in the device scan list, while still showing MAC address and RSSI
  • Custom name is prefixed to the RSSI readout at the top of the menu (e.g. My iPhone: −65dBm)
  • Names are persisted in UserDefaults keyed by CoreBluetooth UUID and survive restarts
  • Menu item is greyed out until a device is selected; leaving the name blank clears it

Test plan

  • Select a device from the Device submenu
  • Click "Rename Device…" and enter a custom name — confirm it appears in the device list and monitor readout
  • Reopen the menu and confirm the name persists after restart
  • Open "Rename Device…" again, clear the name, confirm it reverts to the auto-detected name
  • Confirm "Rename Device…" is greyed out when no device is selected

🤖 Generated with Claude Code

Users can now label any monitored BLE device (e.g. "My iPhone") through
a new "Rename Device…" menu item. The label is shown in the device scan
list and prefixed to the RSSI readout in the menu bar. Names are stored
in UserDefaults keyed by CoreBluetooth UUID and persist across restarts.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant