Replies: 1 comment 4 replies
-
Actually, I've been looking at hooking a bluetooth speaker to my system. This would also require bluetooth scanning to be paused, as I understand it, and for this reason I guess the best solution would be to duplicate the "inquiries switch" functionality of the bluetooth classic into the BLE one. Would that be something you would consider ? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am happily using room-assistant to scan for the presence of BLE smartbands and to receive advertisements from some xiaomi devices. This works great and I want to thank everyone and particularly @mKeRix for it :-)
I have another need that I believe is pretty rare: the people in my household that have the bands with them don't necessarily need or want the companion app on their phones (or have a phone, for that matter). So we might not get alerts when the bands batteries are low and the presence detection will end up failing :-/
So here's my idea: the bands (Mi band 1s and Mi band 3) unfortunately do not advertise their battery level, but it is possible to get it by connecting to the devices with
gatttool
. The only thing stopping me from scripting this is that the bluetooth interface is actually in use by the BLE integration. I have looked at the Bluetooth Classic integration code and I think I grasped that it "pauses" the BLE scan while it does its own thing. Am I getting this right ?I guess the right way to do what I want would be to build a new integration, but I don't think I'll manage to do that with my complete lack of java/typescript knowledge. That leaves me to try it with the shell integration, and with the following question: would it be possible to add an option to the shell integration so that it pauses the BLE process while it runs ?
Thanks a lot for your work !
Beta Was this translation helpful? Give feedback.
All reactions