This Solution has only been tested on Z-net device (RPI-3b) with the Ezzee REV 09.12.14 board mounted on, I have no idea if this method will work on a RPI 4, there might be some adjustments to be done in regards with the serial port access
1- First strongly suggest to make a copy of the original SD card with win32 disk imager and keep original and copy safe
2- Use a new SD card (minimum 32GIG suggested for Docker)
3- Install the Raspberry PI imager software https://www.raspberrypi.com/software/
- Start the RPI imager software
- Select the RPI 3 for the Raspberry PI model
- Select Raspberry PI OS (legacy 32-bit) as the OS
- Select my SD card (I used a new 32GB card)
4- Once copy process completed, remove SD card from computer and Insert the SD card in the Z-net device
5- Connect keyboard, mouse and HDMI screen to the Raspberry device
6- Plug power and let the PI Boot - Configure language, timezone
- Use âpiâ as the usernoame and enter your own password
- Configure the wifi network on your PI (note the ip adress of your device)
- Wait until a message from the OS suggest updating the new installation and proceed with all the available updates
- Select Restart
- Activate VNC and SSH on the PI (so you can remotely access the PI either by terminal or graphical interface) without keyboard,mouse and monitor
- Click on the raspberry image (upper left corner)
- Select âpreferencesâ then âconfigurationâ
- In the interface tab, activate âSSHâ,âVNCâ, âserial portâ and desactivate âserial consoleâ then validate
- Donât reboot immediatly
- Edit /boot/config.txt and disable Bluetooth, if not the Ezzee board wonât be available to the /dev/ttyAMA0 port
- Click on the terminal icon
- Type and execute âsudo nano /boot/config.txtâ
- Add following at the end of the file,
#Disable Bluetooth
dtoverlay=disable-bt
- Save and exit (CTRL-X) and Yes and enter
- Reboot the PI (select the raspberry image, select disconnect and then reboot)
- You can now disconnect keyboard, mouse and monitor and you can connect to your PI either using VNC terminal client or SSH using the IP adress noted above
7- Install Docker
- Click on the terminal icon to open a terminal window
- Type and execute âsudo apt-get update && sudo apt-get upgradeâ to make sure you got all the latest packages installed
- Type and execute âcurl -sSL https://get.docker.com | shâ this process takes a few minutes to execute
- Type and execute âsudo usermod -aG docker $USERâ
- Close the terminal window
- Reboot your PI
8- Test and make sure docker was installed correctly
- Click on the terminal icon to open a terminal window
- Type and execute âdocker run hello-worldâ
- You should have a message with the following text in it:
âHello from Docker!
This message shows that your installation appears to be working correctly.â
10- Install and Run ZWave-JS-UI as a service:
- Type and execute âsudo mkdir /opt/zwavejs-uiâ
- Type and execute âcd /opt/zwavejs-uiâ
- Type and execute âsudo nano /opt/zwavejs-ui/docker-compose.ymlâ
- Cut and paste the following in the editor:
services:
zwave-js-ui:
container_name: zwave-js-ui
image: zwavejs/zwave-js-ui:latest
restart: unless-stopped
tty: true
stop_signal: SIGINT
environment:
- SESSION_SECRET=mySecretSession
- TZ=America/New-York
devices:- â/dev/ttyAMA0:/dev/zwaveâ
volumes:- ./store:/usr/src/app/store
ports:- â8091:8091â # port for web interface
- â3000:3000â # port for Z-Wave JS websocket server
- Save and exit (CTRL-X) and Yes and enter
11- Now you can launch the docker compose container with âdocker compose up -dâ or you can launch it without -d to see whatâs going on. - Type and execute âdocker compose up -dâ
- First execution might take some time as it is downloading packages
12- From here you should be able to connect to the Zwave-JS-UI typing âyour RPI IP adresssâ:8091 in a browser to get to the Z-wave-JS-UI interface
13- In the ZWave-js-is interface, in setting (cog wheel) under the zwave tab, make sure you type in /dev/zwave in the serial port and then select âSaveâ
-After about 2 minutes, the interface will reload and in thecontrol panel, if your Z-net used to have devices configured you should find them there
If Zwave JS UI need to be updated:
- Using VNC or SSh connect and open a terminal window
- stop the docker
- sudo docker stop zwave-js-ui - remove the docker
- sudo docker rm zwave-js-ui
pull the latest version
- docker pull zwavejs/zwave-js-ui
Type and execute âdocker compose up -dâ
First execution might take some time as it is downloading packages
12- From here you should be able to connect to the Zwave-JS-UI typing âyour RPI IP adresssâ:8091 in a browser to get to the Z-wave-JS-UI interface
Go in settings and make sure the âZ-WAVEâ option is Enabled