Z-Wave JS UI standalone server on a Raspberry Pi with RaZberry 2
Instead of buying a new Z-Way adapter I thought it would be a nice project to reuse the almost 10 year old adapter together with a Raspberry Pi 2.
After some Googling I found Z-Wave JS UI(ZUI) which is both the server part and an UI.
The described installation could be used for almost "any" Z-way interface and for "any" Linux distribution.
Introduction
The ZUI installation is going to be used together with Home assistant. After some tinkering with the above mentioned hardware it worked.
The ZUI installation is going to be used together with Home assistant. After some tinkering with the above mentioned hardware it worked.
Prerequisites
You need a Linux machine with some Linux OS + the Z-way interface
Detect the hardware
After connecting the RaZberry card(RZC), or a USB dongle, it will probably appear as something like "/dev/ttyXX". Check with "dmesg | grep tty"
RaZberry card
Per default the RX/TX pins, on any Raspberry Pi, are setup as a serial console. This means that you can use a USB console cable to log on from almost any computer, which have an USB port, to the RPi. Since the RZC is using the same pins we have to disable the console function with
sudo rasp-config
3. Interface options =>
I6 Serial Port Enable/disable shell messages on serial connection
Would you like a login shell to be accessible over serial? => No
Would you like the serial port hardware to be enabled? => Yes
The serial login shell is disabled
The serial interface is enabled => OK
Install Z-Wave JS UI
Docker seems to be the prefered method but here I'm using the NPM method.
Via ssh/terminal start with an update
sudo apt update && sudo apt full-upgrade -y && sudo apt clean
and then install Node.js(V22 LTS) and NPM
and then install Node.js(V22 LTS) and NPM
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt install -y nodejs
sudo npm install -g npm@latest
and check the install with "node -v && npm -v".
Then the actual application "sudo npm install -g zwave-js-ui", start with "STORE_DIR=~/.zwave-js-ui sudo zwave-js-ui" and check at "http://your_host.local:8091".
To be continued !
Comments
Post a Comment
Feel free to leave a comment ! ... but due to a lot of spam comments I have to moderate them. Will reply ASAP !