How to Set Custom Mouse/Keyboard Battery Level Alert?

Author.@reboot81

PURPOSE:

• Check battery status of BT devices, and if needed notify user

HOW TO USE:

  1. Set Charge_Threshold and Charge_Critical_Threshold
  2. Find references to ”MX Vertical” and adapt to your device if needed (non Apple devices)
  3. Set schedule

WHAT COULD BE IMPROVED:
• MX mouse to a variable
• Change icon of notification?
• More persistant notification at critical level?

REQUIRES:

  1. Keyboard Maestro Ver 7.1+
  2. Yosemite (10.10.5)+

ISSUES:
system_profiler SPBluetoothDataType | grep -A 20 "MX Vertical" does not always include battery level. Connecting and reconnecting makes it visible again.

RELEASE INFO:
1.0 First version
1.1 Fixed logic not triggering ”Low” warnings and not handling turned off MX Vertical mouse.

TAGS: @KM, @Macro, @battery, @Forum, @Tool, Macro Library

reboo81

Mouse & Keyboard Battery Charge Level Warning.kmmacros (18.8 KB)