Hassbian 0.55.0 zwave error

hi there!

I have tried for weeks to install home assistant. both the all in one installer and hassbian.

As for now I have settled on hassbian since this is the easiest to install. I have this error in the states page regarding zwave:

“The following components and platforms could not be set up:
zwave
Please check your config”

the log reads:

“ERROR (MainThread) [homeassistant.config] Invalid config for [zwave]: expected a dictionary for dictionary value @ data[‘zwave’]. Got ‘usb_path:/dev/ttyACM0’. (See ?, line ?). Please check the docs at https://home-assistant.io/components/zwave/

the configurations.yaml reads:

"zwave:
usb_path:/dev/ttyACM0 "

And yes, I have checked if its ACM0 or 1 or whatever…

I feel like i have tried anything so far with updating home assistant, reinstalling, turning on and off, installing open z-wave etc.

BUT!
The funny thing is I had this problem on friday, but suddenly everything worked as it should on saturday. Unluckily I probably messed around with it to much so it crashed, and then i reinstalled the image. The reinstall was also on saturday and still no luck getting it working on monday.

I am getting really frustrated now. Anyone having a clue?

My zwave config looks like this using AIO installation…

zwave:
  usb_path: /dev/ttyACM0
  config_path: /srv/homeassistant/src/open-zwave-control-panel/config
  new_entity_ids: true

Note the spaces (particularly after the :'s) and no tabs and no double quotes, as yaml is very picky over tabs (don’t use them) and spaces :wink:

thank you for your fast reply

I pasted your config and home assistant currently wont load :stuck_out_tongue:

What’s in the log? Also please post your config using the </> button (select your code before pressing it and leave a blank line either side)

It only says some old stuff, actually… (My time is currently 20.44)

2017-10-09 18:39:56 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=32 from 2017-10-09 18:35:17.267692)
    2017-10-09 18:40:07 WARNING (MainThread) [homeassistant.setup] Setup of sensor is taking over 10 seconds.

Looks like you need a space between usb_path: and /dev.

make sure usb_path is indented by two spaces and zwave has no indention.

Finally, did you install the dependency? https://home-assistant.io/docs/z-wave/

installing the dependency…:

Reading package lists... Done
Building dependency tree
Reading state information... Done
libudev-dev is already the newest version (232-25+deb9u1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

currently configurations.yaml:

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
zwave:
usb_path: /dev/ttyACM

AND current error:

2017-10-09 18:50:49 ERROR (MainThread) [homeassistant.loader] Unable to find component usb_path
2017-10-09 18:50:49 ERROR (MainThread) [homeassistant.setup] Setup failed for usb_path: Component not found.
2017-10-09 18:50:53 ERROR (MainThread) [homeassistant.setup] Error during setup of component zwave
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/openzwave/option.py", line 78, in __init__
raise ZWaveException(u"Can't find device %s : %s" % (device, traceback.format_exception(*sys.exc_info())))
openzwave.object.ZWaveException: "Zwave Generic Exception : Can't find device /zwaveusbstick : ['NoneType: None\\n']"

Place two spaces before usb_path.

thank you for noticing. I have fixed the spaces.

Still this in the log:

2017-10-09 19:03:39 ERROR (MainThread) [homeassistant.setup] Error during setup of component zwave
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/openzwave/option.py", line 78, in __init__
    raise ZWaveException(u"Can't find device %s : %s" % (device, traceback.format_exception(*sys.exc_info())))
openzwave.object.ZWaveException: "Zwave Generic Exception : Can't find device /dev/ttyACM : ['NoneType: None\\n']"

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py", line 194, in _async_setup_component
    component.setup, hass, processed_config)
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/zwave/__init__.py", line 269, in setup
    config_path=config[DOMAIN].get(CONF_CONFIG_PATH))
  File "/srv/homeassistant/lib/python3.5/site-packages/openzwave/option.py", line 81, in __init__
    raise ZWaveException(u"Error when retrieving device %s : %s" % (device, traceback.format_exception(*sys.exc_info())))
openzwave.object.ZWaveException: 'Zwave Generic Exception : Error when retrieving device /dev/ttyACM : [\'Traceback (most recent call last):\\n\', \'  File

In what you are posting your usb_path is changing. Is this intentional? Are you sure that is the correct path?

Also note that on restart of HA or a reboot of your hardware it can change the path. Make sure its correct after HA starts.

It was not intentional… Now that is fixed and the log again reads:

2017-10-09 19:19:30 ERROR (MainThread) [homeassistant.config] Invalid config for [zwave]: expected a dictionary for dictionary value @ data['zwave']. Got 'usb_path:/dev/ttyACM0'. (See ?, line ?). Please check the docs at https://home-assistant.io/components/zwave/
2017-10-09 19:19:30 ERROR (MainThread) [homeassistant.setup] Setup failed for zwave: Invalid config.

That still reads like you don’t have the usb_path: indented. Also double check that you have a space after usb_path:

Indents and spacing are critical when setting up the yaml file. Pay close attention to how the example docs are spaced and follow their lead.

I copied the ex. Docs and it worked :grin::grin::grin:

Thank you for your patience!