I’m a new user who is just starting to set up HA. I bought a RPi and an Aotec Z-Stick Gen5, downloaded Hasbian and set it up. I added the zwave section to my conf
zwave:
usb_path: /dev/zstick
config_path: /srv/homeassistant/lib/python3.4/site-packages/python_openzwave/ozw_config
network_key: YEAHRIGHT
autoheal: True
and the ZWave section appears. But, when I try to pair a ZWave device (with add_node_secure or just add_node), it doesn’t work. In the logs, I see an error:
Jun 26 01:37:20 hassbian hass[793]: #033[33m2017-06-26 01:37:20 WARNING (Thread-10) [openzwave] Can't lock controller for command : add_node#033[0m
I checked that homeassistant is in group “dialout” and that dialout has rw perms:
$ ls -lL /dev/zstick
crw-rw---- 1 root dialout 166, 0 Jun 26 01:35 /dev/zstick
I also checked that no other process is doing anything with the ZWave controller:
$ sudo lsof /dev/zstick
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
hass 793 homeassistant 17uW CHR 166,0 0t0 6520 /dev/ttyACM0
Any ideas as to why it says it can’t lock the controller?
Skimming the code (and I’ve been an HA user for less than a day :’), it looks like it’s actually trying to take a PThread lock that is in-use. So maybe the first time I tried to pair with a device, it blocked and is just sitting there. (I even tried rebooting.) But in any case, I can’t get it to pair with any ZWave devices.
Thanks so much for your help–this looks like a great community.