You'll need a couple of well-supported packages (NodeJS and libudev-dev)
wget http://node-arm.herokuapp.com/node_latest_armhf.deb && sudo dpkg -i node_latest_armhf.deb
sudo apt-get install -y libudev-dev
You can take the easy route:
wget "https://github.com/ekarak/openzwave-debs-raspbian/raw/master/v1.4.79/openzwave_1.4.79.gfaea7dd_armhf.deb"
wget "https://github.com/ekarak/openzwave-debs-raspbian/raw/master/v1.4.79/libopenzwave1.3_1.4.79.gfaea7dd_armhf.deb"
wget "https://github.com/ekarak/openzwave-debs-raspbian/raw/master/v1.4.79/libopenzwave1.3-dev_1.4.79.gfaea7dd_armhf.deb"
sudo dpkg -i *openzwave*.deb
Or you can choose Hercules' path of blight and
Download the OpenZWave Unix source from the official website
wget http://old.openzwave.com/downloads/openzwave-1.4.1.tar.gz
tar zxvf openzwave-*.gz
cd openzwave-* && make && sudo make install
export LD_LIBRARY_PATH=/usr/local/lib
make it permanent by adding it to /etc/environment
sudo sed -i '$a LD_LIBRARY_PATH=/usr/local/lib' /etc/environment
Refresh the dynamic libraries cache
sudo ldconfig
At this step you can ensure Open-Zwave library is correctly installed with
MinOZW
cd /<project directory>
npm install openzwave-shared
wget https://raw.githubusercontent.com/OpenZWave/node-openzwave-shared/master/test2.js
node test2.js