One of the problems I have encountered using the ZWave stick is that when you plug it in, it binds to ttyACM0. Then when you remove it (say to pair with a new Zwave device) and plug it back in, it binds to ttyACM1.
This is all well and good, but is problematic since the HA configuration file has the port hard coded:
zwave:
usb_path: /dev/ttyACM0
So I thought I would try and make the path static, say something like /dev/Aeotec or something along those lines. When I check what is connected to the usb ports:
pi@raspberrypi:~ $ lsusb
Bus 001 Device 004: ID 0658:0200 Sigma Designs, Inc.
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.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
The only thing that stands out to me is the Sigma Designs. I know what port the stick is connected to:
pi@raspberrypi:~ $ ls /dev/ttyACM*
/dev/ttyACM0
So I check to see if I can confirm that:
pi@raspberrypi:~ $ udevadm info /dev/ttyACM0
P: /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/tty/ttyACM0
N: ttyACM0
S: serial/by-id/usb-0658_0200-if00
S: serial/by-path/platform-3f980000.usb-usb-0:1.4:1.0
E: DEVLINKS=/dev/serial/by-id/usb-0658_0200-if00 /dev/serial/by-path/platform-3f980000.usb-usb-0:1.4:1.0
E: DEVNAME=/dev/ttyACM0
E: DEVPATH=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/tty/ttyACM0
E: ID_BUS=usb
E: ID_MODEL=0200
E: ID_MODEL_ENC=0200
E: ID_MODEL_ID=0200
E: ID_PATH=platform-3f980000.usb-usb-0:1.4:1.0
E: ID_PATH_TAG=platform-3f980000_usb-usb-0_1_4_1_0
E: ID_REVISION=0000
E: ID_SERIAL=0658_0200
E: ID_TYPE=generic
E: ID_USB_CLASS_FROM_DATABASE=Communications
E: ID_USB_DRIVER=cdc_acm
E: ID_USB_INTERFACES=:020201:0a0000:
E: ID_USB_INTERFACE_NUM=00
E: ID_VENDOR=0658
E: ID_VENDOR_ENC=0658
E: ID_VENDOR_FROM_DATABASE=Sigma Designs, Inc.
E: ID_VENDOR_ID=0658
E: MAJOR=166
E: MINOR=0
E: SUBSYSTEM=tty
E: TAGS=:systemd:
E: USEC_INITIALIZED=5699
And that is where I fall flat. What do I need to do now, with the information I have, to make that port assignment static? My preference is to make it /dev/AeotecStick or something like that. But I am unsure what the next steps are.