Closed jpfelgueiras closed 2 years ago
@jpfelgueiras what is the model of your Govee device?
I have 2 H5102 and 2 H5075
A couple of things that could be wrong come to mind. Great way to troubleshoot is to go one layer deeper into the library used by this homebridge plugin.
Clone https://github.com/asednev/govee-bt-client/
Then, run the following commands and provide console output.
$ cd govee-bt-client
$ npm install
$ npm run dev
Dose this output help?
`
pi@homebridge:~/govee-bt-client $ npm install
usb@1.6.3 install /home/pi/govee-bt-client/node_modules/usb prebuild-install --verbose || node-gyp rebuild
prebuild-install info begin Prebuild-install version 5.3.6
prebuild-install info looking for cached prebuild @ /home/pi/.npm/_prebuilds/cd9f6c-usb-v1.6.3-node-v83-linux-arm.tar.gz
prebuild-install http request GET https://github.com/tessel/node-usb/releases/download/v1.6.3/usb-v1.6.3-node-v83-linux-arm.tar.gz
prebuild-install http 404 https://github.com/tessel/node-usb/releases/download/v1.6.3/usb-v1.6.3-node-v83-linux-arm.tar.gz
prebuild-install WARN install No prebuilt binaries found (target=14.17.6 runtime=node arch=arm libc= platform=linux)
gyp WARN EACCES current user ("pi") does not have permission to access the dev dir "/home/pi/.cache/node-gyp/14.17.6"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/tmp/.node-gyp"
make: Entering directory '/home/pi/govee-bt-client/node_modules/usb/build'
CC(target) Release/obj.target/libusb/libusb/libusb/core.o
CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o
CC(target) Release/obj.target/libusb/libusb/libusb/hotplug.o
CC(target) Release/obj.target/libusb/libusb/libusb/io.o
CC(target) Release/obj.target/libusb/libusb/libusb/strerror.o
CC(target) Release/obj.target/libusb/libusb/libusb/sync.o
CC(target) Release/obj.target/libusb/libusb/libusb/os/poll_posix.o
CC(target) Release/obj.target/libusb/libusb/libusb/os/threads_posix.o
CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_usbfs.o
CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_udev.o
AR(target) Release/obj.target/usb.a
COPY Release/usb.a
CXX(target) Release/obj.target/usb_bindings/src/node_usb.o
In file included from ../src/helpers.h:3,
from ../src/node_usb.h:21,
from ../src/node_usb.cc:1:
../node_modules/nan/nan.h: In function 'void Nan::AsyncQueueWorker(Nan::AsyncWorker)':
../node_modules/nan/nan.h:2232:62: warning: cast between incompatible function types from 'void ()(uv_work_t)' {aka 'void ()(uv_work_s)'} to 'uv_after_work_cb' {aka 'void ()(uv_work_s, int)'} [-Wcast-function-type]
, reinterpret_cast ::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo ::Callback = void ()(const v8::WeakCallbackInfo ::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo ::Callback = void ()(const v8::WeakCallbackInfo ::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo ::Callback = void ( ::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo ::Callback = void ( ::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo ::Callback = void ( ::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo ::Callback = void ( @abandonware/bluetooth-hci-socket@0.5.3-7 install /home/pi/govee-bt-client/node_modules/@abandonware/noble/node_modules/@abandonware/bluetooth-hci-socket
node-pre-gyp install --fallback-to-build sh: 1: node-pre-gyp: not found
npm WARN govee-bt-client@1.0.11 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.1 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @abandonware/bluetooth-hci-socket@0.5.3-7 (node_modules/@abandonware/noble/node_modules/@abandonware/bluetooth-hci-socket):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @abandonware/bluetooth-hci-socket@0.5.3-7 install: audited 592 packages in 1324.329s 28 packages are looking for funding
run found 3881 vulnerabilities (210 moderate, 3671 high)
run govee-bt-client@1.0.11 dev /home/pi/govee-bt-client
rimraf ./dist && tsc && node dist/example.js internal/modules/cjs/loader.js:892
throw err;
^ Error: Cannot find module '@abandonware/bluetooth-hci-socket'
Require stack: npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2021-09-03T14_45_50_007Z-debug.log `~~~~
../src/node_usb.cc:95:1: note: in expansion of macro 'NODE_MODULE'
NODE_MODULE(usb_bindings, Initialize)
^~~
../src/node_usb.cc: In function 'void handleHotplug(std::pair<libusb_device, libusb_hotplug_event>)':
../src/node_usb.cc:151:58: warning: 'v8::Local~~~
../src/node_usb.cc:151:58: warning: 'v8::Local~~~
In file included from ../src/node_usb.h:12,
from ../src/node_usb.cc:1:
/tmp/.node-gyp/14.17.6/include/node/v8.h: In instantiation of 'void v8::PersistentBase~~~~~~~
/tmp/.node-gyp/14.17.6/include/node/v8.h: In instantiation of 'void v8::PersistentBase~~~
../src/device.cc:237:64: warning: 'v8::Local~~~
In file included from ../src/node_usb.h:12,
from ../src/device.cc:1:
/tmp/.node-gyp/14.17.6/include/node/v8.h: In instantiation of 'void v8::PersistentBase~~~~~~~
/tmp/.node-gyp/14.17.6/include/node/v8.h: In instantiation of 'void v8::PersistentBase~~~
../src/transfer.cc:126:72: warning: 'v8::Local~~~
In file included from ../src/node_usb.h:12,
from ../src/transfer.cc:1:
/tmp/.node-gyp/14.17.6/include/node/v8.h: In instantiation of 'void v8::PersistentBase~~~~~~~
/tmp/.node-gyp/14.17.6/include/node/v8.h: In instantiation of 'void v8::PersistentBase
node-pre-gyp install --fallback-to-build
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: spawn ENOENTnpm fund
for detailsnpm audit fix
to fix them, or npm audit
for details
pi@homebridge:~/govee-bt-client $ npm run dev
rimraf ./dist && tsc && node dist/example.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the govee-bt-client@1.0.11 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Describe Your Problem: The plug-in was installed without any problems and the log on the plug-in and homebridge are enabled. Waited more then 15m and no sensor was found
Logs:
Plugin Config:
Environment: