sputnikdev / eclipse-smarthome-bluetooth-binding

Eclipse SmartHome Bluetooth Binding
46 stars 10 forks source link

XIAOMI Temp and humidity not discovered #85

Open robygi opened 5 years ago

robygi commented 5 years ago

Hello to everybody, I' running openHAB 2.4.0 and I'm not able to discover my XIAOMI Temperature and Humidity sensor in openHAB. I installed the bluetooth-binding following the instructions, but when I try to discover the device in PaperUI it is not discovered. I got other devices, but not the XIAOMI.

My bluetooth is working:

pi@mypi:~ $ sudo hciconfig -a
hci0:   Type: Primary  Bus: UART
        BD Address: fa:ke:ad:dr:es:01  ACL MTU: 1021:8  SCO MTU: 64:1
        UP RUNNING
        RX bytes:11561 acl:0 sco:0 events:538 errors:0
        TX bytes:6737 acl:0 sco:0 commands:251 errors:0
        Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
        Link policy: RSWITCH SNIFF
        Link mode: SLAVE ACCEPT
        Name: 'mypi'
        Class: 0x000000
        Service Classes: Unspecified
        Device Class: Miscellaneous,
        HCI Version: 4.1 (0x7)  Revision: 0x168
        LMP Version: 4.1 (0x7)  Subversion: 0x2209
        Manufacturer: Broadcom Corporation (15)

Moreover my raspberry get the XIAOMI device:

pi@mypi:~ $ bluetoothctl
[NEW] Controller fa:ke:ad:dr:es:01 mypi [default]
[bluetooth]# scan on
Discovery started
[CHG] Controller fa:ke:ad:dr:es:01 Discovering: yes
[NEW] Device fa:ke:ad:dr:es:02 MJ_HT_V1
[CHG] Device fa:ke:ad:dr:es:02 ServiceData Key: ------removed-------

I can use gatttool to get notifications from the device.

When we come to openHAB the XIAOMI is not discovered.

What am I doing in the wrong way? TIA