I’ve got OH 2 running off a recent Openhabian install on a Raspberry Pi 3.
I noticed that sometimes the Aeon Labs Z-Stick gets a new USB port when you plug it in, and the binding gets confused and nothing works. Which is not a surprise, as it’s suddenly using the old port.
So, I dug around in udev and wrote a udev rule that creates a symlink to whatever the real port is. No matter what ttyUSBx my zstick gets, there’s always a symlink to /dev/ttyUSBx called “zstick” there in dev.
If I set the binding to use /dev/zstick as the port, the binding can never read from the stick and it goes offline, taking my zwave items with it.
If I set the binding to /dev/ttyUSBx, whatever that might be, the stick works.
Has anyone else done this, and gotten it to work? Can this be fixed? Using the symlink would be handy.
The Insteon PLM module works as /dev/ttyPLM, but the Zstick won’t take /dev/ttyZSTICK. The udev rules are creating those correctly and the point at the right place.
I’m using /dev/ttyUSB0 for the zstick, and it works fine that way.
Until I get this sussed out, @rlkoshak’s work-arund will do, but I’m confused why the symlink won’t work.