Trying to create a static udev for my insteon PLM, just in case the ttyUSB# link changes.
Under “normal” conditions, the PLM attaches at ttyUSB0. Using udev rules /etc/udev/60-insteon.rules
KERNEL=="ttyUSB0", SYMLINK+="insteon" OPTIONS+="link_priority=-100"
I get a symlink from /dev/insteon -> /dev/ttyUSB0, and my insteon plm binding of /dev/insteon works.
However I’m about to add a zigbee and zwave usb adapter, and I’m concerned about the ttyUSB# links changing.
So I changed the rules file to read:
SUBSYSTEM=="usb", ATTRS{serial}=="A906XKUV", SYMLINK+="insteon"
(I also changed the orignal rule above to be insteon2
A906XKUV is the proper serial as listed by
udevadm info --query all --name /dev/ttyUSB0
After that I have:
[01:26:57] openhabian@openhab:/etc/udev/rules.d$ ls -alh /dev/ttyUSB0 /dev/insteon /dev/insteon2 /dev/bus/usb/001/005
crw-rw-r-- 1 root dialout 189, 4 Jan 2 00:56 /dev/bus/usb/001/005
lrwxrwxrwx 1 root root 15 Jan 2 00:56 /dev/insteon -> bus/usb/001/005
lrwxrwxrwx 1 root root 7 Jan 2 00:56 /dev/insteon2 -> ttyUSB0
crw-rw---- 1 root dialout 188, 0 Jan 2 00:56 /dev/ttyUSB0
So permission do not seem to be an issue.
I’ve also updated /etc/default/openhab2
XTRA_JAVA_OPTS="-Xms250m -Xmx350m -Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0:/dev/ttyUSB1:/dev/ttyUSB2:/dev/ttyUSB3:/dev/ttyS0:/dev/ttyS2:/dev/ttyACM0:/dev/ttyAMA0:/dev/insteon:/dev/zigbee"
But the log file still complains on startup and the binding doesn’t work
2020-01-02 01:30:38.581 [ERROR] [onplm.internal.driver.SerialIOStream] - got no such port for /dev/insteon
2020-01-02 01:30:38.584 [ERROR] [g.insteonplm.InsteonPLMActiveBinding] - initialization complete, but found no ports!
openhab is a member of the dialout group
Any thoughts as to what I’m missing?