# Revival of Official Bluetooth Binding

**URL:** <https://community.openhab.org/t/revival-of-official-bluetooth-binding/92759>\
**Category:** Bindings\
**Tags:** development\
**Created:** [February 14, 2020, 6:51am UTC](https://community.openhab.org/t/revival-of-official-bluetooth-binding/92759 "2020-02-14T06:51:36Z")\
**Posts on this page:** 20\
**Page:** 7

<div class="post-metadata">

**Author:** ![cpmeister](https://community.openhab.org/letter_avatar_proxy/v4/letter/c/35a633/32.png) [@cpmeister](https://community.openhab.org/u/cpmeister)\
**Post date:** [October 29, 2020, 3:30am UTC](https://community.openhab.org/t/revival-of-official-bluetooth-binding/92759/121 "2020-10-29T03:30:46Z")

</div>

Whenever I encounter any dbus errors during startup, I just restart openhab and the problem usually goes away. You should check that the dbus service is also running though.

Edit: The `Failed to obtain handles for "Service Changed" characteristic` message is certainly concerning though since I’ve never seen it occur on any of my setups. I’d suggest you look into solving that first.

---

<div class="post-metadata">

**Author:** ![Tukks](https://community.openhab.org/user_avatar/community.openhab.org/tukks/32/56207_2.png) [@Tukks](https://community.openhab.org/u/Tukks)\
**Post date:** [October 29, 2020, 12:01pm UTC](https://community.openhab.org/t/revival-of-official-bluetooth-binding/92759/122 "2020-10-29T12:01:11Z")

</div>

So i upgraded to the last snapshot of OH 3, now the bluetooth binding connect well, but when I add a thing to the bridge :

> 2020-10-29 12:57:48.774 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method ‘Thin gHandler.initialize()’ on ‘org.openhab.binding.bluetooth.BeaconBluetoothHandler@f0c523’: Duplicate channels bluetooth :beacon:hci0:a4c138f3eee2:rssi  
> java.lang.IllegalArgumentException: Duplicate channels bluetooth:beacon:hci0:a4c138f3eee2:rssi  
> at org.openhab.core.thing.util.ThingHelper.ensureUniqueChannels(ThingHelper.java:152) ~[?:?]  
> at org.openhab.core.thing.util.ThingHelper.ensureUniqueChannels(ThingHelper.java:144) ~[?:?]  
> at org.openhab.core.thing.util.ThingHelper.ensureUniqueChannels(ThingHelper.java:140) ~[?:?]  
> at org.openhab.core.thing.binding.builder.ThingBuilder.withChannel(ThingBuilder.java:75) ~[?:?]  
> at org.openhab.binding.bluetooth.BeaconBluetoothHandler.initialize(BeaconBluetoothHandler.java:107) ~[?:?]  
> at jdk.internal.reflect.GeneratedMethodAccessor77.invoke(Unknown Source) ~[?:?]  
> at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]  
> at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]  
> at org.openhab.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:152 ) [bundleFile:?]  
> at org.openhab.core.internal.common.Invocation.call(Invocation.java:52) [bundleFile:?]  
> at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]  
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]  
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]  
> at java.lang.Thread.run(Thread.java:834) [?:?]  
> 2020-10-29 12:57:48.778 [ERROR] [core.thing.internal.ThingManagerImpl] - Exception occurred while initializing handle r of thing ‘bluetooth:beacon:hci0:a4c138f3eee2’: Duplicate channels bluetooth:beacon:hci0:a4c138f3eee2:rssi  
> java.lang.IllegalArgumentException: Duplicate channels bluetooth:beacon:hci0:a4c138f3eee2:rssi  
> at org.openhab.core.thing.util.ThingHelper.ensureUniqueChannels(ThingHelper.java:152) ~[?:?]  
> at org.openhab.core.thing.util.ThingHelper.ensureUniqueChannels(ThingHelper.java:144) ~[?:?]  
> at org.openhab.core.thing.util.ThingHelper.ensureUniqueChannels(ThingHelper.java:140) ~[?:?]  
> at org.openhab.core.thing.binding.builder.ThingBuilder.withChannel(ThingBuilder.java:75) ~[?:?]  
> at org.openhab.binding.bluetooth.BeaconBluetoothHandler.initialize(BeaconBluetoothHandler.java:107) ~[?:?]  
> at jdk.internal.reflect.GeneratedMethodAccessor77.invoke(Unknown Source) ~[?:?]  
> at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]  
> at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]  
> at org.openhab.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:152 ) [bundleFile:?]  
> at org.openhab.core.internal.common.Invocation.call(Invocation.java:52) [bundleFile:?]  
> at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]  
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]  
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]  
> at java.lang.Thread.run(Thread.java:834) [?:?]

---

<div class="post-metadata">

**Author:** ![cpmeister](https://community.openhab.org/letter_avatar_proxy/v4/letter/c/35a633/32.png) [@cpmeister](https://community.openhab.org/u/cpmeister)\
**Post date:** [October 29, 2020, 7:20pm UTC](https://community.openhab.org/t/revival-of-official-bluetooth-binding/92759/123 "2020-10-29T19:20:29Z")

</div>

I already have a fix that would get merged in with the generic bluetooth binding PR.

---

<div class="post-metadata">

**Author:** ![Tukks](https://community.openhab.org/user_avatar/community.openhab.org/tukks/32/56207_2.png) [@Tukks](https://community.openhab.org/u/Tukks)\
**Post date:** [November 20, 2020, 5:38pm UTC](https://community.openhab.org/t/revival-of-official-bluetooth-binding/92759/124 "2020-11-20T17:38:23Z")

</div>

Hello,

How I can declare new channel to the beacon things?  
I saw only RSSI, but my Xiaomi mija temperature have other information to give.

Thank’s for your help

---

<div class="post-metadata">

**Author:** ![cpmeister](https://community.openhab.org/letter_avatar_proxy/v4/letter/c/35a633/32.png) [@cpmeister](https://community.openhab.org/u/cpmeister)\
**Post date:** [November 21, 2020, 7:27am UTC](https://community.openhab.org/t/revival-of-official-bluetooth-binding/92759/125 "2020-11-21T07:27:45Z")

</div>

The beacon things don’t have any other channels. Support for arbitrary channels is going to be added as part of the `bluetooth.generic` binding that already has a PR that is waiting to get merged. If you are looking for the OH 2.5.x version of the `bluetooth.generic` binding I left instructions of how to install it on prior posts.

---

<div class="post-metadata">

**Author:** ![smhaller](https://community.openhab.org/user_avatar/community.openhab.org/smhaller/32/3218_2.png) [@smhaller](https://community.openhab.org/u/smhaller)\
**Post date:** [November 24, 2020, 2:00pm UTC](https://community.openhab.org/t/revival-of-official-bluetooth-binding/92759/126 "2020-11-24T14:00:44Z")

</div>

Hi @Tukks

> [@Tukks](#):
>
> I saw only RSSI, but my Xiaomi mija temperature have other information to give.

Seems that we play around with the same devices. Unfortunately it looks as the connection is not yet very stable. I also didn’t get the data out of them yet. Even the RSSI status changes to frequently.

 ![Mija_HT_V1](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/2/2/2242145f9bf3fef6fb66caa81363763fe9a8144d.png)  
This is what I’ve received through the bluetooth.generic binding.

---

<div class="post-metadata">

**Author:** ![hairdresser](https://community.openhab.org/user_avatar/community.openhab.org/hairdresser/32/48978_2.png) [@hairdresser](https://community.openhab.org/u/hairdresser)\
**Post date:** [November 24, 2020, 3:58pm UTC](https://community.openhab.org/t/revival-of-official-bluetooth-binding/92759/127 "2020-11-24T15:58:20Z")

</div>

I have a PR pending - which improves the stability when notify characteristics are involved

---

<div class="post-metadata">

**Author:** ![cpmeister](https://community.openhab.org/letter_avatar_proxy/v4/letter/c/35a633/32.png) [@cpmeister](https://community.openhab.org/u/cpmeister)\
**Post date:** [November 24, 2020, 7:22pm UTC](https://community.openhab.org/t/revival-of-official-bluetooth-binding/92759/128 "2020-11-24T19:22:06Z")

</div>

Some of these bluetooth devices require some kind of keep-alive or they will close the connection after a short period of time. I’m in the process of adding a configuration to only connect on demand instead of trying to constantly keep the connection open. That way it will be able to read the values in the short period of time that the connection is open.

---

<div class="post-metadata">

**Author:** ![smhaller](https://community.openhab.org/user_avatar/community.openhab.org/smhaller/32/3218_2.png) [@smhaller](https://community.openhab.org/u/smhaller)\
**Post date:** [November 24, 2020, 7:40pm UTC](https://community.openhab.org/t/revival-of-official-bluetooth-binding/92759/129 "2020-11-24T19:40:28Z")

</div>

Thanks @cpmeister and @hairdresser

It is already a giant step forward for me beeing able to receive data from these devices.  
Before the upgrade to latest snapshot versions I wasn’t even able to get the bluetooth adapter working.

---

<div class="post-metadata">

**Author:** ![curlyel](https://community.openhab.org/letter_avatar_proxy/v4/letter/c/71e660/32.png) [@curlyel](https://community.openhab.org/u/curlyel)\
**Post date:** [November 27, 2020, 3:29pm UTC](https://community.openhab.org/t/revival-of-official-bluetooth-binding/92759/130 "2020-11-27T15:29:07Z")

</div>

Hi Connor,  
since the GATT part been merged into the snapshot version of openHAB3 I thought it could be a good moment for trying it out 😉

So I brought my zoo of BLE devices in proximity to my OH3 test system as offered in the past:

> [@Revival of Official Bluetooth Binding](https://community.openhab.org/t/revival-of-official-bluetooth-binding/92759/46):
>
> Happy to hear that +1 The least what I can offer is testing with these: Xiaomi MiFlora plant sensor Xiaomi Mijia Bluetooth Thermometer (LYWSDCGQ/01ZM) Xiaomi Mijia Bluetooth Thermometer 2 (LYWSD03MMC) Generic Bluetooth tracking tags (Dehyaton, Elistooop) Jumper blood oximeter Pos. 1, 2 and 4 were well working with the “3rd Party Bluetooth Binding”. Let me know wink

The devices were discovered and added to the inbox. One out of them even shows at least some of the GATT’s as thing properties:

 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/d/f/dfeccda41b580304b7892503f895a1d48beb05a2.png)

This is the square thermometer (“Xiaomi Mijia Bluetooth Thermometer 2 LYWSD03MMC”).

Is it all what can be expected yet? Or should some of the devices “known” by @vkolotov s 3rd party binding get more attributes decoded yet?

Setup:

- snapshot build #2030
- dongle BlueGiga

---

<div class="post-metadata">

**Author:** ![vossivossi](https://community.openhab.org/user_avatar/community.openhab.org/vossivossi/32/33808_2.png) [@vossivossi](https://community.openhab.org/u/vossivossi)\
**Post date:** [November 27, 2020, 3:46pm UTC](https://community.openhab.org/t/revival-of-official-bluetooth-binding/92759/131 "2020-11-27T15:46:11Z")

</div>

> [@curlyel](#):
>
> Is it all what can be expected yet?

Did you have a look at the channel tab of the thing as well? That would be more interesting.

---

<div class="post-metadata">

**Author:** ![curlyel](https://community.openhab.org/letter_avatar_proxy/v4/letter/c/71e660/32.png) [@curlyel](https://community.openhab.org/u/curlyel)\
**Post date:** [November 27, 2020, 3:59pm UTC](https://community.openhab.org/t/revival-of-official-bluetooth-binding/92759/132 "2020-11-27T15:59:10Z")

</div>

Yes, I did 😉  
Beside the “decoded” attributes which were used for the thing properties, a bunch of "unknown Bluetooth characteristic"s are there:

 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/4/3/43d5aff18e73e122c1d9099f238ce77c941c2e80.png)

---

<div class="post-metadata">

**Author:** ![vossivossi](https://community.openhab.org/user_avatar/community.openhab.org/vossivossi/32/33808_2.png) [@vossivossi](https://community.openhab.org/u/vossivossi)\
**Post date:** [November 27, 2020, 4:01pm UTC](https://community.openhab.org/t/revival-of-official-bluetooth-binding/92759/133 "2020-11-27T16:01:07Z")

</div>

> [@curlyel](#):
>
> a bunch of "unknown Bluetooth characteristic"s are there

ok, bad luck 😉

---

<div class="post-metadata">

**Author:** ![curlyel](https://community.openhab.org/letter_avatar_proxy/v4/letter/c/71e660/32.png) [@curlyel](https://community.openhab.org/u/curlyel)\
**Post date:** [November 27, 2020, 4:26pm UTC](https://community.openhab.org/t/revival-of-official-bluetooth-binding/92759/134 "2020-11-27T16:26:05Z")

</div>

When activating the onboard Bluetooth of the RasPi in addition to the BlueGiga dongle, then the scan results are different between the two Bluetooth adaptors (Bluez vs. BlueGiga):

 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/d/4/d4ec03d05a8ac085d97b2436c22bcb79a74bfd83.png)

The bluez/RasPi Bluetooth does not show any generic device but shows the correct device/model names in thing label which is not the case for BlueGiga (just the iBKS-beacon is recognized and labeled accordingly).

Again: My question is still wether this is all which should work yet or if there should be more decoded already?

---

<div class="post-metadata">

**Author:** ![curlyel](https://community.openhab.org/letter_avatar_proxy/v4/letter/c/71e660/32.png) [@curlyel](https://community.openhab.org/u/curlyel)\
**Post date:** [November 28, 2020, 12:16pm UTC](https://community.openhab.org/t/revival-of-official-bluetooth-binding/92759/135 "2020-11-28T12:16:52Z")

</div>

After playing some hours with the _new_ official Bluetooth binding I don’t get any consistent GATT results from my BLE devices (beacons, thermometers, flower care, oxymeter), neither via Bluez nor BlueGiga.

I’m wondering if it is too early for expecting almost similar functional range as we had with the “3rd party binding” in the past… 🤔

@cpmeister May I ask you directly, up to what extent Vlad’s work made it into the current snapshot? Could you elaborate a bit, what could work already and what should not be expected to work yet?

---

<div class="post-metadata">

**Author:** ![cpmeister](https://community.openhab.org/letter_avatar_proxy/v4/letter/c/35a633/32.png) [@cpmeister](https://community.openhab.org/u/cpmeister)\
**Post date:** [November 28, 2020, 7:44pm UTC](https://community.openhab.org/t/revival-of-official-bluetooth-binding/92759/136 "2020-11-28T19:44:28Z")

</div>

> [@curlyel](#):
>
> I don’t get any consistent GATT results from my BLE devices

What do you mean by this? Are updates sporadic or do the gatt channels simply not show up for your device? I think I should note, based on the screen shots that you sent, that beacon and generic devices are completely different in the bluetooth binding. Beacon devices will only ever have an rssi channel. Generic devices will have the gatt channels. If you only discover your device as a beacon then it means that there was some kind of connection problem with the device so you might have to rerun discovery.

> [@curlyel](#):
>
> May I ask you directly, up to what extent Vlad’s work made it into the current snapshot? Could you elaborate a bit, what could work already and what should not be expected to work yet?

Right now discovery is a little spotty for the generic devices, but creating manually should work fine as long as you manually assign it to a bridge. I’m continuing to work on improving this. The generic binding will not work if it cannot connect to the device.

For devices that allow constant connections the generic binding should work fine. The only issue is when it doesn’t allow constant connections. I’m currently writing a fix for that.

Wrt Vlad’s work, the generic binding uses his characteristic database for reading/writing known characteristics. Multi adapter presence detection is handled by creating a Roaming bluetooth adapter.

Other than reliability (which I’ll continue to improve) what features do you feel are missing?

---

<div class="post-metadata">

**Author:** ![curlyel](https://community.openhab.org/letter_avatar_proxy/v4/letter/c/71e660/32.png) [@curlyel](https://community.openhab.org/u/curlyel)\
**Post date:** [November 29, 2020, 8:15am UTC](https://community.openhab.org/t/revival-of-official-bluetooth-binding/92759/137 "2020-11-29T08:15:25Z")

</div>

Hi Connor,  
thanks for your reply and clarification. I think I do better understand now what’s happening …

> [@cpmeister](#):
>
> What do you mean by this?

Sorry for being a bit unclear with this statement 😉  
Let me explain:  
I do test with some devices which are just beacons (“iBKS105” broadcasting as iBeacon and Eddystone at the same time) _and_ “generic” devices _broadcasting_ GATT’s. Some of the _generic_ devices (but not all!) were previously recognized and decoded by Vlad’s binding.

What I see is that my devices have been discovered - **but almost all just as beacons** without characteristics/channels other than RSSI. Only surprising exception is the …

> [@curlyel](#):
>
> Xiaomi Mijia Bluetooth Thermometer 2 LYWSD03MMC

… which was not known to Vlad’s binding formerly. For this device, a bunch of GATT’s were discovered but just the standard attributes have been decoded correctly. The interesting channels holding the sensor values of temperature and humidity are missing. But I think it makes sense, since this device _was not covered by Vlad’s characteristics database yet_. Reversing the usage/meaning of the characteristics still needs to be done. Maybe I should play with the “unknown characterics” channels to find out the relevant (temperature, humidity) and how to decode them…

Well, considering the above in combination with…

> [@cpmeister](#):
>
> discovery is a little spotty

.. I felt uncertain about what should work already. That’s what I’ve meant with “inconsistent”. Again: Sorry about this…

> [@cpmeister](#):
>
> For devices that allow constant connections the generic binding should work fine. The only issue is when it doesn’t allow constant connections.

Aaaahhh… good to know. Maybe this **is the main issue** here:  
IIRC, Vlad said some day, all (most?) of the Xiaomi devices use a proprietary authentication mechanism which is not public (yet). If your GATT discovery currently depends on connecting the devices instead of just listening, these Xiaomi sensors simply can’t be discovered as “generic” since they refuse the connection attempt. Would you agree?

> [@cpmeister](#):
>
> I’m currently writing a fix for that.

Happy to hear that. Let me know once this is done and merged. Happy to test then again…

> [@cpmeister](#):
>
> what features do you feel are missing?

_Well, when thinking about this, two things come to my mind currently:_  
**Handling of battery powered generic BLE devices**  
Some of those use tiny batteries like coin cells. This needs them falling asleep quite fast and sleep as long as possible and just wake if some sensor values have changed noticeably. What, if the binding tends connecting to them for polling? Have you already considered this and connect only for discovery or make `connect` configurable?

**More channels for beacons**  
Beacons send information with the beacon broadcast, e.g.:

- iBeacon: `major/minor ID`, `UUID`, `transmit power`
- Eddystone: `URL`, `PDU count`, `uptime`, `transmit power`, `battery voltage`

For some I see use cases immediately:

- transmit power: conclude proximity of the beacon
- battery voltage: detect battery change needed

So, it would be nice if the beacon data payload could be used to update additional channels.

---

<div class="post-metadata">

**Author:** ![curlyel](https://community.openhab.org/letter_avatar_proxy/v4/letter/c/71e660/32.png) [@curlyel](https://community.openhab.org/u/curlyel)\
**Post date:** [November 29, 2020, 10:24am UTC](https://community.openhab.org/t/revival-of-official-bluetooth-binding/92759/138 "2020-11-29T10:24:52Z")

</div>

> [@curlyel](#):
>
> Reversing the usage/meaning of the characteristics still needs to be done. Maybe I should play with the “unknown characterics” channels to find out the relevant (temperature, humidity) and how to decode them…

@cpmeister I’ve probably reversed successfully the unknown temperature/humidity characteristic of the LYWSD03MMC:

 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/c/3/c38d3893c9cc56244f8569067a34af2290a1f8e0.png)

I’ve connected with `nRF Connect` to the thermometer and observed the unknown generic characteristics and compared them with the values shown on the display of the device.

The guessed decoding is as this

```
UUID: ebe0ccc1-7a0a-4b0c-8a1a-6ff2997da3a6
Value: 0x TT-TT-HH-UU-UU
          34-12-12-12-34

```

Where  
T1-T2 = first byte of temp value  
T3-T4 = second byte of temp value  
H1-H2 = humidity value  
U1-U4 = unknown

Example from screenshot above:

Temperature: `0x09F2 = 2549 = 24,49 degree celsius` (device display “24,4”)  
Humidity: `0x22 = 34 = 34% relative humidity` (device display “34”)

I’ve observed changes in temp/hum on the display and compared it with the reported values while having the above decoding “algorithm” applied and got matching result.

Is such information sufficient to add them to the characteristics database?  
What else do you need?

---

<div class="post-metadata">

**Author:** ![vossivossi](https://community.openhab.org/user_avatar/community.openhab.org/vossivossi/32/33808_2.png) [@vossivossi](https://community.openhab.org/u/vossivossi)\
**Post date:** [November 29, 2020, 10:49am UTC](https://community.openhab.org/t/revival-of-official-bluetooth-binding/92759/139 "2020-11-29T10:49:15Z")

</div>

> [@cpmeister](#):
>
> Wrt Vlad’s work, the generic binding uses his characteristic database for reading/writing known characteristics.

I am not sure if I understand this correctly but this does not seem to be true for all devices. I am using the [Xiaomi Mijia Bluetooth Temperature and Humidity Sensors](https://www.amazon.de/MIJIA-Bluetooth-Thermometer-Feuchtigkeitsmessung-Tinten-Bildschirm-elektronische/dp/B07QYF39Q2) (MJ\_HT\_V1). These devices work with Vlad’s binding and I still use them with his binding (running an old version of OH2.5M3 on a Raspi and connected to my main OH instance via MQTT). Within Vlad’s binding these devices expose channels like temperature, humidity and battery level:

 ![grafik](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/d/7/d73a01a697b500bf82b79f10fb626b659ede0c99.png)

When I try to use the device with the new official bluetooth binding (OH3 Snapshot 2028), they are discovered as beacons…

 ![grafik](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/5/e/5e2615b9d9384bd7c54d0010038168166adb06fd.png)

and only expose one channel for RSSI:

 ![grafik](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/a/d/ad0be0ac0da796c97ae6235323932640d6ec96e0.png)

This device is definitely part of Vlad’s database so there still seem to be issues with the binding.  
I am absolutely no bluetooth expert (so please forgive me if I am writing nonsense) but I think I rember an old discussion that these devices do not support controlled connections at all. They rather seem to broadcast the payload like temperature etc.all the time. So could it be that the new official bluetooth binding is not supporting this case?

---

<div class="post-metadata">

**Author:** ![curlyel](https://community.openhab.org/letter_avatar_proxy/v4/letter/c/71e660/32.png) [@curlyel](https://community.openhab.org/u/curlyel)\
**Post date:** [November 29, 2020, 10:55am UTC](https://community.openhab.org/t/revival-of-official-bluetooth-binding/92759/140 "2020-11-29T10:55:36Z")

</div>

> [@vossivossi](#):
>
> When I try to use the device with the new official bluetooth binding (OH3 Snapshot 2028), they are discovered as beacons…

Yes. That confused me too at first. But with Connor’s clarification:

> [@cpmeister](#):
>
> For devices that allow constant connections the generic binding should work fine. The only issue is when it doesn’t allow constant connections. I’m currently writing a fix for that.

… it might be as I concluded here:

> [@curlyel](#):
>
> IIRC, Vlad said some day, all (most?) of the Xiaomi devices use a proprietary authentication mechanism which is not public (yet). If your GATT discovery currently depends on connecting the devices instead of just listening, these Xiaomi sensors simply can’t be discovered as “generic” since they refuse the connection attempt.

Maybe should wait for Connor’s comment on this… 😉

[Previous page](https://community.openhab.org/t/revival-of-official-bluetooth-binding/92759.md?page=6)

[Next page](https://community.openhab.org/t/revival-of-official-bluetooth-binding/92759.md?page=8)
