Issue on Hassbian with HA but not Control panel?

Hi

I followed this tutorial to install HA with openzwave on my Pi3: https://home-assistant.io/docs/hassbian/installation/
I created also on it the udev rules so USB port for the ZWave stick is always /dev/ZWave (setup in configuration file of HA).
In HA, I get these errors about OpenZwave:
> The following errors have been logged this session:

2017-05-31 08:10:37 ERROR (MainThread) [homeassistant.setup] Error during setup of component zwave
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/setup.py”, line 188, in _async_setup_component
None, component.setup, hass, processed_config)
File “/usr/lib/python3.4/asyncio/futures.py”, line 388, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.4/asyncio/tasks.py”, line 286, in _wakeup
value = future.result()
File “/usr/lib/python3.4/asyncio/futures.py”, line 277, in result
raise self._exception
File “/usr/lib/python3.4/concurrent/futures/thread.py”, line 54, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/zwave/init.py”, line 256, in setup
network = hass.data[ZWAVE_NETWORK] = ZWaveNetwork(options, autostart=False)
File “/srv/homeassistant/lib/python3.4/site-packages/pyozwweb-0.4.0.34-py3.4.egg/openzwave/network.py”, line 326, in init
self.dbcon = lite.connect(os.path.join(self._options.user_path, ‘pyozw.sqlite’), check_same_thread=False)
File “/srv/homeassistant/lib/python3.4/site-packages/pyozwweb-0.4.0.34-py3.4.egg/openzwave/option.py”, line 339, in user_path
return self._user_path
AttributeError: ‘ZWaveOption’ object has no attribute ‘_user_path’

If U shutdown HA, and start the Control Panel of OpenZwave, I get full access at my ZWave network, add/remove nodes…
I tried to add also in HA config file:

config_path: /srv/homeassistant/lib/python3.4/site-packages/python_openzwave/ozw_config/

but not really any changes :frowning: I have copied at same place as my PC HA config the openzwave files in HA home directory (/home/homeassistant/.homeassistant)

I hoped that it would work out of box on Hassbian but looks to be same pain as on regular PC :frowning:

Side note (don’t thnik it’s linked but just in case): my plex configuration is not working also ! I copied/paste my plex config from my previous HA system and my plex.conf file but not working !
> 2017-05-31 08:10:37 ERROR (Thread-12) [homeassistant.components.media_player.plex] Error listing plex devices

Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/plex.py”, line 141, in update_devices
devices = plexserver.clients()
File “/home/homeassistant/.homeassistant/deps/plexapi/server.py”, line 64, in clients
for elem in self.query(‘/clients’):
File “/home/homeassistant/.homeassistant/deps/plexapi/server.py”, line 110, in query
raise BadRequest(‘(%s) %s’ % (response.status_code, codename))
plexapi.exceptions.BadRequest: (404) not_found

Have you confirmed that this path is correct?

My path (not Hassbian) ends in “/config” rather than “ozw_config”. Try:
sudo find / ozwcp | grep options.xml
You’ll likely find more than one, but that might help your narrow things down.

If you don’t already have devices that you added securely, try it without the config_path…

@ih8gates well I have a symlink in home directory of HA that points to this ozw_config directory…
Here are results of find on my system:
root@home-assistant:/home/homeassistant/.homeassistant# find / ozwcp | grep options.xml
/srv/homeassistant/lib/python3.4/site-packages/python_openzwave/ozw_config/options.xml
/srv/homeassistant/src/python-openzwave/openzwave-git/open-zwave-master/config/options.xml
/srv/homeassistant/src/python-openzwave/openzwave/config/options.xml
/srv/homeassistant/src/python-openzwave/openzwave-embed/open-zwave-master/config/options.xml
/home/homeassistant/.homeassistant/deps/python_openzwave/ozw_config/options.xml
/home/homeassistant/.homeassistant/options.xml
find: “ozwcp”: Aucun fichier ou dossier de ce type
root@home-assistant:/home/homeassistant/.homeassistant#
Why so many times same file ? and so which one is good one ? the optionsxml in HA home directory is probably mine that I copied from my previous system !
@BendedArrow I had already tried without but doesn’t work, that’s why I tried to add it !!

@vincen Did you try it without the udev rules or did you put the rules in after you were having problems?

@BendedArrow I’m perhaps wrong but I don’t think it’s the problem as it works perfectly if I use the OpenZwave control panel no ? I use same dev port for OpenZwave control panel and in my config file of HA !

To make it easy I reinstalled from scratch the Hassbian to get something clean and working correctly this time hopefully !
Right now hassbian offers two choices for ZWave on Raspberry: openzwave and openzwave-pip !! Which one should I install ? Last time I selected openzwave I think and I get the not working setup !!

Thanks for advices,

Vincèn

Answering myself as I start to be so bored with that f*cking ZWave system to get it working correctly ! I switched away of install on my Linux box to put it on a dedicated Raspberry PI (easier to maintain as dedicated) and it was supposed to work pretty easily out of the box with image supplied !
In fact it’s same mess as using ZWave on regular linux computer :frowning: Second reinstall from scratch but ZWave still not working !! I installed this time the pip version of ZWave as suggested by Hassbian, then added the Zwave section and the USB port in the configuration file then restarted HA and then I get same error as previously and nice thing also I noticed: it triggers again installation of pip zwave first time I restart HA after having added ZWave in it !!
Thinking to look at an other home automation system as it becomes too much a pain to get HA working for basics features :frowning: Hoped it was lot more usable and stable than that (at least for ZWave part !).