Giter VIP home page Giter VIP logo

homebridge-platform-zwave's People

Contributors

glenn-m avatar shnhrrsn avatar velocityzen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

homebridge-platform-zwave's Issues

razberry Zwave

hello, i have a raspberry 3b and a razberry card. I tried to install the zwave network but I only got error codes. can i operate my card? I work today with jeedom and the zwave network with the razberry card works very well. thank you

Unable to make it work with Homebridge in Docker

Hi!

I'm using openHAB since a few years and now I'm exploring new options, so I was trying to get your plugin to work with homebridge running on docker using the following instructions:

https://github.com/oznu/docker-homebridge
https://github.com/velocityzen/homebridge-platform-zwave#readme

Here are my configuration files:

docker-compose.yaml

version: '2'
services:
  homebridge:
    image: oznu/homebridge:latest
    container_name: homebridge
    restart: always
    network_mode: host
    environment:
      - PGID=1000
      - PUID=1000
      - HOMEBRIDGE_CONFIG_UI=1
      - HOMEBRIDGE_CONFIG_UI_PORT=8080
    volumes:
      - ./homebridge:/homebridge
    devices:
      - /dev/ttyACM0:/dev/ttyACM0

config.json

{
    "bridge": {
        "name": "Homebridge 1D25",
        "username": "*****",
        "port": 53021,
        "pin": "*****"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8080,
            "platform": "config"
        },
        {
            "platform": "zWavePlatform",
            "name": "Z-Wave Platform",
            "zwave": {
                "devicePath": "/dev/ttyACM0"
            }
        }
    ]
}

startup.sh

#!/bin/sh

#
# Docker Homebridge Custom Startup Script - oznu/homebridge
#
# This script can be used to customise the environment and will be executed as
# the root user each time the container starts.
#

apk add --no-cache openzwave openzwave-dev

console log

homebridge    | Initialising OpenZWave 1.6.974 binary addon for Node.JS.
homebridge    | 	OpenZWave Security API is ENABLED
homebridge    | 	ZWave device db    : etc/openzwave/
homebridge    | 	User settings path : /homebridge/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared/build/Release/../../
homebridge    | 	Option Overrides : --ConsoleOutput false --Logging false --SaveConfiguration false
homebridge    | 2020-09-28 12:52:55.010 Error, Cannot find a path to the configuration files at etc/openzwave/, Using /etc/openzwave/ instead...
homebridge    | 2020-09-28 12:52:55.011 Info, Reading /etc/openzwave/options.xml for Options
homebridge    | 2020-09-28 12:52:55.011 Info, Reading /homebridge/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared/build/Release/../../options.xml for Options
homebridge    | 2020-09-28 12:52:55.011 Info, Options:
homebridge    | 2020-09-28 12:52:55.011 Info, 	appendlogfile: false
homebridge    | 2020-09-28 12:52:55.011 Info, 	associate: true
homebridge    | 2020-09-28 12:52:55.011 Info, 	assumeawake: true
homebridge    | 2020-09-28 12:52:55.011 Info, 	autoupdateconfigfile: true
homebridge    | 2020-09-28 12:52:55.011 Info, 	configpath: /etc/openzwave/
homebridge    | 2020-09-28 12:52:55.011 Info, 	consoleoutput: false
homebridge    | 2020-09-28 12:52:55.011 Info, 	customsecuredcc: 0x62,0x4c,0x63
homebridge    | 2020-09-28 12:52:55.011 Info, 	drivermaxattempts: 5
homebridge    | 2020-09-28 12:52:55.011 Info, 	dumptriggerlevel: 1
homebridge    | 2020-09-28 12:52:55.011 Info, 	enablesis: true
homebridge    | 2020-09-28 12:52:55.011 Info, 	enforcesecurereception: true
homebridge    | 2020-09-28 12:52:55.011 Info, 	exclude:
homebridge    | 2020-09-28 12:52:55.011 Info, 	include:
homebridge    | 2020-09-28 12:52:55.011 Info, 	includeinstancelabel: true
homebridge    | 2020-09-28 12:52:55.011 Info, 	interface:
homebridge    | 2020-09-28 12:52:55.011 Info, 	intervalbetweenpolls: false
homebridge    | 2020-09-28 12:52:55.011 Info, 	language:
homebridge    | 2020-09-28 12:52:55.011 Info, 	logfilename: OZW_Log.txt
homebridge    | 2020-09-28 12:52:55.011 Info, 	logging: false
homebridge    | 2020-09-28 12:52:55.011 Info, 	networkkey:
homebridge    | 2020-09-28 12:52:55.011 Info, 	notifyondriverunload: false
homebridge    | 2020-09-28 12:52:55.011 Info, 	notifytransactions: false
homebridge    | 2020-09-28 12:52:55.011 Info, 	performreturnroutes: false
homebridge    | 2020-09-28 12:52:55.011 Info, 	pollinterval: 30000
homebridge    | 2020-09-28 12:52:55.011 Info, 	queueloglevel: 9
homebridge    | 2020-09-28 12:52:55.011 Info, 	refreshallusercodes: false
homebridge    | 2020-09-28 12:52:55.011 Info, 	reloadafterupdate: AWAKE
homebridge    | 2020-09-28 12:52:55.011 Info, 	retrytimeout: 10000
homebridge    | 2020-09-28 12:52:55.011 Info, 	saveconfiguration: false
homebridge    | 2020-09-28 12:52:55.011 Info, 	saveloglevel: 8
homebridge    | 2020-09-28 12:52:55.012 Info, 	securitystrategy: SUPPORTED
homebridge    | 2020-09-28 12:52:55.012 Info, 	suppressvaluerefresh: false
homebridge    | 2020-09-28 12:52:55.012 Info, 	userpath: /homebridge/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared/build/Release/../../
homebridge    | [9/28/2020, 12:52:56 PM] [Config] Homebridge Config UI X v4.27.1 is listening on :: port 8080
homebridge    | [9/28/2020, 12:53:15 PM] [Z-Wave Platform] Failed to setup Z-Wave network constroller undefined

After several tries with different configurations, I'm always getting the same result: [Z-Wave Platform] Failed to setup Z-Wave network constroller undefined

I've also tested ozwcp docker image (openzwave/openzwave-control-panel) and it shows me the right information of my z-wave network

docker run --rm --name ozwcp -p 8008:8008 --device /dev/ttyACM0:/dev/ttyACM0 openzwave/openzwave-control-panel
Node Id Basic Type Generic Type Product Name Location Value Last Heard Status
1 *LB Static Controller Static PC Controller AEON Labs ZW090 Z-Stick Gen5 US 1:35:19 PM Ready
2 LBR Routing Slave Binary Power Switch Vision Security ZL7431 In-Wall Switch Single Relay off 1:35:34 PM Ready
3 LBR Routing Slave Binary Power Switch Vision Security ZL7432 In-Wall Switch, Dual Relay off 1:35:34 PM Ready
4 LBR+ Z-Wave+ node Always On Slave On/Off Power Switch Unknown: id=011a Unknown: type=0111, id=0606 off 1:35:35 PM Ready
5 LBR+ Z-Wave+ node Always On Slave On/Off Power Switch Unknown: id=011a Unknown: type=0111, id=0606 off 1:35:35 PM Ready

Am I missing something?

Thanks!

Zwave issue workaround, better documentation and partially added accessory

Installation on Debian/Bullseye and Node 16 fails. The workaround is the following:

sudo CXXFLAGS="--std=c++14" npm i -g homebridge-platform-zwave

In addition, please document relevant required settings:

  • Add the following to /boot/config.txt:
enable_uart=1
dtoverlay=disable-bt
  • Disable serial terminal:
sudo systemctl stop [email protected]
sudo systemctl disable [email protected]

What is pending for me? The module is detecting the accessory (I have a Popp solar siren), however it only list the switch, but not the temperature sensor and other values. I wonder if this is an openzwave issue or it is because this module does not add them correctly (FYI OpenHab 2 and 3 Zwave binding works well with this accessory).

Initialising OpenZWave 1.6.1545 binary addon for Node.JS.
        OpenZWave Security API is ENABLED
        ZWave device db    : /etc/openzwave/
        User settings path : /usr/lib/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared/build/Release/../../
        Option Overrides : --ConsoleOutput false --Logging false --SaveConfiguration false
Could Not Open OZW Log File.
[18/11/2021, 09:21:37] [Z-Wave Platform] Controller ready. Scanning... 
[18/11/2021, 09:21:38] [Z-Wave Platform] Node 1 => accessory 356a192b-7913-4b04-8545-74d18c28d46e 
[18/11/2021, 09:21:38] [Z-Wave Platform] Z-Wave network scan complete
[18/11/2021, 09:21:39] [Z-Wave Platform] Node 2 => accessory da4b9237-bacc-4cdf-99c0-760cab7aec4a 
[18/11/2021, 09:21:39] [Z-Wave Platform] Z-Wave network scan complete

Wont Install Hoobs V4

I am trying to get Platform-Zwave to install on a new Hoobs 4.2 and receive the following error:

npm ERR! code 1
npm ERR! path /usr/lib/node_modules/homebridge-platform-zwave/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-platform-zwave/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-platform-zwave/node_modules/openzwave-shared/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | 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-platform-zwave/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-platform-zwave/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-platform-zwave/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-11T21_26_23_229Z-debug-0.log

can't install running HB on a raspberry pi

I have this error in the log:
error Failed at the [email protected] install script.
Running Homebride on a raspberry and openzwave under domoticz.
I want to have HB and domoticz so i have a backup, when domoticz is not running i can use HB

Logfile:

0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli '/usr/bin/node',
1 verbose cli '/usr/bin/npm',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli 'homebridge-platform-zwave@latest'
1 verbose cli ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session dce69029c26e20b0
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 200 https://registry.npmjs.org/homebridge-platform-zwave 1252ms
8 http fetch GET 200 https://registry.npmjs.org/homebridge-platform-zwave/-/homebridge-platform-zwave-1.2.0.tgz 168ms
9 silly pacote tag manifest for homebridge-platform-zwave@latest fetched in 1501ms
10 timing stage:loadCurrentTree Completed in 1568ms
11 silly install loadIdealTree
12 silly install cloneCurrentTreeToIdealTree
13 timing stage:loadIdealTree:cloneCurrentTree Completed in 2ms
14 silly install loadShrinkwrap
15 timing stage:loadIdealTree:loadShrinkwrap Completed in 5ms
16 silly install loadAllDepsIntoIdealTree
17 silly resolveWithNewModule [email protected] checking installable status
18 http fetch GET 200 https://registry.npmjs.org/try-require 301ms
19 http fetch GET 304 https://registry.npmjs.org/camelcase 358ms (from cache)
20 http fetch GET 200 https://registry.npmjs.org/try-require/-/try-require-1.2.1.tgz 96ms
21 silly pacote range manifest for try-require@^1.2.1 fetched in 451ms
22 silly resolveWithNewModule [email protected] checking installable status
23 http fetch GET 304 https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz 130ms (from cache)
24 silly pacote range manifest for camelcase@^5.3.1 fetched in 520ms
25 silly resolveWithNewModule [email protected] checking installable status
26 http fetch GET 200 https://registry.npmjs.org/range-map 829ms
27 http fetch GET 304 https://registry.npmjs.org/openzwave-shared 959ms (from cache)
28 http fetch GET 304 https://registry.npmjs.org/openzwave-shared/-/openzwave-shared-1.7.2.tgz 191ms (from cache)
29 silly pacote range manifest for openzwave-shared@^1.5.6 fetched in 1177ms
30 silly resolveWithNewModule [email protected] checking installable status
31 http fetch GET 200 https://registry.npmjs.org/range-map/-/range-map-1.0.4.tgz 755ms
32 silly pacote range manifest for range-map@^1.0.4 fetched in 1604ms
33 silly resolveWithNewModule [email protected] checking installable status
34 http fetch GET 304 https://registry.npmjs.org/nan 82ms (from cache)
35 http fetch GET 304 https://registry.npmjs.org/nan/-/nan-2.14.2.tgz 122ms (from cache)
36 silly pacote range manifest for nan@>=2.14.0 fetched in 228ms
37 silly resolveWithNewModule [email protected] checking installable status
38 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 1898ms
39 timing stage:loadIdealTree Completed in 1924ms
40 silly currentTree lib
41 silly idealTree lib
41 silly idealTree └─┬ [email protected]
41 silly idealTree ├── [email protected]
41 silly idealTree ├── [email protected]
41 silly idealTree ├── [email protected]
41 silly idealTree ├── [email protected]
41 silly idealTree └── [email protected]
42 silly install generateActionsToTake
43 timing stage:generateActionsToTake Completed in 35ms
44 silly diffTrees action count 6
45 silly diffTrees add [email protected]
46 silly diffTrees add [email protected]
47 silly diffTrees add [email protected]
48 silly diffTrees add [email protected]
49 silly diffTrees add [email protected]
50 silly diffTrees add [email protected]
51 silly decomposeActions action count 48
52 silly decomposeActions fetch [email protected]
53 silly decomposeActions extract [email protected]
54 silly decomposeActions preinstall [email protected]
55 silly decomposeActions build [email protected]
56 silly decomposeActions install [email protected]
57 silly decomposeActions postinstall [email protected]
58 silly decomposeActions finalize [email protected]
59 silly decomposeActions refresh-package-json [email protected]
60 silly decomposeActions fetch [email protected]
61 silly decomposeActions extract [email protected]
62 silly decomposeActions preinstall [email protected]
63 silly decomposeActions build [email protected]
64 silly decomposeActions install [email protected]
65 silly decomposeActions postinstall [email protected]
66 silly decomposeActions finalize [email protected]
67 silly decomposeActions refresh-package-json [email protected]
68 silly decomposeActions fetch [email protected]
69 silly decomposeActions extract [email protected]
70 silly decomposeActions preinstall [email protected]
71 silly decomposeActions build [email protected]
72 silly decomposeActions install [email protected]
73 silly decomposeActions postinstall [email protected]
74 silly decomposeActions finalize [email protected]
75 silly decomposeActions refresh-package-json [email protected]
76 silly decomposeActions fetch [email protected]
77 silly decomposeActions extract [email protected]
78 silly decomposeActions preinstall [email protected]
79 silly decomposeActions build [email protected]
80 silly decomposeActions install [email protected]
81 silly decomposeActions postinstall [email protected]
82 silly decomposeActions finalize [email protected]
83 silly decomposeActions refresh-package-json [email protected]
84 silly decomposeActions fetch [email protected]
85 silly decomposeActions extract [email protected]
86 silly decomposeActions preinstall [email protected]
87 silly decomposeActions build [email protected]
88 silly decomposeActions install [email protected]
89 silly decomposeActions postinstall [email protected]
90 silly decomposeActions finalize [email protected]
91 silly decomposeActions refresh-package-json [email protected]
92 silly decomposeActions fetch [email protected]
93 silly decomposeActions extract [email protected]
94 silly decomposeActions preinstall [email protected]
95 silly decomposeActions build [email protected]
96 silly decomposeActions install [email protected]
97 silly decomposeActions postinstall [email protected]
98 silly decomposeActions finalize [email protected]
99 silly decomposeActions refresh-package-json [email protected]
100 silly install executeActions
101 silly doSerial global-install 48
102 verbose correctMkdir /home/homebridge/.npm/_locks correctMkdir not in flight; initializing
103 verbose lock using /home/homebridge/.npm/_locks/staging-a072192f34a17023.lock for /usr/lib/node_modules/.staging
104 silly doParallel extract 6
105 silly extract [email protected]
106 silly extract [email protected]
107 silly extract [email protected]
108 silly extract [email protected]
109 silly extract [email protected]
110 silly extract [email protected]
111 silly tarball no local data for nan@>=2.14.0. Extracting by manifest.
112 silly tarball no local data for camelcase@^5.3.1. Extracting by manifest.
113 silly tarball no local data for openzwave-shared@^1.5.6. Extracting by manifest.
114 silly tarball no local data for range-map@^1.0.4. Extracting by manifest.
115 silly tarball no local data for try-require@^1.2.1. Extracting by manifest.
116 silly tarball no local data for homebridge-platform-zwave@latest. Extracting by manifest.
117 http fetch GET 304 https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz 361ms (from cache)
118 http fetch GET 304 https://registry.npmjs.org/nan/-/nan-2.14.2.tgz 416ms (from cache)
119 http fetch GET 304 https://registry.npmjs.org/range-map/-/range-map-1.0.4.tgz 408ms (from cache)
120 http fetch GET 304 https://registry.npmjs.org/openzwave-shared/-/openzwave-shared-1.7.2.tgz 448ms (from cache)
121 silly extract camelcase@^5.3.1 extracted to /usr/lib/node_modules/.staging/camelcase-9562cc89 (577ms)
122 http fetch GET 304 https://registry.npmjs.org/try-require/-/try-require-1.2.1.tgz 533ms (from cache)
123 http fetch GET 304 https://registry.npmjs.org/homebridge-platform-zwave/-/homebridge-platform-zwave-1.2.0.tgz 530ms (from cache)
124 silly extract range-map@^1.0.4 extracted to /usr/lib/node_modules/.staging/range-map-d2685c18 (606ms)
125 silly extract try-require@^1.2.1 extracted to /usr/lib/node_modules/.staging/try-require-ee37ca06 (634ms)
126 silly extract homebridge-platform-zwave@latest extracted to /usr/lib/node_modules/.staging/homebridge-platform-zwave-e99b55e4 (717ms)
127 silly extract openzwave-shared@^1.5.6 extracted to /usr/lib/node_modules/.staging/openzwave-shared-63185928 (796ms)
128 silly extract nan@>=2.14.0 extracted to /usr/lib/node_modules/.staging/nan-79b58975 (803ms)
129 timing action:extract Completed in 818ms
130 silly doReverseSerial unbuild 48
131 silly doSerial remove 48
132 silly doSerial move 48
133 silly doSerial finalize 48
134 silly finalize /usr/lib/node_modules/homebridge-platform-zwave/node_modules/nan
135 silly finalize /usr/lib/node_modules/homebridge-platform-zwave/node_modules/camelcase
136 silly finalize /usr/lib/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared
137 silly finalize /usr/lib/node_modules/homebridge-platform-zwave/node_modules/range-map
138 silly finalize /usr/lib/node_modules/homebridge-platform-zwave/node_modules/try-require
139 silly finalize /usr/lib/node_modules/homebridge-platform-zwave
140 timing action:finalize Completed in 86ms
141 silly doParallel refresh-package-json 6
142 silly refresh-package-json /usr/lib/node_modules/homebridge-platform-zwave/node_modules/nan
143 silly refresh-package-json /usr/lib/node_modules/homebridge-platform-zwave/node_modules/camelcase
144 silly refresh-package-json /usr/lib/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared
145 silly refresh-package-json /usr/lib/node_modules/homebridge-platform-zwave/node_modules/range-map
146 silly refresh-package-json /usr/lib/node_modules/homebridge-platform-zwave/node_modules/try-require
147 silly refresh-package-json /usr/lib/node_modules/homebridge-platform-zwave
148 timing action:refresh-package-json Completed in 175ms
149 silly doParallel preinstall 6
150 silly preinstall [email protected]
151 info lifecycle [email protected]preinstall: [email protected]
152 silly preinstall [email protected]
153 info lifecycle [email protected]
preinstall: [email protected]
154 silly preinstall [email protected]
155 info lifecycle [email protected]preinstall: [email protected]
156 silly preinstall [email protected]
157 info lifecycle [email protected]
preinstall: [email protected]
158 silly preinstall [email protected]
159 info lifecycle [email protected]preinstall: [email protected]
160 silly preinstall [email protected]
161 info lifecycle [email protected]
preinstall: [email protected]
162 verbose lifecycle [email protected]preinstall: unsafe-perm in lifecycle true
163 verbose lifecycle [email protected]
preinstall: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/usr/lib/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared/node_modules/.bin:/usr/lib/node_modules/homebridge-platform-zwave/node_modules/.bin:/usr/lib/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
164 verbose lifecycle [email protected]preinstall: CWD: /usr/lib/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared
165 silly lifecycle [email protected]
preinstall: Args: [ '-c', 'node lib/install-ozw.js' ]
166 silly lifecycle [email protected]preinstall: Returned: code: 0 signal: null
167 timing action:preinstall Completed in 453ms
168 silly doSerial build 48
169 silly build [email protected]
170 info linkStuff [email protected]
171 silly linkStuff [email protected] has /usr/lib/node_modules/homebridge-platform-zwave/node_modules as its parent node_modules
172 silly linkStuff [email protected] is part of a global install
173 silly linkStuff [email protected] is installed into a global node_modules
174 silly build [email protected]
175 info linkStuff [email protected]
176 silly linkStuff [email protected] has /usr/lib/node_modules/homebridge-platform-zwave/node_modules as its parent node_modules
177 silly linkStuff [email protected] is part of a global install
178 silly linkStuff [email protected] is installed into a global node_modules
179 silly build [email protected]
180 info linkStuff [email protected]
181 silly linkStuff [email protected] has /usr/lib/node_modules/homebridge-platform-zwave/node_modules as its parent node_modules
182 silly linkStuff [email protected] is part of a global install
183 silly linkStuff [email protected] is installed into a global node_modules
184 silly build [email protected]
185 info linkStuff [email protected]
186 silly linkStuff [email protected] has /usr/lib/node_modules/homebridge-platform-zwave/node_modules as its parent node_modules
187 silly linkStuff [email protected] is part of a global install
188 silly linkStuff [email protected] is installed into a global node_modules
189 silly build [email protected]
190 info linkStuff [email protected]
191 silly linkStuff [email protected] has /usr/lib/node_modules/homebridge-platform-zwave/node_modules as its parent node_modules
192 silly linkStuff [email protected] is part of a global install
193 silly linkStuff [email protected] is installed into a global node_modules
194 silly build [email protected]
195 info linkStuff [email protected]
196 silly linkStuff [email protected] has /usr/lib/node_modules as its parent node_modules
197 silly linkStuff [email protected] is part of a global install
198 silly linkStuff [email protected] is installed into a global node_modules
199 silly linkStuff [email protected] is installed into the top-level global node_modules
200 timing action:build Completed in 12ms
201 silly doSerial global-link 48
202 silly doParallel update-linked 0
203 silly doSerial install 48
204 silly install [email protected]
205 info lifecycle [email protected]
install: [email protected]
206 silly install [email protected]
207 info lifecycle [email protected]install: [email protected]
208 silly install [email protected]
209 info lifecycle [email protected]
install: [email protected]
210 verbose lifecycle [email protected]install: unsafe-perm in lifecycle true
211 verbose lifecycle [email protected]
install: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/usr/lib/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared/node_modules/.bin:/usr/lib/node_modules/homebridge-platform-zwave/node_modules/.bin:/usr/lib/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
212 verbose lifecycle [email protected]install: CWD: /usr/lib/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared
213 silly lifecycle [email protected]
install: Args: [ '-c', 'node-gyp rebuild' ]
214 silly lifecycle [email protected]install: Returned: code: 1 signal: null
215 info lifecycle [email protected]
install: Failed to exec install script
216 timing action:install Completed in 8353ms
217 verbose unlock done using /home/homebridge/.npm/_locks/staging-a072192f34a17023.lock for /usr/lib/node_modules/.staging
218 timing stage:rollbackFailedOptional Completed in 146ms
219 timing stage:runTopLevelLifecycles Completed in 13643ms
220 verbose stack Error: [email protected] install: node-gyp rebuild
220 verbose stack Exit status 1
220 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
220 verbose stack at EventEmitter.emit (events.js:315:20)
220 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
220 verbose stack at ChildProcess.emit (events.js:315:20)
220 verbose stack at maybeClose (internal/child_process.js:1048:16)
220 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
221 verbose pkgid [email protected]
222 verbose cwd /usr
223 verbose Linux 5.4.79-v7+
224 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "homebridge-platform-zwave@latest"
225 verbose node v14.15.4
226 verbose npm v6.14.10
227 error code ELIFECYCLE
228 error errno 1
229 error [email protected] install: node-gyp rebuild
229 error Exit status 1
230 error Failed at the [email protected] install script.
230 error This is probably not a problem with npm. There is likely additional logging output above.
231 verbose exit [ 1, true ]

Plug-in won't install

New HomeBridge install on Rpi3+.

OpenZwave 1.6 installed and MinOZW /dev/ttyACM0 completed with Aeon Z-Stick.
Running sudo npm i -g homebridge-platform-zwave gives this output:

> [email protected] preinstall /usr/local/lib/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared
> node lib/install-ozw.js


> [email protected] install /usr/local/lib/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared
> node-gyp rebuild

gyp WARN EACCES current user ("nobody") does not have permission to access the dev dir "/root/.cache/node-gyp/12.17.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error 
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared/.node-gyp'
gyp ERR! System Linux 4.19.118-v7+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared
gyp ERR! node -v v12.17.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-06-08T03_28_32_701Z-debug.log

Zooz ZST10 USB Stick

Hi, I'd like to contribute to the project, but need a bit of direction. I'm attempting to add my Zwave network in, which runs on the Zooz ZST10 usb stick controller. I see entries for commands in controller.js and index.js and I also see that core OZW already has a device entry for the ZST10... Any suggestions for how to add on support to new controllers (I'm assuming a controller is the Zwave hub?).

For reference, I'm receiving the following error:

Initialising OpenZWave 1.5.0 binary addon for Node.JS.
        OpenZWave Security API is ENABLED
        ZWave device db    : /etc/openzwave
        User settings path : /usr/lib/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared/build/Release/../../
        Option Overrides : --ConsoleOutput false --Logging false --SaveConfiguration false
Could Not Open OZW Log File.
[12/20/2020, 1:30:30 PM] [Z-Wave Platform] Failed to setup Z-Wave network constroller undefined```

Installation in Hoobs

Hello,

Im having an issue setting up this plugin in the Hoobs platform. When I install this I do not get an option to modify the config file an enter my Z wave Stick port. I apparently can not modify the json config in the hoops.local website.

Failed to setup Z-Wave network constroller undefined

Getting this at startup:

Initialising OpenZWave 1.6.1123 binary addon for Node.JS.
        OpenZWave Security API is ENABLED
        ZWave device db    : /usr/local/etc/openzwave
        User settings path : /usr/lib/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared/build/Release/../../
        Option Overrides : --ConsoleOutput false --Logging false --SaveConfiguration false
Could Not Open OZW Log File.
[5/20/2020, 9:05:14 PM] [Z-Wave Platform] Failed to setup Z-Wave network constroller undefined

testing with openzwave-shared, it finds the controller just fine. Any ideas?

Here is the config:

{
            "platform": "zWavePlatform",
            "name": "Z-Wave Platform",
            "zwave": {
                "devicePath": "/dev/ttyACM0"
            }
        }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.