Hassbian ZWave Setup

New to HA and Raspberry Pi and having trouble setting up Zwave using an AEOTEC Z-Sick S2. I have installed Hassbian and the OpenZWave script as per instructions.
When I add
zwave:
usb_path: /dev/ttyACM0
to my configuration.yaml file I get an invalid configuration.
When I try and identify where the AEOTEC stick is connected using
pi@hassbian:~ $ ls /dev/ttyACM*
the following error is returned
ls: cannot access /dev/ttyACM*: No such file or directory.
Using the
What am I doing wrong?

Anything in the home-assistant.log?

Try this cmd instead and see what comes back maybe your stick isn’t ttyACM.

ls /dev/tty*

The home-asistamt.log would appear to indicate it can’t find the stick?

First part of log reads
ERROR (MainThread) [homeassistant.setup] Error during setup of component zwave
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.4/site-packages/openzwave-0.3.2-py3.4.egg/openzwave/option.py”, line 78, in init
raise ZWaveException(u"Can’t find device %s : %s" % (device, traceback.format_exception(*sys.exc_info())))

I tried ls /dev/tty* which listed in “yellow text” /dev/tty up to /dev/tty63 (total 64 items) plus /dev/ttyAMA0 and /dev/ttyprintk.
Nothing to indicate where the stick is plugged in?

Thanks for your assistance.

Maybe something helpful here?

Try this, in the terminal window of your PI:

dmesg | grep USB

[ 0.778678] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[ 0.788010] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.790320] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.800178] hub 1-0:1.0: USB hub found
[ 0.947675] usbhid: USB HID core driver
[ 1.177887] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 1.378168] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[ 1.380969] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1.384570] hub 1-1:1.0: USB hub found
[ 1.667898] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 1.768222] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[ 1.788990] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1.861521] smsc95xx 1-1.1:1.0 eth0: register ‘smsc95xx’ at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:50:8e:6b
[ 2.107881] usb 1-1.5: new full-speed USB device number 4 using dwc_otg
[ 2.211164] usb 1-1.5: New USB device found, idVendor=0658, idProduct=0200
[ 2.213730] usb 1-1.5: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 3.061003] cdc_acm 1-1.5:1.0: ttyACM0: USB ACM device
[ 3.062278] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters

Sounds like it’s /dev/ttyAMA0 that you should use. It’s the same device that I am using with my raZberry card.

  zwave:
    usb_path: /dev/ttyAMA0
1 Like

Thanks guys for your assistance. I ended up reinstalling Hassbian and OpenZwave and now the ZWave stick is visible and no errors in configuration.yaml.
The ZWave stick ended up being at /dev/ttyUSB0, but the USB port number keeps changing every time the ZWave stick is removed and reinserted.
I will forge on with the next step trying to pair a Zwave sensor (AEOTEC 4in1) and some automation hopefully.

Put this in your /etc/udev/rules.d/99-usb-zwave.rules

SUBSYSTEM==“tty”,ATTRS{idVendor}==“0658”,ATTRS{idProduct}==“0200”,SYMLINK+=“zwave”

After this, when you insert the device, a /dev/zwave link will be made to it. If it changes from ttyUSB0 to ttyUSB1, the link follows.

some developer told me here that opz did not support S2 yet. Not true then or the stick will just be used for zw and zw+?

See the usage of “network_key”

ZWave Plus and S2 are in devices since 2017-04-02. “some developer” might be correct: As of March 2018, no S2 in OZW yet. 0.78.1 was supposed to have some big improvement.

9 days ago Tinkerer wrote that OZW does not support it yet