I see that the recently-added hs.battery.otherBatteryInfo() function can be used to get battery info for attached bluetooth devices:
|
/// hs.battery.otherBatteryInfo() -> table |
|
/// Function |
|
/// Returns information about non-PSU batteries (e.g. bluetooth accessories) |
|
/// |
|
/// Parameters: |
|
/// * None |
|
/// |
|
/// Returns: |
|
/// * A table containing information about other batteries known to the system, or an empty table if no devices were found |
Should Apple AirPods be included in the battery info returned by hs.battery.otherBatteryInfo()? I ask, because I can see the battery info for Apple AirPods in System Preferences, but I don't see any battery info reported by hs.battery.otherBatteryInfo().

> hs.inspect(hs.battery.otherBatteryInfo())
{}
Is there a way to fetch the battery info for AirPods via Hammerspoon?
Refs: 590ea51
Refs: #939
I see that the recently-added
hs.battery.otherBatteryInfo()function can be used to get battery info for attached bluetooth devices:hammerspoon/extensions/battery/internal.m
Lines 391 to 399 in 590ea51
Should Apple AirPods be included in the battery info returned by
hs.battery.otherBatteryInfo()? I ask, because I can see the battery info for Apple AirPods in System Preferences, but I don't see any battery info reported byhs.battery.otherBatteryInfo().Is there a way to fetch the battery info for AirPods via Hammerspoon?
Refs: 590ea51
Refs: #939