vvpossible / homebridge_yeelight

Yeelight plugin for homebridge
303 stars 59 forks source link

Failed to load ble module #21

Open forrestal opened 7 years ago

forrestal commented 7 years ago

Hi folks! Have anyone encountered problem that home bridge is unable to load BLE module?

I'm also getting this after yeelgiht plugin starts no ble cap, skip ble device discovery add to multicast group listen on 0.0.0.0 no did or loc found!

YinHangCode commented 7 years ago

https://www.npmjs.com/package/noble

forrestal commented 7 years ago

Ok... I have noble installed... Any way to debug whats wrong?

YinHangCode commented 7 years ago

maybe you install noble not success. the reason in “Failed to load ble module” is noble.

Hannes12345 commented 6 years ago

@forrestal @YinHangCode i have the same problem. After i had installed noble i didnt have this massage but it still doesnt work. i still get this massage: [9/28/2017, 1:33:12 PM] [yeelight] DidFinishLaunching I dont know why its finsish launching :(

YinHangCode commented 6 years ago

@Hannes12345 try to remove -g install.

npm install noble
neb120 commented 6 years ago

I am also having this issue and can't work out how to fix it, I am on macOS High Sierra

J7mbo commented 6 years ago

I'm running this on a Raspberry Pi zero wifi. I also have this issue.

First I performed sudo npm install -g noble --unsafe-perm as @YinHangCode suggests. The log now contains:

noble warning: adapter state unauthorized, please run as root or with sudo Jul 17 21:49:57 raspberrypi homebridge[3026]: or see README for information on running without root/sudo: Jul 17 21:49:57 raspberrypi homebridge[3026]:
https://github.com/sandeepmistry/noble#running-on-linux

So I did some digging and tried this:

sudo setcap cap_net_raw+eip $(eval readlink -f which node) sudo apt-get install libudev-dev npm install -g bluetooth-hci-socket`

Then I tried to install noble again but it still states during the installation:

Hopefully this helps someone...