|option list for a parameter doe not show values [message #1729159]
||Mon, 11 April 2016 15:34
| Christian Poisel
Registered: April 2016
i'm using PLC for the control of my lights for several years and developed a java library to do some automation.
As soon as i discovered OpenHAB i knew it was what i needed for my next step. The only problem was the missing phasecoupler support in the plcbus addon.
As the 2nd Beta of OpenHAB 2 had allready been released i started with the development of OpenHAB 2 addon.
First i refactored my existing code and then tried to integrate it into the addon. The documentation and some study of existing code (lutron and avmfritz) helped a lot and within three evenings of work i thought i was prepared for a first test.
But now i'm stuck with the options of my serial port speed:
I want to show a list of baudrates typically used on serial lines like this:
value text presented in the gui
300 300 Baud
1200 1200 Baud
2400 2400 Baud
4800 4800 Baud
9600 9600 Baud
19200 19200 Baud
38400 38400 Baud
57600 57600 Baud
115200 115200 Baud
Yes, i too don't know anybody still using 300 baud lines, but as i want to restrict the input to predefined values it does no harm if it is there.
I started with an int-valued speed parameter and after looking into avmfritz discovered a text-based optionlist they use for the protocol. So i changed the value to text and added some code to parse it to an int. The result was allways the same: a selection list opened which obviously held several entries that i was able to select, but no text was shown at all.
I have attached all files from my ESH-INF subdirectories as i assume the bug must be somewhere in there. Please tell me if you need more information. It is no problem to post all the code as i'm the only author and i will contribute it anyway as soon as i have a chance to test it as a whole.
Thank you for your help.
Powered by FUDForum
. Page generated in 0.01997 seconds