zwave-js / node-red-contrib-zwave-js

The most powerful, high performing and highly polished Z-Wave node for Node-RED based on Z-Wave JS. If you want a fully featured Z-Wave framework in your Node-RED instance, you have found it.
MIT License
47 stars 6 forks source link

allow to choose custom serial port #7

Closed jonathan-reisdorf closed 3 years ago

jonathan-reisdorf commented 3 years ago

Thank you for this great node-red enhancement!

About this PR:

While serialport.list does a good job at detecting the serial ports, it does not detect everything. E.g. on my Raspberry Pi I run an Aeotec Z-Stick which does not always guarantee a static serial port. Most of the time it's on /dev/ttyACM0 but then all of a sudden it changes to /dev/ttyACM1. To create a stable static port the typical solution is to create a udev rule which would create a symlink that always points to the correct port, e.g. /dev/zwave. With this PR it's possible to select a custom, un-detected serial port like the aforementioned symlink.

marcus-j-davies commented 3 years ago

Hey

Thanks for the PR. I'll get it merged into dev in a short while.