I've found various scripts for scanning for Bluetooth devices, and made a fairly comprehensive logger.
I binned it off because the scanning interfered with playback over airplay in my project.
I'd know like to know how you could retrieve the devices battery levels and, eventually output to HTML. A standard scan will retrieve the device's address. Once the known device addresses (my phone, work phone, Mrs' phone) are gathered, I'd like the battery status of these devices.
I found a similar Reddit thread, but no answers. Any ideas?