[co7io] Persistent serial port identifier provider for openhab

There are multiple tutorials on how to get serial port devices working just fine with openHAB and Linux (see below). Addon which I am bringing to the table does that without necessity to touch any operating system configuration. It does not require adjustment of startup options. It should just work out of the box.

Under the hood add do create a hash for each available usb/serial device and look up a real /dev/tty* port based on that hash. This means that as long as your USB devices stay unique it should work between restarts saving you time on fighting with udev. More importantly it works with vanilla openHAB 3 serial port APIs.
Information used for hash:

  • Vendor id
  • Product id
  • Product
  • Manufacturer
  • Interface Description
  • Interface Number
  • Serial Number

Port seen in openHAB UIs and other places is in format #Persistent,xyz:/dev/ttyZYX. Out of this furst xyz is a device identification hash. The capital ZYX us a node name which was initially used to calculate that hash. It does serve only informational purposes. All identification is based upon hash!

To download addon you must register:

If you seek for a operating system level solution see: