I have the latest version of openhab 2.5 running on openhabian on raspberry pi 4.
I am trying to establish binding with bluetooth.
I checked several topics on openhab forums, but I can not get this working.
Hallo,
I’m gonna join up here
I’m trying to do the same thing on a Raspberrypi 3B+
I don’t know how to troubleshoot.
Searching the net with the key: OpenHAB Bluetooth with Raspberrypi and the same, did not bring me any useful answers. Is there a person here in the forum who can give us the right hint?
Hi,
got also some ruuvi tags and succeeded to integrate them to a pi4 with raspian and openhab 2.5.
first, this was the error message in the openhab.log [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'bluetooth.things' [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.initialize()' on 'org.openhab.binding.bluetooth.bluez.handler.BlueZBridgeHandler@1807907': BlueZ JNI connection cannot be established. java.lang.IllegalStateException: BlueZ JNI connection cannot be established. at org.openhab.binding.bluetooth.bluez.handler.BlueZBridgeHandler.initialize(BlueZBridgeHandler.java:98) ~[?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_152] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_152] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_152] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_152] at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:152) [bundleFile:?] at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:52) [bundleFile:?] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_152] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_152] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_152] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_152] Caused by: java.lang.UnsatisfiedLinkError: tinyb.BluetoothManager.getNativeAPIVersion()Ljava/lang/String; at tinyb.BluetoothManager.getNativeAPIVersion(Native Method) ~[?:?] at tinyb.BluetoothManager.getBluetoothManager(BluetoothManager.java:304) ~[?:?] at org.openhab.binding.bluetooth.bluez.handler.BlueZBridgeHandler.initialize(BlueZBridgeHandler.java:93) ~[?:?] ... 10 more
here my steps, to make the ruuvi tags work
Deinstall too new version of bluez on pi4 (I had .50 on raspbian)
but use a thing line like this one for the ruuvi tag: bluetooth:ruuvitag_beacon:hci0:Schlafzimmer_Fensterbrett “RuuviTag Sensor Beacon” (bluetooth:bluez:hci0) [ address=“AB:CD:EF:12:34:56” ]
if you want to configure the beacon in the paper ui: you can also set at the bluetooth thing the discovery=true and use the inbox in paper ui to add the ruuvi thing
Can you make Ruuvi tag connect to available devices?
When the tag is connected, set the time for the device to work within 2 minutes,
but when the tag is not connected, the device connected to the tag stops working within 2 minutes
because I want Tag to be like a home user. For example, when a user enters the house, the light in the house will start working within the specified time, but when the user leaves the area or is not home within 2 minutes, turn off the light automatically.