I have the following usecase.
I would like to have a raspberry pi in my garage, that continuously scans for bluetooth devices in range.
Reports this to my HA, so that I can trigger automations based on presence of a device in the garage.
Does anyone have good tips/links/etc for how this could be achieved in the best way?
I currently use a Raspberry Pi Zero 2 W.
This has bluetooth by default.
ESP32 sounds like a good idea.
However, then only BLE seems to be supported, which would limit my options.
Secondly, the combination with WIFI appears to give some challenges.
Thirdly, I canât find solid information on whether a âcontinuous scanning modeâ is supported, in which HA is constantly updated on (unpaired) available devices in the vicinity.
Itâs important that devices are detected quickly.
Main usecase is opening the garagedoor when I arrive.
It has to detect my phone/motorcycle/guests so that an automation can open the garage when I arrrive. Preferably in a way that I donât have to âwaitâ for detection.
Battery wise that doesnât seem to be a good solution.
I might be out of home for days, but when I return I want the garage to respond quickly to my arrival.
You donât need to have it on high accuracy all the time. Just when you arrive home.
So enable it when you are x distance away, and disable it when you connect to wifi.
But here he wants it to react outside the home.
Not inside where you have triangulation.
Perhaps it works better with a few of them at the same-ish place.
But it canât ever be quicker than normal BT if itâs just one node used with Bermuda.
I just canât imagine how that would work.
I have a similar situation and question: I have a Bluetooth water timer:
in a location too far from my HA host for reliable BT connection.
First question: When I try to add the Melnor Bluetooth integration, I get:
Error
Config flow could not be loaded: {âmessageâ:âInvalid handler specifiedâ}
Is this a âbecause Iâm running HA in a Docker containerâ thing, or because I donât have a BT portal configured yet, or is there something just wrong with the integration / its installer?
Second question would be: if I put a ESP32 near to the BLE device with Bluetooth Proxy â ESPHome configured, WiFi coverage is good there, but is it going to be reliable to use WiFi as a bridge to BLE on that device? I have a Ras-Pi 2 W that I was thinking of configuring as the bridge, but havenât dug into that yetâŚ
I recently made a RPi Zero 2W pose as a Shelly device and act as ble proxy for scanning,
The project is in PHP glued together from previous work published in GitHub and some parts not yet published.
Runs as cli script, uses hcitool, hciconfig, hcidump and can be started as a systemd service.
If somebody is interested, I can publish the thing as an example, otherwise I might not bother
The two main pieces are:
and
The part that still exists only on my dev server is a virtual shelly device which will be pushed to shelly-connector in few days.