this is what I added to my esphome on nodemcu-32s config that also run climate component, just to test it out, but no new entry appears in home assistant integration esphome for that device (i have tried deleting it and adding again )
if i understand it correctly it should work like this:
i add bluetooth_proxy to one of my esp32 based esphome devices
in home assistant i add esphome integration and point it to that device ip (i do not have working mdns in my network, if i had working mdns, it should be automatically added)
bluetooth integration is automatically set up and discover devices that proxy sees
if the device is apple homekit compatible it is automatically also added under homekit controller integration (or if it is first device like that integration is created) and HA now works as apple homekit hub (ie. apple TV)
There is nothing to configure on the Home Assistant side. You recompile the ESP with the bluetooth_proxy: line in it. And it starts forwarding the packets to Home Assistant (if it was already a device within Home Assistant, as would be the case with an existing ESPHome device). There is nothing to see on the HA side. When a device is “heard” by the ESP32 device, that is forwarded to HA and if it is a device that HA knows how to decode, the relevant integration will pop up as a discovered device.
On the ESP32 device:
esp32_ble_tracker:
scan_parameters:
active: true
is not required, if you didn’t already have that in the config.
I’m trying to use this to track my iBeacon for automations, but can’t find a way to make it work. I’ve flashed my ESP32 with the Bluetooth Proxy firmware and I’ve added the ESP32 integration to HA. All I see in the ESP32 device page is a Safe Mode Boot entity button… How do I track a device? (I know both UUID and mac address)
And the packages: entry should add everything to the config that you need. Just follow that github link. But I too have no working hub. Nothing showing in the logs. While before I already had a BLE BT tracker ESP device that worked and decided to try this. But not really clear on how to get it working.
So far we don’t know.
They said in the stream (which people really should watch) that Home Assistant does know which ESP device is reporting what advertisement it heard. But no one has yet said anything about how to use this for tracking.
There is nothing visual on the home assistant side to show that the proxy is connected, or that an ESP device has detected anything. Until the advertisement is for a device that an integration exists for - and then you’ll see a new device found box.
Otherwise, it seems that enabling the debug logs for the Bluetooth component is the only real way to see that it is hearing Bluetooth advertisements
I am also wondering how to check if the proxy is really working like e.g. to check the logs showing ble mac addresses which has passed through the proxy?
Is there no way to control that the proxy is successfully processing advertisements?
My only workaround is currently to check if the RSSI has been improved for some devices. But i dont know if this indicator can be used to determine the proxy is working or not? If i understand it right the response can only improve when the RSSI is going down using a proxy?
Hi, this is working great!
I have a xiaomi mi-plant that is far away from the home-assistant NUC, before trying this I don’t have data from it… so I flashed a generic esp32, turn it on near the mi-plant, and voilà ! data is comming!
now I’m wondering if I can add this to some of my sonoff m5 switches… as far as I know those things have an esp32 inside…
I’ll try and post my finding here…
Just add this in your ESPHome configuration file for the case you already has an existing ESPHome device running, not in the Home Assistant configuration file:
So I watched the video, turned on debug logger on homeassistant.components.bluetooth and yes, data from the Bluetooth Proxy starts getting into home-assistant.log. The scan shows devices nearby and RSSI info, but not UUID. Any suggestions on how to add a tracker sensor for an iBeacon UUID?
I am trying to set this up (I want also to see if it works for pairing Matter devices, btw) but I’m getting the following when I try to compile anything in ESPHome:
Component not found: bluetooth_proxy.
and the editor also complains about the bluetooth_proxy: in the configuration file. I HAVE updated to HA 2022.9.1, it is a regular ESP32 device, etc, and I’ve included esp32_ble_tracker: as well (with no other configuration for either). However, I am running “ESPHome (dev)”, which (since it is the dev version) should have all the latest stuff… right? The change log linked from the add-on page even mentions it. I would uninstall the ESPHome addon and reinstall a non-dev version but don’t want to screw up my ESPHome configuration. Ideally the dev version would have support for this, too. I’m thinking perhaps it was simply overlooked?
Update: I switched to the “regular” release (did not uninstall the dev version, just stopped it and installed the regular one alongside it then started it) and the compile works now. So this feature made it into the regular release, but not the dev release?