3rd Party Bluetooth Binding. Beta testers needed

HI Vlad,

thanks for reply.
The main problem of binding is that we can not usable because of a small thing -
I have installed bilding testet a little bit - everything went like a charm!
But after i cleaned the cache and restarted - i have found no one of this bindings http://prntscr.com/poohd4 and need to install the again.

Can it be fixed anyway?

Which new openhab version is working with this binding? I’ve tried 2.5.4-1, 2.5.5-1, 2.5.6-2 and my beacon status doesn’t change - even I take it away from bluegiga dongle it shows as connected. Are you using tinyb or bluegiga?

I had to switch back to 2.4 to make things work. I don’t need 2.5. It was a bad idea to move to 2.5.

2020-07-03 11:47:15.257 [DEBUG] [ager.impl.CombinedDeviceGovernorImpl] - Checking if delegates are stale: /XX:XX:XX:XX:XX:XX/XX:XX:XX:XX:38:A1 / false / false
2020-07-03 11:47:15.257 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Trying to find object factory: /XX:XX:XX:XX:18:35
2020-07-03 11:47:15.259 [DEBUG] [ager.impl.CombinedDeviceGovernorImpl] - Updating connection target: /XX:XX:XX:XX:XX:XX/XX:XX:XX:XX:38:A1 : false
2020-07-03 11:47:15.259 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Protocol is unknown. Trying to find factory amongst discovered adapters: /XX:XX:XX:XX:18:35
2020-07-03 11:47:15.260 [DEBUG] [ager.impl.CombinedDeviceGovernorImpl] - Current target / new target: null / null
2020-07-03 11:47:15.441 [DEBUG] [ager.impl.CombinedDeviceGovernorImpl] - Checking if delegates are stale: /XX:XX:XX:XX:XX:XX/XX:XX:XX:XX:34:32 / false / false
2020-07-03 11:47:15.442 [DEBUG] [ager.impl.CombinedDeviceGovernorImpl] - Updating connection target: /XX:XX:XX:XX:XX:XX/XX:XX:XX:XX:34:32 : false
2020-07-03 11:47:15.443 [DEBUG] [ager.impl.CombinedDeviceGovernorImpl] - Current target / new target: null / null
2020-07-03 11:47:17.662 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Transport [bluegiga] reported 4 discovered devices
2020-07-03 11:47:17.664 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Notifying device discovery listeners (discovered): [Device] bluegiga:/XX:XX:XX:XX:4F:A4/XX:XX:XX:XX:CA:F0 [Oclean Z1] : 0
2020-07-03 11:47:17.664 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Notifying device discovery listeners (discovered): [Device] bluegiga:/XX:XX:XX:XX:4F:A4/XX:XX:XX:XX:A8:CD [XX:XX:XX:XX:A8:CD] : 0
2020-07-03 11:47:17.665 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Notifying device discovery listeners (discovered): [Device] bluegiga:/XX:XX:XX:XX:4F:A4/XX:XX:XX:XX:27:72 [XX:XX:XX:XX:27:72] : 0
2020-07-03 11:47:17.666 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Notifying device discovery listeners (discovered): [Device] bluegiga:/XX:XX:XX:XX:4F:A4/XX:XX:XX:XX:36:8F [XX:XX:XX:XX:36:8F] : 0
2020-07-03 11:47:17.666 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Lost: 0; New: 0; Rediscovered: 4; Stale: 0
2020-07-03 11:47:18.034 [DEBUG] [oth.manager.impl.AdapterGovernorImpl] - Updating adapter governor: /XX:XX:XX:XX:4F:A4
2020-07-03 11:47:18.249 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Trying to find object factory: /XX:XX:XX:XX:4F:A4/XX:XX:XX:XX:34:32
2020-07-03 11:47:18.250 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Protocol is unknown. Trying to find factory amongst discovered adapters: /XX:XX:XX:XX:4F:A4/XX:XX:XX:XX:34:32
2020-07-03 11:47:18.251 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Trying to find object factory: /XX:XX:XX:XX:4F:A4/XX:XX:XX:XX:38:A1
2020-07-03 11:47:18.251 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Matching adapter found amongst discovered adapters: /XX:XX:XX:XX:4F:A4/XX:XX:XX:XX:34:32
2020-07-03 11:47:18.252 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Protocol is unknown. Trying to find factory amongst discovered adapters: /XX:XX:XX:XX:4F:A4/XX:XX:XX:XX:38:A1
2020-07-03 11:47:18.253 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Matching adapter found amongst discovered adapters: /XX:XX:XX:XX:4F:A4/XX:XX:XX:XX:38:A1
2020-07-03 11:47:18.257 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Transport [bluegiga] reported 1 discovered adapters
2020-07-03 11:47:25.260 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Trying to find object factory: /XX:XX:XX:XX:18:35
2020-07-03 11:47:25.260 [DEBUG] [ager.impl.CombinedDeviceGovernorImpl] - Checking if delegates are stale: /XX:XX:XX:XX:XX:XX/XX:XX:XX:XX:38:A1 / false / false
2020-07-03 11:47:25.261 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Protocol is unknown. Trying to find factory amongst discovered adapters: /XX:XX:XX:XX:18:35
2020-07-03 11:47:25.261 [DEBUG] [ager.impl.CombinedDeviceGovernorImpl] - Updating connection target: /XX:XX:XX:XX:XX:XX/XX:XX:XX:XX:38:A1 : false
2020-07-03 11:47:25.262 [DEBUG] [ager.impl.CombinedDeviceGovernorImpl] - Current target / new target: null / null
2020-07-03 11:47:25.445 [DEBUG] [ager.impl.CombinedDeviceGovernorImpl] - Checking if delegates are stale: /XX:XX:XX:XX:XX:XX/XX:XX:XX:XX:34:32 / false / false
2020-07-03 11:47:25.445 [DEBUG] [ager.impl.CombinedDeviceGovernorImpl] - Updating connection target: /XX:XX:XX:XX:XX:XX/XX:XX:XX:XX:34:32 : false
2020-07-03 11:47:25.446 [DEBUG] [ager.impl.CombinedDeviceGovernorImpl] - Current target / new target: null / null
2020-07-03 11:47:27.670 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Transport [bluegiga] reported 4 discovered devices
2020-07-03 11:47:27.671 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Notifying device discovery listeners (discovered): [Device] bluegiga:/XX:XX:XX:XX:4F:A4/XX:XX:XX:XX:CA:F0 [Oclean Z1] : 0
2020-07-03 11:47:27.672 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Notifying device discovery listeners (discovered): [Device] bluegiga:/XX:XX:XX:XX:4F:A4/XX:XX:XX:XX:A8:CD [XX:XX:XX:XX:A8:CD] : 0
2020-07-03 11:47:27.673 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Notifying device discovery listeners (discovered): [Device] bluegiga:/XX:XX:XX:XX:4F:A4/XX:XX:XX:XX:27:72 [XX:XX:XX:XX:27:72] : 0
2020-07-03 11:47:27.673 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Notifying device discovery listeners (discovered): [Device] bluegiga:/XX:XX:XX:XX:4F:A4/XX:XX:XX:XX:36:8F [XX:XX:XX:XX:36:8F] : 0
2020-07-03 11:47:27.674 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Lost: 0; New: 0; Rediscovered: 4; Stale: 0
2020-07-03 11:47:28.042 [DEBUG] [oth.manager.impl.AdapterGovernorImpl] - Updating adapter governor: /XX:XX:XX:XX:4F:A4
2020-07-03 11:47:28.259 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Trying to find object factory: /XX:XX:XX:XX:4F:A4/XX:XX:XX:XX:38:A1
2020-07-03 11:47:28.260 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Protocol is unknown. Trying to find factory amongst discovered adapters: /XX:XX:XX:XX:4F:A4/XX:XX:XX:XX:38:A1
2020-07-03 11:47:28.261 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Matching adapter found amongst discovered adapters: /XX:XX:XX:XX:4F:A4/XX:XX:XX:XX:38:A1
2020-07-03 11:47:28.261 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Trying to find object factory: /XX:XX:XX:XX:4F:A4/XX:XX:XX:XX:34:32
2020-07-03 11:47:28.262 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Protocol is unknown. Trying to find factory amongst discovered adapters: /XX:XX:XX:XX:4F:A4/XX:XX:XX:XX:34:32
2020-07-03 11:47:28.263 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Matching adapter found amongst discovered adapters: /XX:XX:XX:XX:4F:A4/XX:XX:XX:XX:34:32
2020-07-03 11:47:28.269 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Transport [bluegiga] reported 1 discovered adapters

Beacons are visibled in system but it seems status change is not properly recognized or initiated.
Beacon ‘XX:XX:XX:XX:27:72’ is out and is still marked as ONLINE.

I am running this version with the older BT bindings and it does work.
(However, in general I have connection problems due to distance - but this is more related to the Flower Care Soil Moisture sensor)

Can you attach your jars with bindings?

Sure,

I am using this one:
https://bintray.com/sputnikdev/org.eclipse.smarthome.binding.bluetooth/download_file?file_path=org.eclipse.smarthome.binding.bluetooth-1.1.6.jar

and this one
https://bintray.com/sputnikdev/org.eclipse.smarthome.binding.bluetooth/download_file?file_path=org.eclipse.smarthome.binding.bluetooth.transport.tinyb-1.1.3.jar

I found logs in syslog:

Jul 7 00:00:07 openhab karaf[758]: Exception in thread “pool-40-thread-5792” java.lang.NoSuchFieldError: thingRegistry
Jul 7 00:00:07 openhab karaf[758]: Exception in thread “pool-40-thread-5803” #011at org.sputnikdev.esh.binding.bluetooth.handler.GenericBluetoothDeviceHandler.access$000(GenericBluetoothDeviceHandler.java:29)
Jul 7 00:00:07 openhab karaf[758]: #011at org.sputnikdev.esh.binding.bluetooth.handler.GenericBluetoothDeviceHandler$7.getValue(GenericBluetoothDeviceHandler.java:95)
Jul 7 00:00:07 openhab karaf[758]: #011at org.sputnikdev.esh.binding.bluetooth.handler.GenericBluetoothDeviceHandler$7.getValue(GenericBluetoothDeviceHandler.java:90)
Jul 7 00:00:07 openhab karaf[758]: #011at org.sputnikdev.esh.binding.bluetooth.handler.GenericBluetoothDeviceHandler.updateLocationHandlers(GenericBluetoothDeviceHandler.java:233)
Jul 7 00:00:07 openhab karaf[758]: #011at org.sputnikdev.esh.binding.bluetooth.handler.GenericBluetoothDeviceHandler.rssiChanged(GenericBluetoothDeviceHandler.java:178)
Jul 7 00:00:07 openhab karaf[758]: #011at org.sputnikdev.bluetooth.manager.impl.CombinedDeviceGovernorImpl.lambda$updateRssi$16(CombinedDeviceGovernorImpl.java:610)
Jul 7 00:00:07 openhab karaf[758]: #011at org.sputnikdev.bluetooth.manager.impl.BluetoothManagerUtils.lambda$forEachSilently$2(BluetoothManagerUtils.java:71)
Jul 7 00:00:07 openhab karaf[758]: #011at java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:891)
Jul 7 00:00:07 openhab karaf[758]: #011at org.sputnikdev.bluetooth.manager.impl.BluetoothManagerUtils.forEachSilently(BluetoothManagerUtils.java:69)
Jul 7 00:00:07 openhab karaf[758]: #011at org.sputnikdev.bluetooth.manager.impl.BluetoothManagerUtils.forEachSilently(BluetoothManagerUtils.java:56)
Jul 7 00:00:07 openhab karaf[758]: #011at org.sputnikdev.bluetooth.manager.impl.CombinedDeviceGovernorImpl.updateRssi(CombinedDeviceGovernorImpl.java:609)
Jul 7 00:00:07 openhab karaf[758]: #011at org.sputnikdev.bluetooth.manager.impl.CombinedDeviceGovernorImpl.access$1700(CombinedDeviceGovernorImpl.java:72)
Jul 7 00:00:07 openhab karaf[758]: #011at org.sputnikdev.bluetooth.manager.impl.CombinedDeviceGovernorImpl$DeviceGovernorHandler.rssiChanged(CombinedDeviceGovernorImpl.java:821)
Jul 7 00:00:07 openhab karaf[758]: #011at org.sputnikdev.bluetooth.manager.impl.DeviceGovernorImpl.lambda$notifyRSSIChanged$7(DeviceGovernorImpl.java:605)
Jul 7 00:00:07 openhab karaf[758]: #011at org.sputnikdev.bluetooth.manager.impl.BluetoothManagerUtils.lambda$forEachSilently$2(BluetoothManagerUtils.java:71)
Jul 7 00:00:07 openhab karaf[758]: #011at java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:891)
Jul 7 00:00:07 openhab karaf[758]: #011at org.sputnikdev.bluetooth.manager.impl.BluetoothManagerUtils.forEachSilently(BluetoothManagerUtils.java:69)
Jul 7 00:00:07 openhab karaf[758]: #011at org.sputnikdev.bluetooth.manager.impl.BluetoothManagerUtils.forEachSilently(BluetoothManagerUtils.java:56)
Jul 7 00:00:07 openhab karaf[758]: #011at org.sputnikdev.bluetooth.manager.impl.DeviceGovernorImpl.notifyRSSIChanged(DeviceGovernorImpl.java:604)
Jul 7 00:00:07 openhab karaf[758]: #011at org.sputnikdev.bluetooth.manager.impl.DeviceGovernorImpl.updateRSSI(DeviceGovernorImpl.java:589)
Jul 7 00:00:07 openhab karaf[758]: #011at org.sputnikdev.bluetooth.manager.impl.DeviceGovernorImpl$RSSINotification.notify(DeviceGovernorImpl.java:851)
Jul 7 00:00:07 openhab karaf[758]: #011at org.sputnikdev.bluetooth.manager.impl.DeviceGovernorImpl$RSSINotification.notify(DeviceGovernorImpl.java:848)
Jul 7 00:00:07 openhab karaf[758]: #011at org.sputnikdev.bluetooth.manager.transport.bluegiga.BluegigaDevice.notifyRSSIChanged(BluegigaDevice.java:644)
Jul 7 00:00:07 openhab karaf[758]: #011at org.sputnikdev.bluetooth.manager.transport.bluegiga.BluegigaDevice.handleScanEvent(BluegigaDevice.java:530)
Jul 7 00:00:07 openhab karaf[758]: #011at org.sputnikdev.bluetooth.manager.transport.bluegiga.BluegigaDevice.bluegigaEventReceived(BluegigaDevice.java:279)
Jul 7 00:00:07 openhab karaf[758]: #011at com.zsmartsystems.bluetooth.bluegiga.BlueGigaSerialHandler$2.run(BlueGigaSerialHandler.java:471)
Jul 7 00:00:07 openhab karaf[758]: #011at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
Jul 7 00:00:07 openhab karaf[758]: #011at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
Jul 7 00:00:07 openhab karaf[758]: #011at java.lang.Thread.run(Thread.java:748)
Jul 7 00:00:07 openhab karaf[758]: java.lang.NoSuchFieldError: thingRegistry

How did you identify it?
According to the docs, iPhones change their MAC and I see a lot of Beacon Devices, but don’t know which is my iphone… (the official BT MAC is not among these Beacon devices)

Hi all,

i have many EGLO (AWOX/Crosslink)(pretty cheap LED spots at Hornbach in Germany) LED spots (ESpot120) that work with BLE Mesh … i am able to pair / connect / read but i am not able to on/off or change color / white temperature (write to device) … final target is to integrate in OH but before that i need somehow to access the devices. (used for tests Raspi 3b+ with bluetooth daemon 5.54)
at least i would be happy to on/off the devices … any hint or help possible?
did somebody get some results with EGLO/AWOX devices ? (found already >3 years old informations but use less so faar …)

Hi All,

This may seem like a stupid question and probably is;

I am testing OpenHAB on a laptop running Ubuntu, I have installed BlueZ (snap and tools also) but I cannot get the onboard bluetooth added in manually or via detection.

Bluetooth is working (on the device) as per all the info/tests I can find on the forums.

My question is do I require a dongle for this to work?

Cheers

try to do the following:

wget https://github.com/openhab/openhab-addons/raw/2.5.x/bundles/org.openhab.binding.bluetooth.bluez/src/main/resources/lib/armv6hf/libtinyb.so
wget https://github.com/openhab/openhab-addons/raw/2.5.x/bundles/org.openhab.binding.bluetooth.bluez/src/main/resources/lib/armv6hf/libjavatinyb.so
sudo cp lib* /opt/jdk/zulu8.40.0.178-ca-jdk1.8.0_222-linux_aarch32hf/jre/lib/aarch32/
sudo apt purge bluez
wget http://archive.raspberrypi.org/debian/pool/main/b/bluez/bluez_5.50-1.2~deb10u1+rpt2_armhf.deb
sudo dpkg -i bluez_5.50-1.2~deb10u1+rpt2_armhf.deb
sudo apt-get install pi-bluetooth
sudo usermod -a -G bluetooth openhab
sudo reboot

Hi guys. I have flashed custom firmware using OTA method - awesome! Now data is announced without any encryption!
I want to integrate these sensors into openhab2, I’m using RPI 3B+ embedded bluetooth and in Openhab using blueZ bridge discovering devices, but only RSSI channel is autodetected. Any thoughts why humidity, battery level and temperature is not detected?

Hi,

Is anyone able to use it with last snapshot version ?

You mean the 3rd party BT from @vkolotov?
Not yet tested.

I’ve installed last snapshot and behavior is still the same - beacon status is checked and doesn’t change. It is verified on openhab start or when I’m refreshing binding using karaf.

Official BT binding still doesn’t have needed features :frowning: and it seems it will take some time to catch up functionally this one.

Hi all,
it seems @vkolotov 's work will be kept alive in the form of the official openHAB Bluetooth binding.

@cpmeister embraced parts of Vlad’s work recently and put them into his own work. Vlad seems fine with it and offered help when is comes to modifications of his libraries:

Even better: Connor’s pull request has just been merged and will be certainly part of openHAB3.0M4 !!!

I’m quite happy about the new development and want to say a big

Thank You both, Vlad and Connor!

So maybe we should proceed in Connors thread about the new binding?
(already posted above, again for convenience: Revival of Official Bluetooth Binding)

If the new official Bluetooth binding still lacks some features of the 3rd party binding, we should file issues and help Connor moving those functions over to the “revival”.

3 Likes

That’s great news!
Thank you also from my side @cpmeister and @vkolotov!

2 Likes

In official bluetooth addon there is still no possibility to check state of a beacon and base on activity there, it seems won’t be in near future - can anybody reactivate this project?

Hello.
I just decided to join you.I was looking for a solution to the issue of connecting the kettle to OpenHAB,I came across this article - GitHub - alutov/ESP32-R4sGate-for-Redmond: ESP32 Ready4Sky (R4S) Gateway for Redmond+ devices .I flashed the ESP, the kettle is connected.but I haven’t been able to figure out how to set it up yet.