Hi,
For you Ubuntu lovers and those who thinks using Snap packages is smooth and easy (so OK! To everyone having Snapd installed!);
I’ve made a Snap package of zwavejs2mqtt
. I choose this instead of the bare zwave-js-server
that communicates with HA, since zwavejs2mqtt includes this - and you’ll get a UI to work with while waiting for the HA UI interface to grow Simply just disable the MQTT Gateway and enable the WS server.
To install the package, simply run
sudo snap install zwavejs2mqtt
This should download and install everything for you. Since the snap is strictly confined, you’ll have to grant access to raw_usb
and hardware-observe
so you can get a list of available ports in the UI and communicate with your USB device.
You’ll do this by running
sudo snap connect zwavejs2mqtt:raw-usb
sudo snap connect zwavejs2mqtt:hardware-observe
Set your network key with
sudo snap set zwavejs2mqtt network.key="...key here..."
(see zwavejs2mqtt.help
for every option, but I recommend setting most of them in the UI).
For the first time I’ll advice you to run sudo zwavejs2mqtt.exec
before daemonizing it, just to check that everything boots fine and that you’re able to configure everything - without any complains in the terminal.
Head to localhost:8091
(change localhost
with the client IP if you’re running from another device) and make your changes in the UI and follow the output in the terminal for errors!
When everything seems fine, exit the command (on Ubuntu CTRL+X from the terminal) and run the following to daemonize it:
sudo zwavejs2mqtt.enable