Late to this, but I wanted the same thing and ended up writing it: https://github.com/yuzi-co/btproxy
It's a Bluetooth proxy that speaks the ESPHome API, so Home Assistant finds it over mDNS and adds it through the normal ESPHome integration, the same way it adds an ESP32. Active and passive scanning both work, and so do GATT connections, which is what locks, thermostats and the like need. It's a single Go binary with no Python, and on OpenWrt it doesn't need bluetoothd or D-Bus either. It talks to the kernel's Bluetooth stack directly.
My test router is an MT7620A with 128 MB of RAM on 23.05, with an RTL8761B USB stick. The proxy uses about 10 MB of RAM there and the package is about 1.9 MB. It has been serving Home Assistant from that router for the last few weeks. CI also installs and upgrades it in 23.05, 24.10 and 25.12 containers.
There's a signed package feed for mipsle, armv7, arm64 and amd64. On 24.10 and older:
wget -O /tmp/btproxy.pub https://yuzi-co.github.io/btproxy/keys/usign.pub
cp /tmp/btproxy.pub /etc/opkg/keys/$(usign -F -p /tmp/btproxy.pub)
echo "src/gz btproxy https://yuzi-co.github.io/btproxy/opkg/mipsle" >> /etc/opkg/customfeeds.conf
opkg update
opkg install btproxy luci-app-btproxy
The README has the apk version for 25.12. If you'd rather not add a key, the .ipk and .apk files are on the releases page too. The only dependency is kmod-bluetooth, plus whatever driver your dongle needs. luci-app-btproxy is optional and gives you settings, start/stop, an encryption key button and the log.
Two things I learned the hard way:
- The stick shares 2.4 GHz with the router's own Wi-Fi. Scanning is fine, but connects fail more often than on an ESP32. On my router a single connect attempt succeeded around a third of the time, so the proxy retries the failures that a retry can fix. Moving the stick away from the antennas on a USB extension cable is worth trying.
- It replaces bluetoothd on that adapter. If something else on the router uses BlueZ, there's a BlueZ backend that works alongside it instead.
The esphome-linux project linked above is worth a look too. It scans through bluetoothd over D-Bus, so the main difference is that btproxy can run without BlueZ at all, which saves flash and RAM on a small router.
Happy to answer questions. Bug reports go on GitHub.