How to install and setup zwavejs2mqtt on a Raspberry Pi? #1216
-
Hello!I'm very new to all of this, so please be patient with me! I'm trying to install zwavejs2mqtt on my Raspberry Pi but I have some questions. What I have done so far: Snapd
zwavejs2mqttInstalling zwavejs2mqtt
ResultIf i write
Questions
If I re-run with sudo:
BackgroundMaybe you are wondering what I'm trying to archive. Well, to put it simple, I'm trying to write a program that displays a webpage on a Raspbery Pi, when a Fibaro button is pushed! I wrote a question on the Raspberry Pi forum that explains in more detail what I'm trying to do: Then I found this article: Sorry for writing so long.... Any help is highly appreciated. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 23 replies
-
I have no experience with snap and I'm not the maintainer of snap package so I cannot help with that. Maybe @jmgiaever could help you with that As an alternative you can consider to use the docker way |
Beta Was this translation helpful? Give feedback.
-
Hi, which architecture is this? 32-bit or 64-bit? And which operating system are you using? |
Beta Was this translation helpful? Give feedback.
-
Hi,Which architecture is this? Armhf (32-bit)? Also, which operating system are you using?
|
Beta Was this translation helpful? Give feedback.
-
Hi again, Looks like the hack for Rasbian/Debian on RPi 32-bit systems is: Remove the linking to the unknown libarmmem-file
Add the binary-folder to sudoer
You're now rid of the error about |
Beta Was this translation helpful? Give feedback.
-
I ran into an issue implementing @jmgiaever 's fix, exactly as someone else describes here: (https://forum.snapcraft.io/t/session-101-scope-is-not-a-snap-cgroup/28193) . |
Beta Was this translation helpful? Give feedback.
-
HI guys i idid everything like here posted. I use A RPi4 with bullseye and go through your writes, but i get all the time a error on the Serialport. |
Beta Was this translation helpful? Give feedback.
-
Earlier this week I upgraded to Domoticz version 2022.2, didn't make a full backup or image prior to the update, and spent days to figure out how to get my system working again with the new Z-Wave JS UI and Mosquitto MQTT broker. Just want to share some of my learnings to help others who, like me, are not software engineers. First tip: Make a full backup before updating Domoticz ;-) System set-up:
I followed the instructions on: https://www.domoticz.com/wiki/Zwave-JS-UI. I didn't succeed to get the installation working with Docker and Docker Compose. I managed to get the system working using snapd. I installed the Mosquitto MQTT broker following the installation instructions on: https://www.domoticz.com/wiki/MQTT (there is a link to another website to install the good old legacy way and test your installation). I installed Z-Wave JS UI following the instructions provided on this page. Please note that "zwavejs2mqtt" should be changed to "zwave-js-ui". I did not manage to resolve I used the following commands:
In the Z-Wave JS UI, under Settings->Zwave I configured the USB stick as "by-id": /dev/serial/by-id/usb-0658_0200-if00 Initially, the status of devices automatically updated in Domoticz. But clicking on a switch would generate and error or take a long time to respond. The configuration of my Z-wave network had issues (hence tip two above) and I ended up doing a factory reset for the Z-Wave controller, exclude and include all Z-Wave devices again to make it work. During this process, I noticed the controller occasionally got stuck when an exclusion or inclusion operation didn't finish properly. I rebooted the Raspberry Pi every time this occurred to make it work. |
Beta Was this translation helpful? Give feedback.
-
zwave2mqtt can run on an ancient Raspberry Pi model B if you install Raspberry Pi OS Lite
then install the latest zwave2mqtt image. Don't bother with any other installation method, they will all be dead ends (Armv6l architecture wont support snapd and other problems with compiling from source or using precompiled binaries). Get an 8GB or larger SD card RAM requirements: Docker uses 179MB of 512MB RAM, installation of Docker might spike requirements beyond 256MB? I can attest that 512MB works. Figure out the location of your USB stick with Then put it in the device entry below to run the image: sudo docker run -d In zwave2mqtt web GUI: Go to settings>zwave and choose the correct serial port for the USB stick Then follow the instructions in this video... |
Beta Was this translation helpful? Give feedback.
Hi again,
Looks like the hack for Rasbian/Debian on RPi 32-bit systems is:
Remove the linking to the unknown libarmmem-file
sudo snap run --shell zwavejs2mqtt
/var/lib/snapd/hostfs/etc/ld.so.preload
withvi /var/lib/snapd/hostfs/etc/ld.so.preload
and comment out the line/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so
with a#
in the beginning of this file.i
just after you launched the editor to enter insert-mode. Then press#
to insert the character. Exit insert-mode by pressingESC
and quit and save by writing:wq
.exit
.Add the binary-f…