esphome / feature-requests

ESPHome Feature Request Tracker
https://esphome.io/
422 stars 27 forks source link

Scan Bluetooth (non BLE) devices #65

Open abmantis opened 5 years ago

abmantis commented 5 years ago

Describe the problem you have/What new integration you would like

It would be great to be able to scan classic bluetooth (not BLE) devices, like phones.

Please describe your use case for this integration and alternatives you've tried:

A device tracker for phones.

Additional context

I'm not sure if there's a high-level API for this yet, but it is possible: https://techtutorialsx.com/2018/03/04/esp32-arduino-bluetooth-classic-getting-started/

The PR mentioned on that article is already merged, so it should be simpler.

abmantis commented 5 years ago

Quick question: are you guys using (or OK with using) the espidf framework from platformio? I'm working on a classic BT device tracker for the ESP32, which could probably be included in esphome, but it requires that framework.

OttoWinter commented 5 years ago

ESPHome uses the arduino framework, but that uses esp-idf internally, so yes that can be used (see ble_tracker implementation for example)

abmantis commented 5 years ago

@OttoWinter cool, thanks! I'll try to do something then!

runevad commented 5 years ago

If this would be implemented, does it mean we can use an ESP32 and Esphome to set up Room tracking like: https://www.home-assistant.io/components/sensor.mqtt_room/ ? That would be awesome :)

abmantis commented 5 years ago

@runevad yes, that was my plan. Unfortunately I'm finding it hard to do without having an impact on the phone's baterry, since the classic bluetooth discovery APIs from espressif are incomplete at the moment.

GeoffAtHome commented 5 years ago

Would be great if you could detect regular Bluetooth devices as easily as Bluetooth LE device.

Any alternative is to make your phone a Bluetooth LE beacon. This should use less power? I am going to try https://play.google.com/store/apps/details?id=net.alea.beaconsimulator&rdid=net.alea.beaconsimulator and will report.

nmsoares commented 5 years ago

Any developments on this ?

deex2 commented 5 years ago

Hi,

Any developments on this please?

OttoWinter commented 5 years ago

Not that I know of - also BLE is already enough of a headache to support (lots of bugs bubbling up from esp-idf, mostly crashing the device at random times). So the appetite for me to implement a second BLE-like system is rather low.

martydingo commented 2 years ago

Any progress?

It's been years. And I have a device that requires pairing before BLE can work. I am seeing a status=133 error code, and I can't seem to get the ESP32 to pair with the BLE device.