Zwave on FreeBSD

Some random notes about using Z-Wave JS on FreeBSD.

The Zooz S2 ZST10 works well on FreeBSD using the uslcom(4) driver.

To find the device that the Z-Wave stick shows up as, look for the last item in the list after running:

ls -ltr /dev/cua*

The last item should be something like:

crw-rw----  1 uucp  dialer  0x68 Dec 25 20:11 /dev/cuaU0.init
crw-rw----  1 uucp  dialer  0x69 Dec 25 20:11 /dev/cuaU0.lock
crw-rw----  1 uucp  dialer  0x67 Dec 26 17:35 /dev/cuaU0

Then to install Z-Wave JS first install npm and then run:

npm install zwave-js
npm install @zwave-js/server

Then to start the server run:

./node_modules/.bin/zwave-server /dev/cuaU0

It should output info saying it found and opened the device:

17:42:15.472 DRIVER   ███████╗ ██╗    ██╗  █████╗  ██╗   ██╗ ███████╗             ██╗ ███████╗
                      ╚══███╔╝ ██║    ██║ ██╔══██╗ ██║   ██║ ██╔════╝             ██║ ██╔════╝
                        ███╔╝  ██║ █╗ ██║ ███████║ ██║   ██║ █████╗   █████╗      ██║ ███████╗
                       ███╔╝   ██║███╗██║ ██╔══██║ ╚██╗ ██╔╝ ██╔══╝   ╚════╝ ██   ██║ ╚════██║
                      ███████╗ ╚███╔███╔╝ ██║  ██║  ╚████╔╝  ███████╗        ╚█████╔╝ ███████║
                      ╚══════╝  ╚══╝╚══╝  ╚═╝  ╚═╝   ╚═══╝   ╚══════╝         ╚════╝  ╚══════╝
17:42:17.329 DRIVER   version 8.9.1
17:42:17.334 DRIVER
17:42:17.338 DRIVER   starting driver...
17:42:17.448 DRIVER   opening serial port /dev/cuaU0
17:42:17.523 DRIVER   serial port opened

Now that the Z-Wave JS server is running, it can be added to HomeAssistant.