31

I would like to know if it is possible to get the battery level of a connected Bluetooth device (for example, a headset) on Mac OSX.

I'm looking for a command line or a library that would offer this possibility.

Thanks.

Maxime Willinger
  • 449
  • 1
  • 4
  • 7
  • There are not easy solutions if we don't know what are we dealing with. But generally, haven't you tried with `ioreg`? For example, here are [some uses for the OS X's Magic Mouse and Magic Keyboard](http://stackoverflow.com/q/3547797). – Lutarisco Feb 26 '17 at 15:10
  • 7
    Interesting to have such feature in iOS (battery level next to the bluetooth headset icon) but not in macOS. – Can Poyrazoğlu Mar 08 '17 at 09:20
  • This application claims to do it (have not verified): https://bjango.com/mac/istatmenus/ – The Matt Jan 14 '20 at 17:59
  • 1
    @TheMatt User of iStat Menus, it does seem possible to add Apple AirPods (I don't own that so can't verify). My Sony WH-1000XM3 bluetooth headsets don't show up. – Kristoffer Bakkejord Mar 30 '20 at 07:47

2 Answers2

2

There is no easy way to get this information without special application.

There is an app especially designed for this only purpose - called AKKU.

It worked with Bose and Sony's headphones (checked)

https://github.com/jariz/Akku/

Remember to download version 0.1.0-beta.10.

enter image description here

The app works after restart.

Ilan
  • 401
  • 1
  • 8
  • 21
Statham
  • 4,000
  • 2
  • 32
  • 45
-25

Just follow this guide: http://osxdaily.com/2014/05/18/how-to-check-bluetooth-keyboard-battery-levels-from-the-command-line-on-mac-os-x/

Basically:

You just need to know the name of the device and then use ioreg, like this:

ioreg -c <devicename> |grep '"BatteryPercent" ='

Additionally, you could retrieve broader battery information with:

ioreg -c BeatsBluetoothHeadset |grep Battery

Next time, just google ... Since a similar question was already answered https://apple.stackexchange.com/questions/215256/check-the-battery-level-of-connected-bluetooth-headphones-from-the-command-line

MDK
  • 1
  • 3
  • 2
    That's for keyboards only, not headsets – Arne Jun 14 '17 at 15:49
  • Nope this one is specially written for headsets in mind. – MDK Jun 14 '17 at 16:27
  • 7
    Doesn't work with JBL 450BT. On the iPhone i get the small battery-indicator when connected – moeses Aug 15 '17 at 19:42
  • 5
    Does not work for Sony WH-1000XM3 headsets. @MDK, you could verify your google search before posting an answer as well. – Jorge Salcedo Jul 19 '19 at 17:07
  • Not finding the property even for the keyboard under Mac OS X Catalina (10.15.1) – Asier Nov 26 '19 at 09:32
  • 2
    Your solution does NOT work for Sennheiser HD 4.40BT. Most of us have "just googled" - that's how we landed here after all. The similar answer you linked to also does NOT work. That's why we're here. So can you help us answer the question instead of chastising us for not doing work that we have already done? :-). Thanks! – Joel Mar 08 '20 at 22:31
  • Don't work on another devices like bose qc 35, the command line returns nothings – Statham Apr 25 '20 at 09:36