Can't get Zwave configuration to work!

I’ve spent the day trying to get HA .15 to work with a Z-Stick Gen5 on a Raspberry Pi.

From my configuration.yaml file in ~/.homeassistant/

#Z-Wave Config
zwave:
usb_path: /dev/ttyACM0

config_path:/usr/local/lib/python3.4/dist-packages/libopenzwave-0.3.0b8-py3.4-linux-armv7l.egg/config

I have tried with and without commenting out the config_path, its as bad if not worse with the correct path fully spelled out, so I created a symlink in /usr/share/python-openwave/ back to the config directory listed above.
Any ideas?

pi@rpi01:~ $ hass
Config directory: /home/pi/.homeassistant
WARNING:homeassistant.bootstrap:Colorlog package not found, console coloring disabled
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=homeassistant, service=turn_off>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=homeassistant, service=turn_on>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=homeassistant, service=toggle>
INFO:homeassistant.bootstrap:Home Assistant core initialized
INFO:homeassistant.loader:Loaded frontend from homeassistant.components.frontend
INFO:homeassistant.loader:Loaded api from homeassistant.components.api
INFO:homeassistant.loader:Loaded http from homeassistant.components.http
INFO:homeassistant.loader:Loaded logbook from homeassistant.components.logbook
INFO:homeassistant.loader:Loaded recorder from homeassistant.components.recorder
INFO:homeassistant.loader:Loaded updater from homeassistant.components.updater
INFO:homeassistant.loader:Loaded zwave from homeassistant.components.zwave
INFO:homeassistant.loader:Loaded history from homeassistant.components.history
INFO:homeassistant.loader:Loaded sun from homeassistant.components.sun
INFO:homeassistant.loader:Loaded discovery from homeassistant.components.discovery
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=recorder>
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=http>
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=api>
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=frontend>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=logbook, service=log>
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=logbook>
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): pypi.python.org
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=updater>
ERROR:homeassistant.bootstrap:Error during setup of component zwave
Traceback (most recent call last):
File “/usr/local/lib/python3.4/dist-packages/homeassistant/bootstrap.py”, line 105, in _setup_component
if not component.setup(hass, config):
File “/usr/local/lib/python3.4/dist-packages/homeassistant/components/zwave.py”, line 173, in setup
DEFAULT_ZWAVE_CONFIG_PATH),)
File “/usr/local/lib/python3.4/dist-packages/pyozwweb-0.3.0b8-py3.4.egg/openzwave/option.py”, line 76, in init
libopenzwave.PyOptions.init(self, config_path=config_path, user_path=user_path, cmd_line=cmd_line)
File “src-lib/libopenzwave/libopenzwave.pyx”, line 582, in libopenzwave.PyOptions.init (src-lib/libopenzwave/libopenzwave.cpp:7780)
libopenzwave.LibZWaveException: “LibOpenZwave Generic Exception : Can’t find config directory /usr/share/python-openzwave/config”
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=history>
INFO:urllib3.connectionpool:Starting new HTTP connection (1): maps.googleapis.com
INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: entity_id=sun.sun, old_state=None, new_state=<state sun.sun=below_horizon; next_setting=23:51:50 21-03-2016, next_rising=11:38:38 21-03-2016, elevation=-18.66, friendly_name=Sun @ 21:24:08 20-03-2016>>
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=sun>
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=discovery>
INFO:homeassistant.core:Starting Home Assistant (11 threads)
INFO:homeassistant.core:Bus:Handling <Event homeassistant_start[L]>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=homeassistant, service=stop>
INFO:homeassistant.components.http:Starting web interface at 0.0.0.0:8123
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=homeassistant, service=restart>
INFO:homeassistant.core:Timer:starting
INFO:netdisco.service:Scanning
INFO:homeassistant.components.http:“GET /api/stream?api_password=no_password_set&restrict=state_changed,component_loaded,service_registered HTTP/1.1” 200 -
INFO:homeassistant.components.http:“GET /api/bootstrap HTTP/1.1” 200 -

I tripped over another posting that pointed me the right direction…

My fix, copy the directory /home/pi/python-openzwave to /usr/share/ , then copy the directory /home/pi/python-openzwave/openzwave/config to /usr/share/python-openzwave/.

anybody know why @dap35 has the directory /home/pi/python-openzwave/ on their installation and I don’t have that directory in mine?

no%20pyuthon%20openzwace%20directory

That was pretty early on, like version .25 and without even benefit of a python virtual environment . A lot has changed since then, and HA is in my opinion is a wonderfully stable application and much easier to get started do to the wonderful work of many fantastic developers.

1 Like