Z-Wave AEOTEC USB Stick Error

Environment: Raspberry PI 4. Buster. VENV install. HA v0.97.2 Aeotec USB Stick.

Background: This is my third HA Raspberry PI for HA. I’ve been a longtime user and upgraded PIs twice from my original install. On my original and second install, I had no issues with ZWave. Followed the instructions and it worked.

Problem: I’ve been wrestling with the USB stick on this install. I cannot seem to get it to be recognized. I would appreciate someone nudging me from my confusion.

Details:
The current errors I am getting in the log are shown below.
I have also included output from an ls tty command and dmesg.
Any hints on what I could look at next to get this USB stick recognized?
I’m out of ideas since I started this journey last weekend.

*****E R R O R #1:

Log Details (ERROR)
Fri Aug 30 2019 13:17:12 GMT-0400 (Eastern Daylight Time)
Received invalid command: zwave/network_status

*****E R R O R   #2:
Fri Aug 30 2019 12:46:59 GMT-0400 (Eastern Daylight Time)
Error setting up entry Z-Wave (import from configuration.yaml) for zwave
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/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/ttyAMC0 : ['NoneType: None\\n']"

******TTY OUTPUT:
$ ls -ltr /dev/tty* | tail -n 1
crw--w---- 1 root tty       4,  1 Aug 30 12:46 /dev/tty1

***** DMESG OUTPUT:
$ dmesg | grep USB
[    0.393428] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    0.396004] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    0.396038] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.396633] hub 1-0:1.0: USB hub found
[    0.397148] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    0.397184] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    0.397542] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.19
[    0.397574] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.398139] hub 2-0:1.0: USB hub found
[    0.826904] dwc_otg fe980000.usb: new USB bus registered, assigned bus number 3
[    0.827529] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    0.827563] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.828167] hub 3-0:1.0: USB hub found
[    0.835412] usbhid: USB HID core driver
[    0.971574] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[    1.153230] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.20
[    1.153269] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.153296] usb 1-1: Product: USB2.0 Hub
[    1.154891] hub 1-1:1.0: USB hub found
[    1.301845] usb 2-2: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[    1.332595] usb 2-2: New USB device found, idVendor=0789, idProduct=0578, bcdDevice= 2.04
[    1.332634] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3

You will require an external USB hub to connect the Aeotec USB Stick to a Pi 4.

https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=245031#p1502030

Well there you go! Excellent. Thanks. I could have been banging my head against the wall for a while more.

Found an old USB 2.0 hub in my electronics junk pile.
Hooked that up an BINGO, contact with the z-wave stick…

$ ls -ltr /dev/tty*|tail -n 4
crw--w---- 1 root tty       4,  7 Aug 30 15:00 /dev/tty7
crw-rw---- 1 root dialout 166,  0 Aug 30 15:00 /dev/ttyACM0
crw-rw---- 1 root dialout 204, 64 Aug 30 15:00 /dev/ttyAMA0
crw--w---- 1 root tty       4,  1 Aug 30 15:00 /dev/tty1

So there is my ttyACM0 that I have been looking for. Progress!!
Made sure homeassistant had permission:

$ sudo usermod -aG dialout homeassistant

Time to restart HA.
Checking the log…and…and…rats…
Time to keep digging. I would have never found that USB 2.0 hub thing though.

Error setting up entry Z-Wave (import from configuration.yaml) for zwave
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/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/ttyAMC0 : ['NoneType: None\\n']"

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/config_entries.py", line 179, in async_setup
    hass, self
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/__init__.py", line 366, in async_setup_entry
    config_path=config.get(CONF_CONFIG_PATH),
  File "/srv/homeassistant/lib/python3.7/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/ttyAMC0 : [\'Traceback (most recent call last):\\n\', \'  File "/srv/homeassistant/lib/python3.7/site-packages/openzwave/option.py", line 78, in __init__\\n    raise ZWaveException(u"Can\\\'t find device %s : %s" % (device, traceback.format_exception(*sys.exc_info())))\\n\', \'openzwave.object.ZWaveException: "Zwave Generic Exception : Can\\\'t find device /dev/ttyAMC0 : [\\\'NoneType: None\\\\\\\\n\\\']"\\n\']'

Looks like a spelling error. Took posting to see it.

1 Like