Bluetooth with openhabian on a Raspberry Pi 3

I’ve been trying to get this going too, and I’ve got the Pi detecting devices. Haven’t tried using it in openhab yet, that looks like it will be possible in the next release.

This thread got me most of the way there, but I could only scan using sudo.

This Stack Exchange thread got me the rest of the way.

The basics steps are:

sudo apt-get install -y bluez python-bluez python-dev libbluetooth-dev raspberrypi-sys-mods
sudo apt-get install -y pi-bluetooth
sudo reboot
sudo apt-get install libcap2-bin

Once those steps were done, I was able to use

hcitool lescan