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.

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

Do a restart "sudo reboot now" and check "dmesg | grep tty".

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 

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-uiand check at "http://your_host.local:8091".



To be continued !




Comments

Popular posts, last 30 days

Raspberry Pi OS Lite with GUI, RDP, VNC, Chromium

iCloud drive sync, or mount, with a Linux, Ubuntu, device

Installing Ubuntu 24.04 or 24.10/25.04 on an old MacBook Air(2011)

Home Assistant with VirtualBox or Proxmox or Linux KVM ???

IVT, Bosch heat pump easy integration, Home Assistant

Raspberry Pi 2, 3, 4, 5 USB SSD or USB drive boot

NetworkManager UI and access point, hotspot

Clone the Raspberry boot disk

SeaTalk1 to NMEA 0183 converter, DIY

Waveshare CAN hat with Signal K & OpenPlotter