realjax / ESP-32-BLE-Scanner

ESP 32 BLE Scanner for Home Assistant to report Room Presence, forked and refactored.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ESP-32-BLE-Scanner

for Home Assistant. See thread at Home Assistant Board.

This is a fork

This is a fork of this repo https://github.com/HeimdallMidgard/ESP-32-BLE-Scanner. An excellent idea, however I ran into some issues when trying to use it on my esp32. So I forked it in an attempt to fix those issues (changed the MQTT lib used for instance). I also ended up refactoring a lot of the code which made it, I think, somewhat easier to grasp and to extend upon. I am a programmer, but by no means an expert c++ programmer so there is undoubtedly still much room for improvement :). Unfortunately, at the moment I am not able to create a working .bin file from the code, so the only way to get this to work is to install it using PlatformIO (see full original instructions ).

Notes

  • If you have not adjusted config.json and added your wifi credentials, then when you first fire up the esp32, it will be in AP mode. Connect to the wifi AP by the name of 'ESP32 BLE Scanner' and then in your browser connect to http://192.168.4.1 You can then change the settings on the config page accordingly.
  • The bluetooth scanning will only work once there is an active MQTT connection set

About

ESP 32 BLE Scanner for Home Assistant to report Room Presence, forked and refactored.

License:GNU General Public License v3.0


Languages

Language:C++ 67.6%Language:HTML 20.2%Language:CSS 7.9%Language:JavaScript 2.8%Language:C 1.4%