shnhrrsn / homebridge-openzwave

OpenZWave platform for Homebridge.
MIT License
19 stars 4 forks source link

installing on HOOBS v4 #23

Open TheLucidOne opened 3 years ago

TheLucidOne commented 3 years ago

Anyone able to get this running on HOOBS v4? I have the bridge running (as an additional bridge to HOOBS) and have added it to Homekit, but with HOOBS v4 the log keeps scrolling:

Unable to determine plugin type for "homebridge-openzwave"

I have the AEOTEC Z-Stick Gen5 plugged into a Pi 4b. Any insight would be appreciated - perhaps an update is required for v4?

hermsdad commented 3 years ago

I am having the same issue. I was finally able to upgrade to Hoobs 4 but OpenZwave does not want to work. Here's what I get in the log when I go to install:

10/14/2021, 12:20:41 AMzwave starting 10/14/2021, 12:20:44 AMzwaveWARNINGNo plugins installed. 10/14/2021, 12:20:44 AMzwaveBridge is running on port 51836. 10/14/2021, 12:29:41 AMERRORUnable to determine plugin type for "homebridge-openzwave" 10/14/2021, 12:29:41 AMzwaveConfiguration change 10/14/2021, 12:29:41 AMzwave stopping 10/14/2021, 12:29:46 AMzwave starting 10/14/2021, 12:29:47 AMzwaveWARNINGNo plugins installed.

I followed the instructions for installing but when i run: sudo apt install libopenzwave1.5-dev

Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package libopenzwave1.5-dev E: Couldn't find any package by glob 'libopenzwave1.5-dev'

I am on Debian 11 amd64.

LunchboxNYC commented 2 years ago

I can't even get it to install on Hoobs v4.

hoobs@hoobs:~ $ sudo npm i -g homebridge-openzwave

npm ERR! code 1 npm ERR! path /usr/lib/node_modules/homebridge-openzwave/node_modules/openzwave-shared npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! make: Entering directory '/usr/lib/node_modules/homebridge-openzwave/node_modules/openzwave-shared/build' npm ERR! CXX(target) Release/obj.target/openzwave_shared/src/callbacks.o npm ERR! make: Leaving directory '/usr/lib/node_modules/homebridge-openzwave/node_modules/openzwave-shared/build' npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@8.4.1 npm ERR! gyp info using node@16.14.0 | linux | arm npm ERR! gyp info find Python using Python version 3.7.3 found at "/usr/bin/python3" npm ERR! gyp info spawn /usr/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', npm ERR! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'make', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/lib/node_modules/homebridge-openzwave/node_modules/openzwave-shared/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/root/.cache/node-gyp/16.14.0/include/node/common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/16.14.0', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/16.14.0/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/usr/lib/node_modules/homebridge-openzwave/node_modules/openzwave-shared', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! gyp info spawn make npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm ERR! In file included from /root/.cache/node-gyp/16.14.0/include/node/v8.h:30, npm ERR! from ../src/openzwave.hpp:27, npm ERR! from ../src/callbacks.cc:18: npm ERR! /root/.cache/node-gyp/16.14.0/include/node/v8-internal.h: In function ‘void v8::internal::PerformCastCheck(T*)’: npm ERR! /root/.cache/node-gyp/16.14.0/include/node/v8-internal.h:492:38: error: ‘remove_cv_t’ is not a member of ‘std’ npm ERR! !std::is_same<Data, std::remove_cv_t>::value>::Perform(data); npm ERR! ^~~ npm ERR! /root/.cache/node-gyp/16.14.0/include/node/v8-internal.h:492:38: note: suggested alternative: ‘remove_cv’ npm ERR! !std::is_same<Data, std::remove_cv_t>::value>::Perform(data); npm ERR! ^~~ npm ERR! remove_cv npm ERR! /root/.cache/node-gyp/16.14.0/include/node/v8-internal.h:492:38: error: ‘remove_cv_t’ is not a member of ‘std’ npm ERR! /root/.cache/node-gyp/16.14.0/include/node/v8-internal.h:492:38: note: suggested alternative: ‘remove_cv’ npm ERR! !std::is_same<Data, std::remove_cv_t>::value>::Perform(data); npm ERR! ^~~ npm ERR! remove_cv npm ERR! /root/.cache/node-gyp/16.14.0/include/node/v8-internal.h:492:50: error: template argument 2 is invalid npm ERR! !std::is_same<Data, std::remove_cv_t>::value>::Perform(data); npm ERR! ^ npm ERR! /root/.cache/node-gyp/16.14.0/include/node/v8-internal.h:492:63: error: ‘::Perform’ has not been declared npm ERR! !std::is_same<Data, std::remove_cv_t>::value>::Perform(data); npm ERR! ^~~ npm ERR! /root/.cache/node-gyp/16.14.0/include/node/v8-internal.h:492:63: note: suggested alternative: ‘perror’ npm ERR! !std::is_same<Data, std::remove_cv_t>::value>::Perform(data); npm ERR! ^~~ npm ERR! perror npm ERR! make: *** [openzwave_shared.target.mk:148: Release/obj.target/openzwave_shared/src/callbacks.o] Error 1 npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error: make failed with exit code: 2 npm ERR! gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:520:28) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) npm ERR! gyp ERR! System Linux 5.10.103-v7+ npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /usr/lib/node_modules/homebridge-openzwave/node_modules/openzwave-shared npm ERR! gyp ERR! node -v v16.14.0 npm ERR! gyp ERR! node-gyp -v v8.4.1 npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2022-03-11T20_57_57_284Z-debug-0.log