zeitlings Posted April 30, 2023 Share Posted April 30, 2023 (edited) Bluetooth Device Battery View the battery charge status of connected Bluetooth devices (macOS 13.0+) Make sure you have SF Pro installed to render the symbols. Edited May 10, 2023 by zeitlings Link to comment
zeitlings Posted April 30, 2023 Author Share Posted April 30, 2023 I only confirmed that it works with connected Apple devices. Other devices I briefly connected for testing were not found by ioreg or the system profiler, or the battery information was simply not there. If you have a device that you think should show up but doesn't, you can print a log to Alfred's debug window by typing -btb. If you see battery status information that the workflow ignores, feel free to send me those logs. That way I can try to fine-tune the parser. The same goes for specific information about older AirPods and case versions. If you let me know what uniquely identifies them, they can get proper representation. Link to comment
Terminal Posted April 30, 2023 Share Posted April 30, 2023 How are you getting those Icons in the subtitle ? Link to comment
zeitlings Posted April 30, 2023 Author Share Posted April 30, 2023 24 minutes ago, Terminal said: How are you getting those Icons in the subtitle ? They come from Apple's SF Symbols. They are available through the macOS System Font (SF Pro), so technically they're not icons or images and can be used in the subtitles for that reason 😁 Link to comment
Terminal Posted April 30, 2023 Share Posted April 30, 2023 52 minutes ago, zeitlings said: They come from Apple's SF Symbols. They are available through the macOS System Font (SF Pro), so technically they're not icons or images and can be used in the subtitles for that reason 😁 Dang! I thought I missed an update and Alfred expanded its capabilities! Either way, this helps me with my workflow update! You've got great workflows btw. Thanks zeitlings 1 Link to comment
giovanni Posted May 10, 2023 Share Posted May 10, 2023 On 4/30/2023 at 12:53 PM, zeitlings said: They are available through the macOS System Font (SF Pro) but the user needs to have them installed, correct? Or are you able to embed them in your workflow? Link to comment
zeitlings Posted May 10, 2023 Author Share Posted May 10, 2023 17 minutes ago, giovanni said: but the user needs to have them installed Possibly. I assumed that by now macOS ships with SF Pro by default. Doesn't it? The font is not included in the workflow. Link to comment
giovanni Posted May 10, 2023 Share Posted May 10, 2023 not sure about Ventura because I installed them, but they are not in Monterey. Link to comment
vitor Posted May 10, 2023 Share Posted May 10, 2023 Unfortunately the symbols are not available as a font by default in Ventura, no. Link to comment
vurte Posted May 22, 2023 Share Posted May 22, 2023 I'm trying this out and this is the first time I'm trying to troubleshoot a workflow. Here's what I have from the debug: [13:50:30.728] Logging Started... [13:50:42.658] Device Battery[Script Filter] Queuing argument '(null)' [13:50:43.264] Device Battery[Script Filter] Script with argv '(null)' finished [13:50:43.266] Device Battery[Script Filter] {"items":[{"title":"No Bluetooth devices connected"}],"rerun":4} [13:50:47.273] Device Battery[Script Filter] Queuing argument '(null)' [13:50:47.588] Device Battery[Script Filter] Script with argv '(null)' finished [13:50:47.590] Device Battery[Script Filter] {"items":[{"title":"No Bluetooth devices connected"}],"rerun":4} [13:50:51.596] Device Battery[Script Filter] Queuing argument '(null)' [13:50:51.929] Device Battery[Script Filter] Script with argv '(null)' finished [13:50:51.931] Device Battery[Script Filter] {"items":[{"title":"No Bluetooth devices connected"}],"rerun":4} [13:50:55.937] Device Battery[Script Filter] Queuing argument '(null)' [13:50:56.215] Device Battery[Script Filter] Script with argv '(null)' finished [13:50:56.217] Device Battery[Script Filter] {"items":[{"title":"No Bluetooth devices connected"}],"rerun":4} I currently have my AirPods Pro connected. Link to comment
zeitlings Posted May 28, 2023 Author Share Posted May 28, 2023 Hey @vurte The debug info you shared shows what happens when you use the keyword "btb". To see device logs you can just prefix the keyword with a minus sign: "-btb". This will show what information macOS provides through the channels that the workflow uses to find the device's battery information. There is an update available that should accommodate more devices. However, the way AirPods are handled hasn't changed. If your device is still not showing up, feel free to share the log that you get when typing "-btb". v1.1.0 Added support for more devices Added headphones icon Link to comment
kaeos Posted October 28, 2023 Share Posted October 28, 2023 Debug Info ------------------------------------------ Alfred: v5.1.4 (2195) Device Battery: v1.1.0 ========================================== System Profiler: ========================================== Bluetooth: Bluetooth Controller: Address: 14:98:77:40:A6:3A State: On Chipset: BCM_4378 Discoverable: Off Firmware Version: 21.1.527.3719 Product ID: 0x4A00 Supported services: 0x392039 < HFP AVRCP A2DP HID Braille LEA AACP GATT SerialPort > Transport: PCIe Vendor ID: 0x004C (Apple) Connected: Kasti: Address: 28:11:A5:75:67:74 Vendor ID: 0x009E Product ID: 0x4020 Firmware Version: 4.8.1 Minor Type: Headphones Services: 0x800019 < HFP AVRCP A2DP ACL > Not Connected: Macbook Air: Address: DE:AF:A1:A1:4F:27 RSSI: -35 ========================================== ioreg Device Info: ========================================== Link to comment
kaeos Posted October 28, 2023 Share Posted October 28, 2023 (edited) could somebody help? @zeitlings maybe? Edited October 28, 2023 by kaeos forgot tag Link to comment
vitor Posted October 28, 2023 Share Posted October 28, 2023 Make sure Alfred is added to System Preferences → Privacy & Security → Bluetooth. That seems to now be required in Sonoma. Link to comment
kaeos Posted October 28, 2023 Share Posted October 28, 2023 (edited) 5 hours ago, vitor said: Make sure Alfred is added to System Preferences → Privacy & Security → Bluetooth. That seems to now be required in Sonoma. I have, that was the first thing i thought of. However no luck still my headphones won't show up. I attach you again below the debug console. I even tried restoring to defaults and reinstalling the workflow, still no change. ========================================== Debug Info ------------------------------------------ Alfred: v5.1.4 (2195) Device Battery: v1.1.0 ========================================== System Profiler: ========================================== Bluetooth: Bluetooth Controller: Address: 14:98:77:40:A6:3A State: On Chipset: BCM_4378 Discoverable: Off Firmware Version: 21.1.527.3719 Product ID: 0x4A00 Supported services: 0x392039 < HFP AVRCP A2DP HID Braille LEA AACP GATT SerialPort > Transport: PCIe Vendor ID: 0x004C (Apple) Connected: Kasti: Address: 28:11:A5:75:67:74 Vendor ID: 0x009E Product ID: 0x4020 Firmware Version: 4.8.1 Minor Type: Headphones Services: 0x802018 < AVRCP A2DP Braille ACL > Not Connected: Macbook Air: Address: DE:AF:A1:A1:4F:27 RSSI: -36 ========================================== ioreg Device Info: ========================================== Edited October 28, 2023 by kaeos Link to comment
zeitlings Posted October 29, 2023 Author Share Posted October 29, 2023 The System Profiler results don't include any information about your headphones' battery status. Without that, I'm afraid there's nothing to work off of. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now