@Ernst - looking at this presence sensor. Not on the list currently, is it likely to be addable (locally rather than through the Tuya integration)?
No idea, havenāt seen any data from this one yet.
Iāll take a chance and order one and raise an issue when it arrives.
Hi, can anybody help me investigate the issue I have.
My BLE integration works for some time after restart and then crashes. From restart if works from 10 minutes to couple of hours - I get the sensors updated and everythingās fine, but then it crashes. I can see following in the log:
2023-11-03 17:13:37.320 ERROR (Thread-3) [custom_components.ble_monitor] HCIdump thread: Something wrong - interface hci0 not ready, and will be skipped for current scan period.
2023-11-03 17:13:37.321 ERROR (Thread-3) [custom_components.ble_monitor] HCIdump thread: Trying to power cycle Bluetooth adapter hci0 00:22:EC:06:5E:A2, will try to use it next scan period.
Only thing that helps is a full HA VM restart.
Previously it was very reliable, it started probably a month or two ago.
The Bluetooth dongle I use is StarTech USBBT1EDR4 (CSR8510A10), mentioned here: Bluetooth - Home Assistant
Update:
Seems like when I disabled āPassive Scanningā in āBluetoothā integration and enabled āUse active scan in stead of passive scanā in āPassive BLE Monitorā - it stopped hanging. I also tried passive scanning in both integrations - that didnāt work.
Is there any support for TH05 temperature sensor? It is same as LYWSD03MMC but works with Tuya not Xioaomi app.
Hi, I just got the linptech HS1BB and am trying to set it up but when I use this website (Mi Activation) I can connect to the sensor fine and when I press āDo activationā it shows that its starting in the logs but about 1min later it just says disconnected without ever giving me the Mi Bind Key can anyone helpe me ?
Log:
11:18:14: Searching for devices
11:18:20: Connecting to: linp.motion.hs1bb1
11:18:27: Detected Mi Thermometer
11:18:27: Connected
11:19:06: Activating now, please wait...
11:20:13: Disconnected.
11:20:26: Searching for devices
11:20:29: Connecting to: linp.motion.hs1bb1
11:20:32: Detected Mi Thermometer
11:20:32: Connected
11:20:37: Activating now, please wait...
11:22:26: Disconnected.
Hi, I have a bunch of Xiomi Mijia devices at home which provided both temperature and humidity information in my HA but they stopped working a few weeks ago and I noted that itās because of what it was mentioned above.
Iāve just reinstalled the Passive BLE Monitor integration and my five devices were detected successfully but both temperature and humidity entities are missing.
This is one of the errors I see:
Also here you can see the whole log home-assistant_2023-11-21T16-45-35.579Z.log Ā· GitHub
I had a look at the thread but didnāt figure out how to solve it. Any idea please??
Looks like your Bluetooth dongle is not working correct. Try a full system restart first (not only a restart of HA, but a full system restart). This often helps after a firmware update/home assistant Os update and reloads all Bluetooth stuff installed on your system.
I bought by mistake Linptech presence sensor ble mesh . any chance to integrate them in HA ? I use a bthome network. thanks on help
Hi All, I have some minor annoyances with the integration, but I am not entirely sure if it is on the integrationās side or with the setup itself that I am running.
My setup:
- Home Assistant OS installed on a VM in Oracle Virtualbox
- Host hardware is a Dell Optiplex 5800 running Win11
- ASUS BT-500 USB dongle
I am aware that VM needs to pass through the BT dongle so that HA can prioritize it over Windows. Normally this is achieved through unplugging and plugging in the dongle again after the VM has booted.
I have tried to eliminate the manual process by following the instructions in this post
Having the USB (Buetooth) working on VirtualBox - Hardware - Home Assistant Community (home-assistant.io), however the outcome is not exactly what I hoped for:
- The passthrough does take place, as I see in the VM menu that the dongle is showing up with the proper name and is connected to the VM, so that tells me that the batch file is successfully running and it is disabling/enabling the dongle as per design.
- In HA the base Bluetooth integration recognizes the dongle
- Passive BLE however does not seem to see the device - I have the āDonāt use Bluetooth adapterā option ticked in, whilst I should have the device with its MAC address listed above it. I have tried reloading both the base BT and the Passive BLE integrations, no changes. The only thing that helps at this stage is to restart HA.
Thanks but didnāt work. I had to backup to 2023.07 core version and it started to work again. It seems that 2023.08 broke it somehow.
Yes, i fixed it in the end with GitHub - pvvx/ATC_MiThermometer: Custom firmware for the Xiaomi Thermometers and Telink Flasher.
Once I flashed the firmware for the Xiaomi Bluetooth devices, and started using bluetooth proxy in HA, it all worked reliably.
Not having to pair anything is fantastic. It means the sensors just work and appear in HA through their broadcast data. In practice for me, that makes this type of sensor more reliable than zigbee ones now (and they are cheaper, and they have a LCD display)! So I bought a load more!
I have succesfully added the remote dimmer (YLKG07YL) to passive BLE monitor. When added to home assistant i added the MAC address and encryption key/beacon key which i got using step 5 in the FAQ āget_beacon_key python scriptā.
I now have this:
The remote easily controls the yeelight ceiling lamp, but i have no entities that i can use in home asssistant. What am i missing?
Dont know if relevant but in āXiaomi BLEā it requests bindkey that is 32 charachters, which doesnt show up for v3 and only v4/5
YLKG07YL Normally requires a 24 character long key, as it is using v3 MiBeacon format. Iām not aware that they have released a firmware update, so I guess that is still the case.
Is there anything in the logs?
what could be the reason for Iām not able to remove unwanted BLE devices via configuration?
there are some impressive 55 pieces of unknown sensors like heart rate, steps, etc, discovered presumably through a nearby ibeacon, but whenever I delete them by configuration they still come back an sit in the list like nothing happenedā¦
edit: log entry
Logger: custom_components.ble_monitor.config_flow
Source: custom_components/ble_monitor/config_flow.py:251
Integration: Passive BLE monitor ([documentation](https://github.com/custom-components/ble_monitor), [issues](https://github.com/custom-components/ble_monitor/issues))
First occurred: 13:41:14 (18 occurrences)
Last logged: 13:58:47
* Removing BLE monitor device 74278BDA-B644-4520-8F0C-720EAF059935 from configuration None
* Removing BLE monitor device CF757C79-D27A-4BEA-AAF2-A2908E49FC19 from configuration None
* Removing BLE monitor device E20A39F4-73F5-4BC4-1864-17D1AD07A962 from configuration None
* Removing BLE monitor device E2C56DB5-DFFB-48D2-B060-D0F5A71096E0 from configuration None
* Removing BLE monitor device F34EBAC4-7CD7-4027-878E-55F4E71D0309 from configuration None
Not sure, do you have disabled the option ādiscoveryā / " Discover devices and sensors automatically". If not, try to disable that option, to prevent it from being re-added again.
absolutely! disabling auto discovery was my first movement, but still, canāt remove anything
after reopening the configuration the same devices pop upā¦ it is getting verrry very annoying by now
Hi Guys
Iām struggling to set my BT buttons up with this integration and I need a bit of help - much appreciated if someone can give me hint
My situation:
I purchased two of the Yeelight YLAI003 bluetooth buttons, set them up in the Xaomi App and extracted the BLE Key via Cloudextractor.
Now these buttons dont get auto discovered by the Passive BLE Monitor, but instantly by the Xiaomi BLE integration.
The issue in hte Xiaomi BLE integration is, that it only reports battery level and voltage, but unfortunately not the click event, which I need.
So, I was hoping to add this via Passive BLE Monitor, but no luck. The devices dont get automatically discovered, and when I add them manually in the UI Config of BLE Monitor, they are not added to the entities / devices of HA either.
Iām not using a BT Adapter on HA, I use a BT Proxy (Shelly) - my fear is that the Passive BLE Montior does not support the Shelly BT Proxy, is that true? If its supported, any idea what I could do wrong? I did reset the button multiple times, pressed the buttons, but no luck
Thank you
Button event support will be added in the upcoming release of HA (xiaomi-ble integration). Iām not sure your sensor included, have to check.
Checked. Yes, that one is included in the February release next week.
BTW remotes are planned for March release to be included in xiaomi-ble
For BLE monitor, perhaps resetting the device has changed the encryption key. If you post some BLE messages with report unknown devices enebled in the ble monitor settings, I can have a look if there is something wrong.