3rd Party Bluetooth Binding. Beta testers needed

The problem with cheap “iTag” trackers is that although they look all the same, but there are actually two different hardware/firmware they use. One of them is bad, you cannot use it at all as it just goes off after some time if not connected (effectively if you leave your house and come back, it will be off). Another version is good, but you never know what you are ordering on ali… I suggest you to order different ones from different stores just to try and then do a bulk order :slight_smile: Or maybe people here can recommend a good one here?

I ordered the most “popular” iTag on ali, the item has like around 2000 orders, but it turned out it is a bad unit. And then I ordered another one with only ~200 orders - and it worked great.

It was quite long time ago so I do not remember which one was good, try that one: https://www.aliexpress.com/item/2017-Sensor-Smart-Tag-Wireless-Bluetooth-4-0-Tracker-Wallet-Key-Keychain-Finder-GPS-Locator-Anti/32822394312.html?spm=a2g0s.9042311.0.0.27424c4dyKo61k

thanks i orderd lets try it out!

all of these cheap tags have worked for me:
https://www.amazon.co.uk/gp/product/B07G73PK46/ref=oh_aui_detailpage_o04_s00?ie=UTF8&psc=1&tag=efestivals-21
https://www.amazon.co.uk/gp/product/B0749F7WPS/ref=oh_aui_detailpage_o05_s00?ie=UTF8&psc=1&tag=efestivals-21
https://www.amazon.co.uk/gp/product/B01MCWPSL1/ref=oh_aui_detailpage_o03_s00?ie=UTF8&psc=1&tag=efestivals-21
https://www.amazon.co.uk/gp/product/B01DYVD2HO/ref=oh_aui_search_detailpage?ie=UTF8&psc=1&tag=efestivals-21

1 Like

thanks man!
but i dont have access to amazon where i am from :frowning:

I would like to use beacons/tags in my cars to track them leaving/arriving. How would that work when the garage is too far away from my PI to get a signal? Are they BT extenders/repeaters? Add another PI?

Hi @mjcumming, you may use usb extenders (active extenders - up to 25 meter long) or you may set up “serial/usb-over-ip” link as described here: Forwarding of serial and USB ports over the network to openHAB

2 Likes

Currently i have some problems with Bluegiga adapters. MAybe has someone a hint for me. My setup: Latest nightly on a raspberry with openhabian. I bound two remote bluegiga adapters using socat to /dev/ttyNET1 and 2 and i am able to start the bluegiga toll and receive data over these ports.

Unfortunaltey the binding only finds the NET1 adapter Net2 is ignored. The regex entry is ((/dev/ttyNET1)|(/dev/ttyNET2))

Has anyone an idea?

@Dibbler42, maybe permissions? Compare file permissions ttyNET1 and NET2.

Permissions are the same. i have checked that more than one time

Thanks

I have a problem with accuracy. I have 2 BT dongles, 1 in my OH Rpi B3+ (waskamer) and 1 in my desktop (woonkamer), forwarded with usbip. I’m sitting at my desktop, less then 1m away from the dongle. My OH is on the first floor, concrete between us. Why am I (bluetooth_ble_C868319C9F8E) jumping around between the 2 adapters?

I tried with different settings in the BT dongle and Mii band.

2018-09-22 19:45:28.465 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_rssi changed from -72 to -71
2018-09-22 19:45:41.685 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_rssi changed from -71 to -72
2018-09-22 19:45:54.390 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_rssi changed from -72 to -71
2018-09-22 19:46:16.422 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_rssi changed from -71 to -84
2018-09-22 19:46:16.463 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_location changed from Woonkamer to Waskamer
2018-09-22 19:46:26.907 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_rssi changed from -84 to -83
2018-09-22 19:47:12.096 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_rssi changed from -83 to -84
2018-09-22 19:49:26.190 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_rssi changed from -84 to -75
2018-09-22 19:49:26.222 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_location changed from Waskamer to Woonkamer
2018-09-22 19:49:41.500 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_rssi changed from -75 to -73
2018-09-22 19:50:06.151 [temChannelLinkRemovedEvent] - Link ‘bluetooth_ble_C868319C9F8E_tx_power => bluetooth:ble:C868319C9F8E:tx-power’ has been removed.
2018-09-22 19:50:07.964 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_rssi changed from -73 to -85
2018-09-22 19:50:07.976 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_location changed from Woonkamer to Waskamer
2018-09-22 19:50:29.480 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_rssi changed from -85 to -73
2018-09-22 19:50:29.496 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_location changed from Waskamer to Woonkamer
2018-09-22 19:50:40.497 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_rssi changed from -73 to -86
2018-09-22 19:50:40.516 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_location changed from Woonkamer to Waskamer
2018-09-22 19:50:51.540 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_rssi changed from -86 to -87
2018-09-22 19:51:47.751 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_rssi changed from -87 to -72
2018-09-22 19:51:47.769 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_location changed from Waskamer to Woonkamer
2018-09-22 19:52:52.810 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_rssi changed from -72 to -88
2018-09-22 19:52:52.826 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_location changed from Woonkamer to Waskamer
2018-09-22 19:53:12.667 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_rssi changed from -88 to -74
2018-09-22 19:53:12.706 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_location changed from Waskamer to Woonkamer
2018-09-22 19:53:57.155 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_rssi changed from -74 to -75
2018-09-22 19:54:19.915 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_rssi changed from -75 to -88
2018-09-22 19:54:19.944 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_location changed from Woonkamer to Waskamer
2018-09-22 19:54:56.244 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_rssi changed from -88 to -72
2018-09-22 19:54:56.261 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_location changed from Waskamer to Woonkamer
2018-09-22 19:55:13.954 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_rssi changed from -72 to -78
2018-09-22 19:55:32.688 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_rssi changed from -78 to -79
2018-09-22 19:55:43.159 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_rssi changed from -79 to -80
2018-09-22 19:56:24.659 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_rssi changed from -80 to -91
2018-09-22 19:56:24.674 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_location changed from Woonkamer to Waskamer
2018-09-22 19:57:06.345 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_rssi changed from -91 to -81
2018-09-22 19:57:06.357 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_location changed from Waskamer to Woonkamer
2018-09-22 19:57:12.471 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_rssi changed from -81 to -79
2018-09-22 19:57:37.826 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_rssi changed from -79 to -89
2018-09-22 19:57:37.839 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_location changed from Woonkamer to Waskamer
2018-09-22 19:58:12.011 [vent.ItemStateChangedEvent] - bluetooth_ble_C868319C9F8E_rssi changed from -89 to -87

Any suggestions?

Hello everybody,

I have installed the binding and it works so far. I use a Gigaset G-tag to show my presence.

The question is, does the Discovery have to be constantly on, that the G-tag is recognized?

Sorry if I missed an answer in that direction

/Update

When I turn “ON” the discovering, G-Tag is recognized directly, I make it “OFF”, it does not work anymore.

The problem is when I turn it “ON”, I have about 30 items in the inbox after a short time. The signal is so strong that all devices that pass the house are detected

A new version of the binding and transport layers have been released. The following changes are included in this release:

  1. Adding “Very slow kalman filter” for stationary devices. Fixes: https://github.com/sputnikdev/eclipse-smarthome-bluetooth-binding/issues/57
  2. Adding an option to prevent location update. Fixes: https://github.com/sputnikdev/eclipse-smarthome-bluetooth-binding/issues/56
  3. As a user I want to stop adding new devices to the ESH inbox but still continue Bluetooth discovery/listening to BT devices. Fixes: https://github.com/sputnikdev/eclipse-smarthome-bluetooth-binding/issues/53
  4. Implement a workaround for mobile phones (recent models of iphone and android) that dynamically allocate MAC addresses. Fixes: https://github.com/sputnikdev/eclipse-smarthome-bluetooth-binding/issues/17

You will have to uninstall existing plugins via PaperUI, restart OH and install them again. Make sure you have the following versions in your karaf console:

 openhab> bundle:list | grep bluetooth                                                                                                                                                                                                         
230 │ Active   │  80 │ 1.1.6                  │ org.sputnikdev:org.eclipse.smarthome.binding.bluetooth
232 │ Active   │  80 │ 1.2.3                  │ org.sputnikdev:org.eclipse.smarthome.binding.bluetooth.transport.bluegiga
233 │ Active   │  80 │ 1.1.3                  │ org.sputnikdev:org.eclipse.smarthome.binding.bluetooth.transport.tinyb

PS> Regarding iphone and android support, I’ll update the binding documentation with some steps on how to use it.

@Nognog, you may stop adding BT devices into your inbox in the binding settings now:

5 Likes

Hi @stfn82, have you tried to play with device settings?

For your device:

For your adapters:

How are you adapters located? How far they are from each other?

@ [vkolotov]

For my understanding:
BTAdapter_Discovering “ON” ?
and Background Discovery “OFF” !

hi @Nognog, yes, if you want to stop adding discovered devices into your inbox but still want presence detection to be on, then as you mentioned: Background discover is OFF and adapters DiscoveryControl is ON.

ok, but still get Things to inbox


bild2 bild3

What am I doing wrong or is it a bug?

Anyone else having this as well? ^^

It works for me.

Hello!
I just installed your binding on a raspberry pi3. Everything went well till nearly the end.
I edited the bluetooth config file and inserted the group, but this is now happening:

bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2018-09-30 20:28:27 CEST; 7s ago
Docs: man:bluetoothd(8)
Process: 16209 ExecStart=/usr/libexec/bluetooth/bluetoothd (code=exited, status=1/FAILURE)
Main PID: 16209 (code=exited, status=1/FAILURE)
Status: “Starting up”

Thanks
Tom

Hi @Tommyshome, could you please clarify what you mean by “edited the bluetooth config file”? Which one? Please also post its content here.

Hello!
I followed this guide:

And entered point 8 of the guide in the conf file:

Thanks

Tom