Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse SmartHome » Thing configuration does not show boolean thing parameter in paperUI(boolean configure parameter not shown in paperui )
Thing configuration does not show boolean thing parameter in paperUI [message #1763906] Mon, 22 May 2017 18:44 Go to next message
Peter Kreutzer is currently offline Peter KreutzerFriend
Messages: 3
Registered: May 2017
Junior Member
HI ,

i am implementing a binding in openhab and created configuration parameter according below structure in my thing type definition.

Unfortunately the echohandling parameter of type boolean is not shown in the thing configuration properties while creating the thing. I would expect a kind of checkbox for the boolean configuration parameter.

<config-description>
            <parameter name="port" type="text" required="true">
                <context>network-address</context>
                <label>Portname</label>
                <description>Serial port to use connecting to the metering device e.g. COM1 for Windows and /dev/ttyS0 or /dev/ttyUSB0 for Linux.</description>
                <default>/dev/ttyS0</default>
            </parameter>
            <parameter name="baudRateChangeDelay" type="decimal"  min="0" max="250" step="1" required="false">
                <context>network-address</context>
                <label>Baud rate change</label>
                <description>Delay of baud rate change in ms. Default is 0. USB to serial converters often require a delay of up to 250ms default is 0ms.</description>
                <default>0</default>
            </parameter>
            <parameter name="echoHandling" type="boolean" required="true">
                <context>network-address</context>
                <label>Echo handling</label>
                <description>Enable handling of echos caused by some optical tranceivers. Default value is true.</description>
                <default>false</default>
            </parameter>
            <parameter name="initMessage" type="text" required="false">
                <context>network-address</context>
                <label>Extra pre init bytes</label>
                <description>extra pre init bytes. Default value is empty.</description>
                <default></default>
            </parameter>
            <parameter name="refresh" type="integer" required="true">
                <label>Meter refresh rate</label>
                <description>Refresh rate in [s] to query the meter data.</description>
                <default>60</default>
            </parameter>
</config-description>


Is there anything wrong with above way to configure the boolean config parameter?

I am using current git version 2.1 of openhab

BR
peter
Re: Thing configuration does not show boolean thing parameter in paperUI [message #1763935 is a reply to message #1763906] Tue, 23 May 2017 08:12 Go to previous messageGo to next message
Henning Treu is currently offline Henning TreuFriend
Messages: 44
Registered: April 2017
Member
Hi Peter,

you are using <context> tags with value "network-address" for your parameters which is undefined for the type boolean. The context "network-address" was meant to be a rendering hint for PaperUI for IPv4 addresses but is unused right now. If you like to group your parameters you may define a <parameter-group> and reference it with the <parameter groupName="..."> attribute. Please have a look in the Eclipse SmartHome Dokumentation for more information about thing type definition.

Cheers,
Henning
Re: Thing configuration does not show boolean thing parameter in paperUI [message #1763951 is a reply to message #1763935] Tue, 23 May 2017 10:49 Go to previous message
Peter Kreutzer is currently offline Peter KreutzerFriend
Messages: 3
Registered: May 2017
Junior Member
many thanks , resolved
Previous Topic:channel: change state pattern dynamically
Next Topic:[Solved]Reading the version number of the binding
Goto Forum:
  


Current Time: Thu Apr 18 05:58:31 GMT 2024

Powered by FUDForum. Page generated in 0.02052 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top