seemoo-lab / openhaystack

Build your own 'AirTags' 🏷 today! Framework for tracking personal Bluetooth devices via Apple's massive Find My network.
https://owlink.org
GNU Affero General Public License v3.0
8.03k stars 428 forks source link

Low battery status warning #185

Closed jrusi closed 1 year ago

jrusi commented 1 year ago

Is your feature request related to a problem? Please describe. No

Describe the solution you'd like Receive notification of beacon's low battery

Additional context Woud be very cool to see an exclamation mark by the device name informing that the battery is low and should be changed

Sn0wfreezeDev commented 1 year ago

We are not going to implement this, because it would require us to read the battery from a various differnt types of beacons, which is not possible.

bobrippling commented 1 month ago

Out of interest - from the paper, the status byte is this one (in the middle):

https://github.com/seemoo-lab/openhaystack/blob/7d72fa1ac19d2a9f6dec43011be07df8976a8b02/Firmware/ESP32/main/openhaystack_main.c#L31-L33

For writing my own firmware, do you know if the representation or encoding of this byte is documented anywhere? I notice that zero appears to represent "full battery"