3rd Party Bluetooth Binding. Beta testers needed

There is the standard Bluetooth adaptor in the PC plus the BLED. I think the new devices are possibly the Lumia but don’t understand why the address keeps changing

If your MAC address of your device keeps changing, it is a known issue. Your phone is trying to hide itself providing you with privacy :slight_smile:

A workaround for this issue is on my roadmap.

Too Smart for its own good!

Thanks for your help so far need to turn in for the night. Will probably use Alcatel for presence detection as it seems to be less Smart

Phil

@pmknowles, cool, also you could try to use a key tracker. Have a look some messages in the history of this thread.

Yes saw something about beacon app earlier somewhere.

Will let you know if I get any joy.

Good Night

@pmknowles, beacon app is different solution, as far as I know, it has the same issue.

What I meant is a device that you attach to your keys, like a beacon device. Check aliexpress for Nut2 or Nut3 device.

I bought 2 x nut find 3s from Amazon which arrived today. Got them to work in rules for presence detection so working well.

Thanks

Hi.
How can in implement the command
KERNEL==“hci[0-9]*”, SUBSYSTEM==“bluetooth”, RUN+="/usr/bin/hciconfig %k up"
to the bluetooth.cfg.
After starting this line and restart bluetooth service, the bluetooth status is okay.

Apr 28 08:36:11 Hausserver bluetoothd[888]: Bluetooth daemon 5.47
Apr 28 08:36:11 Hausserver systemd[1]: Starting Bluetooth service...
Apr 28 08:36:11 Hausserver bluetoothd[888]: Starting SDP server
Apr 28 08:36:11 Hausserver bluetoothd[888]: Bluetooth management interface 1.10 initialized
Apr 28 08:36:11 Hausserver bluetoothd[888]: Failed to set privacy: Rejected (0x0b)
Apr 28 08:36:11 Hausserver systemd[1]: Started Bluetooth service.
[08:48:39] openhab@Hausserver:~$ sudo systemctl restart bluetooth
[08:48:54] openhab@Hausserver:~$ sudo systemctl status bluetooth
● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2018-04-28 08:48:54 CEST; 2s ago
     Docs: man:bluetoothd(8)
 Main PID: 3753 (bluetoothd)
   Status: "Running"
    Tasks: 1
   Memory: 328.0K
      CPU: 32ms
   CGroup: /system.slice/bluetooth.service
           └─3753 /usr/libexec/bluetooth/bluetoothd

Apr 28 08:48:54 Hausserver systemd[1]: Starting Bluetooth service...
Apr 28 08:48:54 Hausserver bluetoothd[3753]: Bluetooth daemon 5.47
Apr 28 08:48:54 Hausserver systemd[1]: Started Bluetooth service.
Apr 28 08:48:54 Hausserver bluetoothd[3753]: Starting SDP server
Apr 28 08:48:54 Hausserver bluetoothd[3753]: Bluetooth management interface 1.10 initialized

Thanks

Thanks for this binding.
At this moment I have 2 Xiaomi Mi Flora and 2 Xiaomi Mijia Bluetooth Temperature Smart Humidity Sensor, working properly. If you need some proof that I can perform, you just have to ask for it.
It would be interesting, that OpenHabian, had incorporated the process of installation and configuration of bluetooth, the monitoring of installation aids, for me have been very difficult.
Translate Google, forgive if it is not very understandable.

This guy http://www.nirsoft.net/utils/bluetooth_viewer.html has a Bluetooth View package which would give enough detail for presence monitoring. It works with a normal bluetooth adaptor in Windows and seems to cope with the mac address switching. I don’t know enough about the interface with bindings and openHAB but a lot of the hard work has been done in that package and it may be worth a conversation?

Hi @pmknowles, thanks for that.

I had a quick look at the description of that tool and I could not find anything saying that it can work with dynamic MAC addresses. Could you please let me know if it is working for you?

Hi @Josep_Xavier_Sellart, this binding is still in beta, I’ll be updating documentation during the course…

Hi @Master79, I’m not sure if I understand what you are trying to achieve with this. Normally you would not do this. Could you please elaborate?

Well it sees the mac address of my phone that the phone thinks it has rather than the changing one that the BLED112 sees.

[Descriptions]

0c:e7:25:87:eb:eb=Philip-Lumia-640LTE

20:13:12:11:1a:fd=Bluetooth Mouse

Regards

Phil

Mail](https://go.microsoft.com/fwlink/?LinkId=550986) for Windows 10

@pmknowles, fantastic. Could you please monitor it for awhile? Just double check if it is working for you? Cheers

thx for your awesome work, i am using your plugin with a Xiaomi Mi Flora, a Xiaomi Mijia Bluetooth Temperature Smart Humidity Sensor and 2 Suunto Smart Heart Rate Watches for presence Control on a Raspberry 3 with openhabian and openhab 2.2 release build. Sometimes the update of my openhab items stops. I have to to a power off - on the Adapter in the Bluetooth console to get the updates work again. where can i look for more logs?

Controller B8:27:EB:E7:DC:A1
    Name: BlueZ 5.47
    Alias: Raspberry Bluetooth
    Class: 0x00000000
    Powered: yes
    Discoverable: no
    Pairable: yes
    UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
    UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
    UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
    UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
    UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
    Modalias: usb:v1D6Bp0246d052F
    Discovering: yes

Hi @ChrisA, could you please let me know how often you have to power off and on our adapter?

You may turn on more verbose logging in the karaf console:

openhab> log:set DEBUG org.sputnikdev.bluetooth.manager.impl

I do not recommend you to keep it on all the time as it is very chatty, I’d recommend you to turn in on only when you have some issues, to turn it off:

openhab> log:set INFO org.sputnikdev.bluetooth.manager.impl
1 Like

i powercycle the adapter every 4-5 days. debug log is on now

i got myself a Xiaomi Mi Kettle.i added as a thing and i see it online just fine.I can link some channels but not all of them .I can not link status or temperature …Do i need to change some settings at the Binding?

i have the same problem like @Constantinos_Contis but with a Xiaomi Mijia Bluetooth Temperature Smart Humidity Sensor, all channels can be linked except temperature and humidity

i’m running openHAB 2.3.0~20180429034940-1 (Build #1265)
bluetooth adapter is the buildin one of Raspberry Pi 3b+
PaperUI says:
Bluetooth Binding market:binding-3694484 - 1.0
Bluetooth Binding TinyB Transport - market:binding-3769218 - 1.0
Karaf says:

247 │ Active   │  80 │ 1.1.1                  │ org.sputnikdev:org.eclipse.smarthome.binding.bluetooth.transport.tinyb
248 │ Active   │  80 │ 1.1.4                  │ org.sputnikdev:org.eclipse.smarthome.binding.bluetooth