Add Bluetooth so we can add speakers and also Xiaomi Bluetooth temperature sensors.
And of course other things I havenât thought of.
Ps: I hope there will be a lot of votes ![]()
Add Bluetooth so we can add speakers and also Xiaomi Bluetooth temperature sensors.
And of course other things I havenât thought of.
Ps: I hope there will be a lot of votes ![]()
I would also like Bluetooth for speakers, but especially for presence detection via a NUT (I donât always have my smartphone with me).
+1 for NUT keychain management
The topic is currently in development but blocked because the available libraries are not 100% compatible with all systems, we will have to be patient a little longer.
Just for info
what is the exact problem?
Exactly, itâs a bit complicated, but in short:
Most other libraries are specific to Bluez (Linux).
I am therefore waiting for something more stable.
As this is a highly anticipated service and the libs are not ready, could a « hybrid » approach be considered? For example, running a Python lib and interfacing it with Gladysâ NodeJS code?
If you know of a Python library or any other that would work, itâs technically feasible.
Weâll have to check with the boss @pierre-gilles
For me, the most promising solution would be to go through noble or @abandonware/noble. Unless Iâm mistaken, the Gladys v3 Bluetooth module is based on it, and it still works, right?
Granted, we wonât have Windows support, but does anyone really use Gladys on Windows (outside of development)? And even in development, there are plenty of options: Docker, WSL, right?
Given the demand around this service, Iâm sure it would do the job!
Anyway, the services were designed not necessarily to support all platforms.
At least, does the @abandonware/noble service work well on Linux @AlexTrovato? Thatâs all that matters in my opinion ![]()
Iâm being picky, but could someone change the title to change bluetHooth to bluetooth? Because if I pronounce it like that, it sounds like « bloufshoufshh » ![]()
Itâs good, itâs fixed ![]()
I canât tell you if it works well under Linux, as I develop under Windows, in any case, it doesnât work on WSL 2.
But I will try to switch to Linux to validate the proper functioning of the library.
After all, the service itself is not finished.
Ok, so Iâm resuming development on this topic, thereâs quite a bit of work to do, Iâm relying on the Raspberry Piâs Bluetooth.
Based on my initial tests, if the Bluetooth is not compatible, it doesnât prevent Gladys from starting, and a message indicating that Bluetooth is not active is displayed.
Weâll go with that ![]()
For my part, I vote for @abandonware/noble which allowed me to recover the data from my Xiaomi Mijia Bluetooth Low Energy sensors in 10 minutes via a Linux VM!
But itâs true that I didnât manage to get it working on Windows (without WSL).
@pierre-gilles do you have usage statistics on this (OS distribution)?
Other projects probably succeed on Windows (Home Assistant maybe?), relying on two different bricks may make sense. Noble on Linux and a different application on Windows (Python, other).
Yes! In terms of unique instances since the alpha release, we have had:
These figures only count production instances, not development ones. However, by digging, the instances running on Windows/Mac seem to be more like tests than anything else, these instances date back to beta 1⊠![]()
I am 100% for going with abandonware/noble for now!
Might as well display the module in « disabled » mode on platforms other than Linux for the moment!
The 22 instances of @AlexTrovato ![]()
Exactly
The v4 is designed to have « platform-specific » services anyway, the package.json of a service can specify that the service only works on Linux.
Perfect ![]()
So we agree, the idea is to display the module in the list, but to specify that it is not compatible with the platform?
Should we agree, the idea is to display the module in the list, but to specify that it is not compatible with the platform?
Yes! Thatâs exactly it.