Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection is unstable after upgrading to node v16.x #21

Open
deflao opened this issue Dec 9, 2021 · 2 comments
Open

Connection is unstable after upgrading to node v16.x #21

deflao opened this issue Dec 9, 2021 · 2 comments

Comments

@deflao
Copy link

deflao commented Dec 9, 2021

I’ve tried different versions of the node v16 (16.13.0 and 16.13.1) and the connection is very unstable.
I have 3 Switchmates connected before on node v14.x fairly well.
There is no error in the log. Maybe the plug-in needed to be updated also

@wild-a
Copy link

wild-a commented Dec 10, 2021

My plugin disappeared completely.

This is the error from Homebridge:

ERROR LOADING PLUGIN homebridge-switchmate-ble:
[12/9/2021, 7:52:33 PM] Error: The module '/usr/lib/node_modules/homebridge-switchmate-ble/node_modules/@abandonware/bluetooth-hci-socket/lib/binding/bluetooth_hci_socket.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 83. This version of Node.js requires
NODE_MODULE_VERSION 93. Please try re-compiling or re-installing
the module (for instance, using npm rebuild or npm install).
at Object.Module._extensions..node (node:internal/modules/cjs/loader:1183:18)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/usr/lib/node_modules/homebridge-switchmate-ble/node_modules/@abandonware/bluetooth-hci-socket/lib/native.js:6:15)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
[12/9/2021, 7:52:33 PM] ====================
[12/9/2021, 7:52:33 PM] Loading 3 platforms...
[12/9/2021, 7:52:33 PM] [Config] Initializing config platform...
[12/9/2021, 7:52:33 PM] [Config] Running in Service Mode
[12/9/2021, 7:52:33 PM] No plugin was found for the platform "SwitchmateBLE" in your config.json. Please make sure the corresponding plugin is installed correctly.

@deflao
Copy link
Author

deflao commented Dec 10, 2021

I also have that problem at first so I uninstalled the plugin, restart the server and reinstall the plugin and it works again. But not as stable compared to when I was on v14.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants