I have a problem with using ble2mqtt on a MAP-AC2200 and openwrt 23.05.03
But it looks like the problem is somewhat deeper in bluetoothd not being able to attach to dbus.
Sun May 12 18:40:27 2024 daemon.err ble2mqtt[9875]: 2024-05-12 18:40:27 WARNING: Restarting bluetoothd...
Sun May 12 18:40:27 2024 daemon.info bluetoothd[13328]: Bluetooth daemon 5.66
Sun May 12 18:40:27 2024 daemon.err bluetoothd[13328]: src/main.c:main() Unable to get on D-Bus
Sun May 12 18:40:36 2024 daemon.err ble2mqtt[9875]: 2024-05-12 18:40:36 WARNING: Restarting bluetoothd finished
I can see that bluetooth discovery works fine and I can see the appropriate devices:
totally different device, totally different goal but...
i was never able to get the bluetooth stack working perfectly using native openwrt (recent build btw, 23+ etc)... what i was able to do instead was spin up a debian docker container and do it through there.
not sure about the specs on those devices but if you have the space, spin up a debian container and go from there. you'll get a full fledged bluetooth stack working without any issues.
In this case the device ( Xiaomi LYWSD03MMC with custom ATC firmware) is added via the ble2mqtt configuration ( in /etc/ble2mqtt.json), without encrypted beacons (yet)
i used a vanilla debian container and installed dbus in there so there was no need to pass anything.
as far as using the bluetooth stack, i also did all that inside the container so there was no need to expose anything to the host running the container.
for what its worth my use case was actually fair advanced as i used the bluetooth stack to emulate a bluetooth remote control which connected to my android tv so i could send keystrokes much faster than using the adb internal keycode sender.
i no longer use this setup but when i did it worked beautifully for a number of years.