sputnikdev / eclipse-smarthome-bluetooth-binding

Eclipse SmartHome Bluetooth Binding
46 stars 10 forks source link

Binding interfears with another Bluetooth devices #77

Open roher-roher opened 5 years ago

roher-roher commented 5 years ago

Hi, I have got the following Bluetooth adapter: https://becompact.ru/tovary/bluetooth-adapter-buro-bt40a/ and the following Bluetooth Beacon: http://ibecom.ru/products/beacons/extended/ (sorry for Russian websites) and OpenHAB 2.4 installed on a Debian 9 system.

I was going to use Bluetooth for 4 purposes: 1) Get my Beacon visible in OpenHAB to detect my precense at home - this is why I have tried your binding; 2) Connect my Bluetooth speaker to the system and use it as audio sink in OpenHAB; 3) Connect my Android smartphone to Asterisk PBX; 4) Try to connect my Redmond RK-G200S Skykettle to my smart home, using the following post: https://m.habr.com/ru/post/412583/ (again, sorry for Russian article).

The binding has been installed normally, detected my adapter, and my beacon after scanning for available things in the Inbox. The beacon was detected as "BLE enabled Bluetooth device".

But here are two issues I cannot solve currently: Issue one (not so critical): Presence detection of my beacon only works if "Discovery" and "Discovery Control" are enabled for my adapter. As soon as I disable it, the thing stops reacting on beacon visibility. And, as far as I can see in bluetoothctl, when "Discovery Control" is on, adapter is constantly scanning for devices. Issue two (rather critical): Regardless of the state of "Discovery" and "Discovery Control" switches, other devices, which I want to use for points 2 & 3 (so, my bluetooth speaker and Android phone) got unpaired in several minutes after pairing them - I pair and connect to them using bluetoothctl program, they work ok, but right after 2-3 minutes they got unpaired. I didn't try Skykettle yet, but I guess the same thing will happen with it. This issue was not present before I have installed this binding into my OpenHAB - the bluetooth speaker has left paired and connected for the whole night.

Could you please help me with resolving these issues? Feel free to ask for any additional info such as logs, etc.