Skip to content
A NodeJS bridge between Z-Wave devices and MQTT
Branch: master
Clone or download
Latest commit 13ac006 Sep 10, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
libs Mise à jour des dépendances et gestion de l'envoi de commande Zwave Apr 6, 2017
logs Migration from the Domogeeek project Aug 15, 2015
.gitignore Switch to OpenZwave-Shared library Dec 18, 2016
LICENSE.md
README.md Adding prerequisites Dec 26, 2016
app.js Mise à jour des dépendances et gestion de l'envoi de commande Zwave Apr 6, 2017
config.js Mise à jour des dépendances et gestion de l'envoi de commande Zwave Apr 6, 2017
package.json Update package.json Sep 10, 2017
pm2.sh Mise à jour des dépendances et gestion de l'envoi de commande Zwave Apr 6, 2017
start.sh Mise à jour des dépendances et gestion de l'envoi de commande Zwave Apr 6, 2017

README.md

DomoGeeek

This module is a gateway between Z-Wave devices and the MQTT broker and takes part from the DomoGeeek project.

This module is based on node-openzwave and allows you to transform Z-Wave messages into MQTT messages. Works perfectly on a Raspberry Pi with an Aeon Lab Z-Wave USB dongle.

Prerequisites

Compile OpenZwave

sudo apt-get install libudev-dev
cd ~ 
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
sudo sed -i '$a LD_LIBRARY_PATH=/usr/local/lib' /etc/environment

Install

Install dependencies

$ npm install
$ vi config.js 

You can enable the debug flag to analyze the messages exchanged on the network.

Test

$ ./start.sh

By default, each family of messages are sent into specific MQTT topics (alarm, sensor ...).

Deploy

$ sudo npm install pm2 -g
$ ./pm2.sh
$ pm2 startup
$ pm2 save
You can’t perform that action at this time.