Comments (6)
This plugin relies on the noble utility to implement a BLE Central device. The bluetooth-hci-socket version relied upon by the noble package does not work with nodejs versions newer than v8. The abandonware version of bluetooth-hci-socket will build on my RPi using nodejs v14. (see https://www.npmjs.com/package/@abandonware/bluetooth-hci-socket). I'm still working to get noble to use the alternate bluetooth module.
from homebridge-bluetooth.
Any solution to this issue yet?
I have successfully installed home bridge-bluetooth but homebridge log shows the following error:
Any help is much appreciated.
from homebridge-bluetooth.
The solution suggested by @gdavids57 actually works for me. Please do not forget to change all instances of require('bluetooth-hci-socket')
to require('@abandonware/bluetooth-hci-socket')
.
Moreover, the chalk version 5 does not work for this plugin as the moment. So what you need to do is to downgrade chalk version to version 4. What I have done is as follow:
sudo npm uninstall chalk
sudo npm install [email protected]
from homebridge-bluetooth.
I have a Bluetooth version of Xiaomi Power Strip 2 (model: qmi.plug.pvs3). It connected ok, but no service discovered.
This is my config file:
{
"platform": "Bluetooth",
"accessories": [
{
"name": "Xiaomi Outlet 2",
"address": "68:AB:BC:07:50:AD",
"services": [
{
"name": "JBL",
"type": "Outlet",
"UUID": "80c77a06-ec5c-11ec-8ea0-0242ac120002",
"characteristics": [
{
"type": "On",
"UUID": "80c77a06-ec5c-11ec-8ea0-0242ac120002"
}
]
}
]
}
]
}
The log on Homebridge as follow:
[15/06/2022, 9:43:48 pm] [Bluetooth] [Xiaomi Outlet 2] Connected | Xiaomi Outlet 2 (68:AB:BC:07:50:AD)
[15/06/2022, 9:43:48 pm] [Bluetooth] [Xiaomi Outlet 2] No services discovered
What have I done wrong?
from homebridge-bluetooth.
The solution suggested by @gdavids57 actually works for me. Please do not forget to change all instances of
require('bluetooth-hci-socket')
torequire('@abandonware/bluetooth-hci-socket')
.
Hi @uswong.
Can you please tell me how to find the instances as mentioned in your reply
from homebridge-bluetooth.
cd
to your homebridge-bluetooth plugin directory and try using the following command:
grep -r bluetooth-hci-socket *|grep require
from homebridge-bluetooth.
Related Issues (20)
- Infinitely stuck activity spinner in the Home app on iOS HOT 7
- Use with iPhone Bluetooth presence detection HOT 2
- iPhone presence detection HOT 1
- Question about adding devices that donβt match HAP HOT 1
- Arduino UNO HOT 1
- Would it work with August Smart Lock? HOT 3
- let homebridge control a bluetooth projector, streamer? HOT 1
- Characteristic doesn't receive value HOT 9
- again didn't receive values
- How to control electric heater? HOT 1
- Bluetooth Shower controls HOT 1
- NOT AN ISSUE: After Market USB Bluetooth Adapter Mac OS HOT 1
- Ranger/ Extender behaviour possible? HOT 1
- Problem restarting Homebridge HOT 2
- Incompatibility to NodeJS > 9.9.0 HOT 1
- Tv commands HOT 1
- How to add devices with auth HOT 1
- Adding a custom BLE device
- Schlage bluetooth lock question HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-bluetooth.