Configuring Aeotec Zwave stick

I had a homeassistant install working on RPI3 but it crashed. No recent backup, but I have some stuff. But I can’t get my Zwave stick to work. This is on 72.1 on raspian.

File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py”, line 143, in _async_setup_component hass, processed_config) File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/zwave/init.py”, line 245, in async_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/ttyUSB0 : ['Traceback (most recent call last):\n', ' File “/srv/homeassistant/lib/python3.5/site-packages/openzwave/option.py”, line 75, in init\n raise ZWaveException(u"Can\'t write to device %s : %s" % (device, traceback.format_exception(*sys.exc_info())))\n', 'openzwave.object.ZWaveException: “Zwave Generic Exception : Can\'t write to device /dev/ttyUSB0 : [\'NoneType: None\\\\n\']”\n']’

did you set it to /dev/ttyACM0 in your zwave config? I don’t think I’ve seen one get set to USB0

also make sure the user running HA has permission/privileges to write to the Z stick. That’s what the last line of the error is complaining about. If the name is correct ie. /dev/ttyUSB0, then it may just be a permission issue. The user has to be in the group dialout.

see here.

pi@raspberrypi:/etc $ cat group

root:x:0:
daemon:x:1:
bin:x:2:
sys:x:3:
adm:x:4:pi
tty:x:5:
disk:x:6:
lp:x:7:
mail:x:8:
news:x:9:
uucp:x:10:
man:x:12:
proxy:x:13:
kmem:x:15:
dialout:x:20:pi,homeassistant

pi@raspberrypi:/etc $ lsusb
Bus 001 Device 005: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

the Cygnal Integrated Products is the one that shows up when I add insert it.

pi@raspberrypi:/etc $ ls -ltr /dev/tty*|tail -n 1
crw-rw---- 1 root dialout 188, 0 Jun 28 17:07 /dev/ttyUSB0

pi@raspberrypi:/etc $ ls -ltr
total 1000
-rw-r–r-- 1 root root 45 Mar 22 2014 bash_completion
-rw-r–r-- 1 root root 280 Jun 20 2014 fuse.conf
-rw-r–r-- 1 root root 599 May 5 2015 logrotate.conf
-rw-r–r-- 1 root root 722 May 19 2015 crontab
-rw-r–r-- 1 root root 12100 Aug 19 2015 RTIMULib.ini
-rw-r–r-- 1 root root 1260 Mar 16 2016 ucf.conf
-rw-r–r-- 1 root root 490 Apr 26 2016 resolvconf.conf
-rw-r–r-- 1 root root 24301 May 1 2016 mime.types
-rw-r–r-- 1 root root 449 May 1 2016 mailcap.order
-rw-r–r-- 1 root root 1889 May 7 2016 request-key.conf
-rw-r–r-- 1 root root 604 Jun 26 2016 deluser.conf
-rw-r–r-- 1 root root 2584 Aug 2 2016 gai.conf
-rwxr-xr-x 1 root root 268 Oct 30 2016 rmt
drwxr-xr-x 2 root root 4096 Nov 25 2016 udisks2
-rw-r–r-- 1 root root 5174 Dec 13 2016 manpath.config
-rw-r–r-- 1 root root 206 Dec 15 2016 idmapd.conf
-rw-r–r-- 1 root root 2668 Dec 25 2016 paxctld.conf
-rw-r–r-- 1 root root 19183 Dec 26 2016 services
-rw-r–r-- 1 root root 887 Dec 26 2016 rpc
-rw-r–r-- 1 root root 2932 Dec 26 2016 protocols
-rw-r–r-- 1 root root 8769 Jan 11 2017 nanorc
-rw-r–r-- 1 root root 51 Jan 13 2017 vdpau_wrapper.cfg
drwxr-xr-x 2 root root 4096 Jan 18 2017 rsyslog.d
-rw-r–r-- 1 root root 1963 Jan 18 2017 rsyslog.conf
-rw-r–r-- 1 root root 24501 Jan 19 2017 fb.modes
-rw-r–r-- 1 root root 1018 Jan 23 2017 usb_modeswitch.conf
drwxr-xr-x 2 root root 4096 Jan 23 2017 usb_modeswitch.d
-rw-r–r-- 1 root root 973 Feb 1 2017 mke2fs.conf
-rw-r–r-- 1 root root 10368 Apr 5 2017 sensors3.conf
-rw-r–r-- 1 root root 34 Apr 9 2017 ld.so.conf
-rw-r–r-- 1 root root 367 Apr 9 2017 bindresvport.blacklist
-rw-r–r-- 1 root root 191 Apr 12 2017 libaudit.conf
-rw-r–r-- 1 root root 767 May 5 2017 netconfig
-rw-r–r-- 1 root root 1863 May 15 2017 bash.bashrc
-rw-r–r-- 1 root root 4179 May 17 2017 securetty
-rw-r–r-- 1 root root 2969 May 21 2017 debconf.conf
-rw-r–r-- 1 root root 552 May 27 2017 pam.conf
-r–r----- 1 root root 669 Jun 5 2017 sudoers
-rw-r–r-- 1 root root 2995 Jun 15 2017 locale.alias
drwxr-xr-x 2 root root 4096 Jul 5 2017 tmpfiles.d
drwxr-xr-x 2 root root 4096 Jul 5 2017 binfmt.d
-rw-r–r-- 1 root root 771 Jul 27 2017 staff-group-for-usr-local
-rw-r–r-- 1 root root 9 Jul 27 2017 host.conf
-rw-r–r-- 1 root root 286 Jul 27 2017 motd
-rw-r–r-- 1 root root 21 Jul 27 2017 issue.net
-rw-r–r-- 1 root root 27 Jul 27 2017 issue
-rw-r–r-- 1 root root 4479 Aug 4 2017 drirc
-rw-r–r-- 1 root root 111 Sep 1 2017 magic.mime
-rw-r–r-- 1 root root 111 Sep 1 2017 magic
-rw-r–r-- 1 root root 4942 Oct 26 2017 wgetrc
-rw-rw-r-- 1 root netdev 1701 Nov 22 2017 dhcpcd.conf
drwxr-xr-x 5 root root 4096 Nov 29 2017 kernel
drwxr-xr-x 2 root root 4096 Nov 29 2017 opt
drwxr-xr-x 2 root root 4096 Nov 29 2017 selinux
-rw-r–r-- 1 root root 73 Nov 29 2017 shells
-rw-r–r-- 1 root root 0 Nov 29 2017 environment
-rw------- 1 root root 0 Nov 29 2017 subuid-
-rw------- 1 root root 0 Nov 29 2017 subgid-
-rw-r–r-- 1 root root 2981 Nov 29 2017 adduser.conf
drwxr-xr-x 5 root root 4096 Nov 29 2017 initramfs-tools
drwxr-xr-x 3 root root 4096 Nov 29 2017 logcheck
drwxr-xr-x 2 root root 4096 Nov 29 2017 calendar
-rw-r–r-- 1 root root 60 Nov 29 2017 networks
drwxr-xr-x 2 root root 4096 Nov 29 2017 vim
drwxr-xr-x 2 root root 4096 Nov 29 2017 groff
drwxr-xr-x 2 root root 4096 Nov 29 2017 newt
drwxr-xr-x 2 root root 4096 Nov 29 2017 logrotate.d
drwxr-xr-x 4 root root 4096 Nov 29 2017 security
drwxr-xr-x 2 root root 4096 Nov 29 2017 skel
-rw-r–r-- 1 root root 16 Nov 29 2017 subuid
-rw-r–r-- 1 root root 16 Nov 29 2017 subgid
-rw-r–r-- 1 root root 131 Nov 29 2017 hosts
-rw-r–r-- 1 root root 12 Nov 29 2017 hostname
drwxr-xr-x 3 root root 4096 Nov 29 2017 triggerhappy
-rw-r–r-- 1 root root 42 Nov 29 2017 ld.so.preload
drwxr-xr-x 2 root root 4096 Nov 29 2017 cifs-utils
drwxr-xr-x 2 root root 4096 Nov 29 2017 python3.5
drwxr-xr-x 3 root root 4096 Nov 29 2017 gss
drwxr-xr-x 3 root root 4096 Nov 29 2017 ufw
drwxr-xr-x 3 root root 4096 Nov 29 2017 resolvconf
drwxr-xr-x 3 root root 4096 Nov 29 2017 ca-certificates
-rw-r–r-- 1 root root 2683 Nov 29 2017 sysctl.conf
drwxr-xr-x 2 root root 4096 Nov 29 2017 ldap
drwxr-xr-x 2 root root 4096 Nov 29 2017 sgml
drwxr-xr-x 2 root root 4096 Nov 29 2017 xml
drwxr-xr-x 2 root root 4096 Nov 29 2017 libnl-3
-rw-r–r-- 1 root root 7431 Nov 29 2017 ca-certificates.conf
drwxr-xr-x 2 root root 4096 Nov 29 2017 bluetooth
-rw-r–r-- 1 root root 411 Nov 29 2017 hosts.allow
-rw-r–r-- 1 root root 711 Nov 29 2017 hosts.deny
drwxr-xr-x 2 root root 4096 Nov 29 2017 insserv.conf.d
drwxr-xr-x 2 root root 4096 Nov 29 2017 console-setup
drwxr-xr-x 2 root root 4096 Nov 29 2017 request-key.d
drwxr-xr-x 4 root root 4096 Nov 29 2017 dpkg
drwxr-xr-x 2 root root 4096 Nov 29 2017 python
drwxr-xr-x 2 root root 4096 Nov 29 2017 gdb
drwxr-xr-x 3 root root 4096 Nov 29 2017 avahi
-rw-r–r-- 1 root root 529 Nov 29 2017 nsswitch.conf
drwxr-xr-x 2 root root 4096 Nov 29 2017 python3
-rw-r–r-- 1 root root 1100 Nov 29 2017 dphys-swapfile
-rw-r–r-- 1 root root 1865 Nov 29 2017 inputrc
-rw-r–r-- 1 root root 10516 Nov 29 2017 login.defs
-rw-r–r-- 1 root root 799 Nov 29 2017 profile
-rwxr-xr-x 1 root root 420 Nov 29 2017 rc.local
drwxr-xr-x 4 root root 4096 Nov 29 2017 ppp
drwxr-xr-x 3 root root 4096 Nov 29 2017 ifplugd
drwxr-xr-x 7 root root 4096 Nov 29 2017 network
drwxr-xr-x 2 root root 4096 Nov 29 2017 wpa_supplicant
drwxr-xr-x 5 root root 4096 Nov 29 2017 gconf
drwxr-xr-x 3 root root 4096 Nov 29 2017 apparmor.d
drwxr-xr-x 5 root root 4096 Nov 29 2017 polkit-1
drwxr-xr-x 2 root root 4096 Nov 29 2017 gtk-2.0
drwxr-xr-x 3 root root 4096 Nov 29 2017 emacs
drwxr-xr-x 2 root root 4096 Nov 29 2017 gtk-3.0
drwxr-xr-x 2 root root 4096 Nov 29 2017 rc1.d
drwxr-xr-x 2 root root 4096 Nov 29 2017 dictionaries-common
drwxr-xr-x 4 root root 4096 Nov 29 2017 ghostscript
drwxr-xr-x 2 root root 4096 Nov 29 2017 openal
drwxr-xr-x 2 root root 4096 Nov 29 2017 wildmidi
drwxr-xr-x 2 root root 4096 Nov 29 2017 sensors.d
drwxr-xr-x 4 root root 4096 Nov 29 2017 chromium-browser
drwxr-xr-x 2 root root 4096 Nov 29 2017 xpdf
drwxr-xr-x 2 root root 4096 Nov 29 2017 pulse
drwxr-xr-x 2 root root 4096 Nov 29 2017 esound
drwxr-xr-x 2 root root 4096 Nov 29 2017 timidity
drwxr-xr-x 5 root root 4096 Nov 29 2017 fonts
drwxr-xr-x 3 root root 4096 Nov 29 2017 apache2
-rw------- 1 root root 940 Nov 29 2017 shadow-
-rw------- 1 root root 1592 Nov 29 2017 passwd-
drwxr-xr-x 2 root root 4096 Nov 29 2017 lightdm
drwxr-xr-x 3 root root 4096 Nov 29 2017 gnome
drwxr-xr-x 4 root root 4096 Nov 29 2017 lighttpd
drwxr-xr-x 2 root root 4096 Nov 29 2017 dillo
-rw-r–r-- 1 root root 203 Nov 29 2017 modules
-rw-r–r-- 1 root root 145 Nov 29 2017 rpi-issue
lrwxrwxrwx 1 root root 19 Nov 29 2017 mtab → …/proc/self/mounts
-r–r–r-- 1 root root 33 Nov 29 2017 machine-id
-r-------- 1 root root 192 Nov 29 2017 dhcpcd.secret
-rw-r–r-- 1 root root 42 Nov 29 2017 dhcpcd.duid
drwxr-xr-x 2 root root 4096 Dec 7 2017 rc5.d
drwxr-xr-x 2 root root 4096 Dec 7 2017 rc4.d
drwxr-xr-x 2 root root 4096 Dec 7 2017 rc2.d
-rw-r–r-- 1 root root 314 Dec 7 2017 fstab
drwxr-xr-x 2 root root 4096 Dec 7 2017 rc3.d
-rw-r–r-- 1 root root 1638 Dec 7 2017 passwd
-rw-r----- 1 root shadow 968 Dec 7 2017 shadow
-rw------- 1 root root 668 Dec 7 2017 gshadow-
-rw------- 1 root root 801 Dec 7 2017 group-
-rw-r–r-- 1 root root 57 Feb 26 20:47 pip.conf
lrwxrwxrwx 1 root root 21 Mar 12 14:03 os-release → …/usr/lib/os-release
-rw-r–r-- 1 root root 4 Mar 12 14:03 debian_version
-rw-r–r-- 1 root root 18 Jun 25 10:17 resolv.conf.bak
-rw-r–r-- 1 root root 49 Jun 25 10:17 resolv.conf
drwxr-xr-x 2 root root 4096 Jun 26 02:06 update-motd.d
drwxr-xr-x 2 root root 4096 Jun 26 02:06 rcS.d
drwxr-xr-x 2 root root 4096 Jun 26 02:06 rc6.d
drwxr-xr-x 2 root root 4096 Jun 26 02:06 rc0.d
drwxr-xr-x 2 root root 4096 Jun 26 02:10 terminfo
drwxr-xr-x 2 root root 4096 Jun 26 02:11 modules-load.d
-rw-r–r-- 1 root root 8 Jun 26 02:33 timezone
lrwxrwxrwx 1 root root 27 Jun 26 02:33 localtime → /usr/share/zoneinfo/Etc/UTC
drwxr-xr-x 2 root root 4096 Jun 26 02:34 samba
drwxr-xr-x 3 root root 4096 Jun 26 02:34 iproute2
drwxr-xr-x 11 root root 4096 Jun 26 02:35 X11
drwxr-xr-x 4 root root 4096 Jun 26 02:35 vnc
drwxr-xr-x 4 root root 4096 Jun 26 02:35 perl
drwxr-xr-x 4 root root 4096 Jun 26 02:35 udev
drwxr-xr-x 2 root root 4096 Jun 26 02:52 plymouth
drwxr-xr-x 5 root root 4096 Jun 26 02:52 systemd
drwxr-xr-x 4 root root 4096 Jun 26 02:52 ssl
drwxr-xr-x 10 root root 4096 Jun 26 02:52 xdg
drwxr-xr-x 2 root root 12288 Jun 26 02:52 alternatives
drwxr-xr-x 2 root root 4096 Jun 26 02:53 python2.7
drwxr-xr-x 2 root root 4096 Jun 26 02:53 ssh
drwxr-xr-x 2 root root 4096 Jun 26 02:53 cron.d
drwxr-xr-x 2 root root 4096 Jun 26 02:53 cron.daily
drwxr-xr-x 2 root root 4096 Jun 26 02:53 cron.hourly
drwxr-xr-x 2 root root 4096 Jun 26 02:53 cron.monthly
drwxr-xr-x 2 root root 4096 Jun 26 02:53 cron.weekly
-rw-r–r-- 1 root root 9097 Jun 26 02:53 locale.gen
drwxr-xr-x 2 root root 4096 Jun 26 02:54 bash_completion.d
drwxr-xr-x 2 root root 4096 Jun 26 02:54 PackageKit
drwxr-xr-x 2 root root 4096 Jun 26 02:54 ld.so.conf.d
drwxr-xr-x 2 root root 4096 Jun 26 02:54 modprobe.d
drwxr-xr-x 2 root root 4096 Jun 26 02:54 profile.d
drwxr-xr-x 2 root root 4096 Jun 26 02:54 sudoers.d
drwxr-xr-x 2 root root 4096 Jun 26 02:54 sysctl.d
drwxr-xr-x 6 root root 4096 Jun 26 02:54 apt
drwxr-xr-x 4 root root 4096 Jun 26 02:55 dhcp
drwxr-xr-x 4 root root 4096 Jun 26 02:55 dbus-1
drwxr-xr-x 2 root root 4096 Jun 26 02:55 menu-methods
drwxr-xr-x 2 root root 4096 Jun 26 02:55 default
drwxr-xr-x 2 root root 4096 Jun 26 02:55 init.d
drwxr-xr-x 2 root root 4096 Jun 26 02:55 init
drwxr-xr-x 2 root root 4096 Jun 26 02:55 pam.d
drwxr-xr-x 2 root root 4096 Jun 26 02:56 libreoffice
-rw-r–r-- 1 root root 22476 Jun 28 01:24 mailcap
-rw-r–r-- 1 root root 81531 Jun 28 01:24 ld.so.cache
-rw-r–r-- 1 root root 815 Jun 28 01:28 group
-rw-r----- 1 root shadow 682 Jun 28 01:28 gshadow
-rw-r–r-- 1 root root 20 Jun 28 16:17 fake-hwclock.data