Quantcast
Channel: Kodinerds.net - Deutschsprachiges Forum zum Kodi Entertainment Center
Viewing all articles
Browse latest Browse all 87137

Openhab und Bluetooth (-BlueZ Adapter)

$
0
0
hi

Mein Vorhaben: Habe einen LMS-Server aufgesetzt, mit diversen Lautsprechern (Wlan und Bluetooth) und es dann im Openhab integriert per Squeezebox-Binding - Funktioniert alles. Jetzt möchte ich es natürlich automatisieren, Box wird eingeschaltet, ein z.B Radiosender wird abgespielt. Problematik ist, daß die einzelnen Squeezebox-Player sobald der Squeezebox-Server online ist (also immer) auch als online von Openhab angezeigt werden, egal ob sie an sind oder nicht. Bei Wlan-Lautsprechern kann ich dies per Network-Binding regeln, also wenn Wlan-Lautsprecher ist pingable, dann spiele einen Radiosender ab und auch das funktioniert.

Nun aber direkt zu meinem Problem: Die Bluetooth-Boxen
Dachte, mit dem Bluetooth-Binding könnte ich auch meine Bluetooth-Boxen automatisieren, leider kommt dann folgende Fehlermeldung

Quellcode

  1. ==> /var/log/openhab2/openhab.log <==
  2. 2020-03-28 11:36:02.378 [ERROR] [core.thing.internal.ThingManagerImpl] - Exception occurred while initializing handler of thing 'bluetooth:bluez:67d7335e': BlueZ JNI connection cannot be established.
  3. java.lang.IllegalStateException: BlueZ JNI connection cannot be established.
  4. at org.openhab.binding.bluetooth.bluez.handler.BlueZBridgeHandler.initialize(BlueZBridgeHandler.java:99) ~[?:?]
  5. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_222]
  6. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_222]
  7. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_222]
  8. at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_222]
  9. at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:152) [bundleFile:?]
  10. at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:52) [bundleFile:?]
  11. at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_222]
  12. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_222]
  13. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_222]
  14. at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]
  15. Caused by: java.lang.UnsatisfiedLinkError: tinyb.BluetoothManager.getNativeAPIVersion()Ljava/lang/String;
  16. at tinyb.BluetoothManager.getNativeAPIVersion(Native Method) ~[?:?]
  17. at tinyb.BluetoothManager.getBluetoothManager(BluetoothManager.java:304) ~[?:?]
  18. at org.openhab.binding.bluetooth.bluez.handler.BlueZBridgeHandler.initialize(BlueZBridgeHandler.java:94) ~[?:?]
Alles anzeigen

habe natürlich schon ein wenig recherchiert und folgendes gefunden:
1. Generell: Laut Addon-Wiki

Openhab schrieb:

Please note that at least BlueZ 5.43 is required, while 5.48 or above are not (yet)support either
Habe aber Bluez 5.48 installiert und kann per apt auch nicht downgraden (nur neu kompileren, weis dann aber nicht, wie sich dies auf die ganze Bluetooth-Umgebung auswirkt)

2. tinyb-Problem: Es gibt so einige mit meinem Problem, sehr gut hier beschrieben. Laut openhab habe ich tinyb (libs) nicht installiert

Quellcode

  1. openhab> bundle:list | grep -i blue
  2. 257 │ Active │ 80 │ 2.5.3 │ openHAB Add-ons :: Bundles :: Bluetooth Binding
  3. 258 │ Active │ 80 │ 2.5.3 │ openHAB Add-ons :: Bundles :: BlueGiga Bluetooth Adapter
  4. 259 │ Active │ 80 │ 2.5.3 │ openHAB Add-ons :: Bundles :: BlueZ Bluetooth Adapter
  5. 260 │ Active │ 80 │ 2.5.3 │ openHAB Add-ons :: Bundles :: Blukii Bluetooth Adapter
  6. 261 │ Active │ 80 │ 2.5.3 │ openHAB Add-ons :: Bundles :: RuuviTag Bluetooth Adapter
  7. openhab> bundle:list | grep -i tinyb
  8. openhab>
weis auch nicht, wie ich das machen kann ?(


Kann mir jemand weiter helfen bzw. gibt es eine Alternative zum Bluetooth-Binding, um eine Rule zu erstellen ?

Tschau nepo

Viewing all articles
Browse latest Browse all 87137


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>