Z-wave setup fails in 0.49

Hi, I’ve really enjoyed using HA so far to automate my home with wifi devices. I decided to take the plunge on adding Z-wave devices to my network and purchased the “UZB” z-stick. I’m getting an error while the z-wave installation script is run after adding the zwave component to my configuration.yaml file.

I searched the forum and wasn’t able to find a thread with this particular issue (from what I could tell, anyway).

First, here’s what I added to the configuration.yaml file.

zwave:
  usb_path: /dev/ttyACM0

I checked and I’m sure that usb_path is correct, by the way.

I restarted my HA server and it took a long time to start, so I restarted again. And again. Then I figured out it was running an install script for Z-wave, so I let it finish running that.

It finally started up, but I get the the “Invalid Config” card saying that z-wave could not be set up.

Here’s the log output:

2017-07-20 17:14:24 ERROR (Thread-9) [homeassistant.util.package] Unable to install package python_openzwave==0.4.0.31: Command "/srv/homeassistant/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-cxmrcdeb/python-openzwave/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-3bh0_kp_-record/install-record.txt --single-version-externally-managed --compile --install-headers /srv/homeassistant/include/site/python3.4/python-openzwave --home=/tmp/tmpcwb83zm7" failed with error code 1 in /tmp/pip-build-cxmrcdeb/python-openzwave/
2017-07-20 17:14:24 ERROR (MainThread) [homeassistant.setup] Not initializing zwave because could not install dependency python_openzwave==0.4.0.31
2017-07-20 17:14:24 ERROR (MainThread) [homeassistant.setup] Setup failed for zwave: Could not install all requirements.

I then attempted to “manually” install this package through pip on the homeassistant user account to see if I could get more information on the error. When I did, I got this error:

arm-linux-gnueabihf-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.4/openzwave-embed/open-zwave-master/python-openzwave/src-lib/libopenzwave/libopenzwave.o openzwave-embed/open-zwave-master/libopenzwave.a -ludev -lstdc++ -lresolv -o build/lib.linux-armv7l-3.4/libopenzwave.cpython-34m.so
arm-linux-gnueabihf-g++: error: openzwave-embed/open-zwave-master/libopenzwave.a: No such file or directory
error: command 'arm-linux-gnueabihf-g++' failed with exit status 1
Command "/srv/homeassistant/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-znx97u2o/python-openzwave/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-pei_vzv_-record/install-record.txt --single-version-externally-managed --compile --install-headers /srv/homeassistant/include/site/python3.4/python-openzwave" failed with error code 1 in /tmp/pip-build-znx97u2o/python-openzwave/

The key to this seems to be:
openzwave-embed/open-zwave-master/libopenzwave.a: No such file or directory

Does anyone have any ideas as to why this is happening? Is it because I restarted the server while this script was installing too many times? Or am I missing something really basic here?

Any help is greatly appreciated.

Thanks!

did you run

sudo apt-get install libudev-dev

per the docs?

1 Like

Wow, I completely missed that in the docs. Embarrassing. :sweat:

I’ll install libudev-dev and try again.

Thank you.

Yep, that was the problem.

Thanks for your help @silvrr.

Should I delete this thread or leave it up for others who may have the same issue?

2 Likes

Leave it up, could be a resource for someone else.

2 Likes

This thread saved my butt close to a year later, so thank you for leaving it up!

1 Like