Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

[serial] Serial port alias #5869

Open
marekhalmo opened this issue Jun 20, 2019 · 0 comments
Open

[serial] Serial port alias #5869

marekhalmo opened this issue Jun 20, 2019 · 0 comments

Comments

@marekhalmo
Copy link
Contributor

I run openhab on 2 systems, one on windows as a development environment, and one on OpenHabian as production environment.

Current Behavior

My inputs and outputs are on a serial gateway (Arduino as serial device). The data is the same but the port changes depending on the environment i use (e.g. COM5 on widnows and /dev/ttyUSB0 on OpenHabian)
This means that i have to keep 2 items configuration files where everything is the same except the port. One will fail due to invalid port number, the other configuration file will run fine

Expected Behavior/Possible Solution

I would like to use an alias as a variable for the serial port name. The alias could be defined in some external file or an item. It would also allow easy configuration change in case your port number changes (e.g. you plug your device to a different serial/usb port)

Is this possible? There are quite few things bound here and i don't want to run duplicates

Your Environment

Development: Windows 10
Production: OpenHabian@RPI

@marekhalmo marekhalmo changed the title [Feature request] Serial port alias [serial] Serial port alias Jun 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant