-
-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
USB dongle issue, no more data #345
Comments
Same problem here, with Pi4 and Belkin USB Dongle, a workarround is to just enable official BT Xiaomi Sensors (in parallel operation) on HA, this way Passive BLE addon keep working all day long. |
do you have a link ? Thank's for help :) |
@sakislad means this component If you google for the issue of Bluetooth being powered down, there are numerous similar problems. It might be possible to build in routine that checks the power state after not receiving updates for a while and power up the dongle, but I'll have to look into that. |
I'm looking for a solution since I had my dongle and didn't find anything :( I just add a "mitemp_bt" sensor. I hope this will work :) |
I had this too. I think it is a bug in the kernel used on the Pi. I gave up and coughed up for a Blue and I have had no issues since (but can only get one dongle to work at a time). |
I use this addon with success for a while in docker on Ubuntu vm on qnap Nas. 3 weeks ago I have migrated on o Raspberry pi4 using the same adapter, running stable for 2 weeks. On 3rd week this situation comes up and I decided to give mitemp_bt a try but I didn't uninstalled the passive ble addon and I have them running in parallel with success. |
Could you show me your mitemp_bt lines in your configuration.yaml ? I added it and tried with the "bluetooth_le_tracker" ... my dongle still going off, more and more frequently :( :( :( :( |
|
Bluetooth has so many problems in rpi4, I want to replace the sensors with zigbee ones! |
I'm trying another workaround... |
I think that is a good workaround. Perhaps it would even be possible to do a check on the status of Bluetooth, and if down, power on Bluetooth.? Can you share your script? |
Could be a good news, thanks for your help |
In configuration.yaml i put those shell_commands: Then I prepare the ssh login without password... And finally create an automation to run the shell commands every 15 minutes:
The trick works, bluetooth was down in 7:00am and the automation bring it back after 15 minutes! |
I did all you said 1st : the shell commands seems to be good. But nothing happen when I triggered them, on Dev Tools, services 2nd : I follow the topic, but don't know if it's good or not :( 3rd : error on the automation creation |
What happens if you run the commands from ssh; is the Bluetooth powering off with the first command only; I use the community ssh add-on, not the official and I have enabled something on my dad level which I don't remember... I'll check and respond soon... |
the commands works fine but ask the root/admin password So, my problem is the 2nd part. Have to check that |
you save the key on /root/.ssh/id_rsa you have to edit the two shell commands and put this path instead of /config/.ssh/id_rsa or copy the files to /config/.ssh/ |
At least, everything works fine :) Thank you @sakislad Just a question, on your automation, why don't you just use a "power on" ? |
I just think that this way I make a full refresh of Bluetooth state. |
After 3 days working great, bluetooth adapter disappeared from the system and the script doesnt work anymore until physical disconnect of the adapter. |
Isn't this some kind of hardware failure? Or perhaps firmware issue? |
damn, bad news for you ... still working fine for me, actually |
I think this was a hardware failure, but the overall problem i think is kernel problem. I will go Debian Supervised to see how it goes... |
same problem on Debian 10 (+ 1-2 more problems that needs to be solved) reverting to Home Assistant OS for now... |
Strange.... Maybe à dongle issue |
Hello. Today, my dongle stay off (first time off since I use the @sakislad feature) I had to disconnect my dongle to get terminal access again any ideas ? |
I sold the 3 sensors and also one Bed side lamp V1 that i have for 2 years and moving away from Xiaomi as they start to lock products to Xiaomi ecosystem, so i will not use the ble monitor integration anymore. I will go for zigbee temp & humidity sensors... |
@vini59fr Enter pass key is normally for pairing to other Bluetooth devices. No idea why you got this message, BLE monitor isn’t pairing to anything at all, must be something else |
There have been some Bluetooth firmware updates in HAos for multiple devices, including raspberry Pi, but also others, please try updating to HAos 6 and let me know if this solves it or not. |
I will share my experience of dealing with a similar problem (this message suggests that my assumptions may be close to the truth). I also started with a script that reboots the Bluetooth module. My solution was as follows:
If my memory serves me, then somewhere I have already described this solution and provided the code of all the scripts - I will try to find it. UPDATE: found it After a while, I abandoned this solution in favour of another, based on the assumption that the problem with my Bluetooth module manifested itself as a result of some kind of suspicious ("probing") activity of a neighbour's smartphone - after a while I noticed a corresponding pattern... btmgmt --index 0 info
btmgmt --index 0 power off
btmgmt --index 0 bredr off
btmgmt --index 0 power on
btmgmt --index 0 bondable off
btmgmt --index 0 sc off
btmgmt --index 0 ssp off
btmgmt --index 0 info the result should be as follows (
However, it should be noted that these changes are not permanent, you need to add these commands somewhere in the host autorun. I don't know how to do this best in the case of Home Assistant OS... Even though this method works successfully for me, I have no objective evidence that it was it that solved my problem... |
Hi there
I have an issue since I use a USB dongle and I don't where it comes :(
config : HassOS uptodate + Pi4 + USB BT dongle (Trendnet TBW-106UB)
The BLE integration stop receiving datas frequently
I checked the bluetoothctl and it appears to be "power off" by itself. I can power it on, but it goes off again after a couple of minutes/hours
I really don't know where to find a solution :(
The text was updated successfully, but these errors were encountered: