DavesCodeMusings / BLE-Battery-Beacon

A proof of concept for using custom Bluetooth Low Energy devices to integrate with Home Assistant
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Need to decode battery level from Manufacturer Data in ESPHome #3

Open DavesCodeMusings opened 2 months ago

DavesCodeMusings commented 2 months ago

Battery level is still available as a GATT characteristic, but as a beacon device, it's also in the advertisement's Manufacturer Data. Need to make that data available to Home Assistant via ESPHome.

This link can help: https://community.home-assistant.io/t/esp32-ble-tracker-how-to-log-look-at-bluetooth-advertising-data/693925/2

DavesCodeMusings commented 2 months ago

Better yet, send battery level in the BLE advertisement using the BLEHome format that Home Assistant already understands.