Skip to content

Commit

Permalink
[pjlink] use parameter-groups for better structure of thing parameter…
Browse files Browse the repository at this point in the history
…s in PaperUI (openhab#7472)

Signed-off-by: Nils Schnabel <github@to.nilsschnabel.de>
  • Loading branch information
nils authored and andrewfg committed Aug 31, 2020
1 parent d3fb5d5 commit 9bf50ac
Showing 1 changed file with 25 additions and 17 deletions.
Expand Up @@ -18,51 +18,59 @@
</channels>

<config-description>
<parameter name="ipAddress" type="text" required="true" min="1">
<parameter-group name="basic">
<context>basic</context>
<label>Basic Settings</label>
</parameter-group>
<parameter-group name="refresh">
<label>Polling Settings</label>
<description>Use these settings to configure how the status of the PJLink device will be refreshed</description>
</parameter-group>
<parameter name="ipAddress" type="text" required="true" min="1" groupName="basic">
<context>network-address</context>
<label>IP Address</label>
<description>The address of the PJLink device to control.</description>
</parameter>
<parameter name="adminPassword" type="text">
<parameter name="tcpPort" type="integer" min="1" max="65535" groupName="basic">
<default>4352</default>
<label>TCP Port</label>
<description>The TCP port of the PJLink device to control.</description>
</parameter>
<parameter name="adminPassword" type="text" groupName="basic">
<context>password</context>
<label>Password</label>
<description>The password of the PJLink device.</description>
</parameter>
<parameter name="tcpPort" type="integer" min="1" max="65535">
<default>4352</default>
<label>TCP Port</label>
<description>The TCP port of the PJLink device to control.</description>
<parameter name="autoReconnectInterval" type="integer" min="0" groupName="basic">
<label>Auto Reconnect Interval</label>
<description>Seconds between connection retries when connection to the PJLink device has been lost, 0 means never
retry, minimum 30s</description>
<default>60</default>
</parameter>
<parameter name="refreshInterval" type="integer" min="0">
<parameter name="refreshInterval" type="integer" min="0" groupName="refresh">
<default>5</default>
<label>Refresh Interval (s)</label>
<description>How often to poll the device state (in seconds). A value of zero will disable polling.</description>
</parameter>
<parameter name="refreshPower" type="boolean">
<parameter name="refreshPower" type="boolean" groupName="refresh">
<default>false</default>
<label>Poll for Power State</label>
<description>Enable polling for the power state. Only considered if the refreshInterval interval is greater than
zero.</description>
</parameter>
<parameter name="refreshMute" type="boolean">
<parameter name="refreshMute" type="boolean" groupName="refresh">
<default>false</default>
<label>Poll for Mute State</label>
<description>Enable polling for the mute state. Only considered if the refreshInterval interval is greater than
zero.</description>
</parameter>
<parameter name="refreshInputChannel" type="boolean">
<parameter name="refreshInputChannel" type="boolean" groupName="refresh">
<default>false</default>
<label>Poll for Selected Input Channel</label>
<description>Enable polling for the selected input channel. Only considered if the refreshInterval interval is
greater than zero.</description>
</parameter>
<parameter name="autoReconnectInterval" type="integer" min="0">
<label>Auto Reconnect Interval</label>
<description>Seconds between connection retries when connection to the PJLink device has been lost, 0 means never
retry, minimum 30s</description>
<default>60</default>
</parameter>
<parameter name="refreshLampState" type="boolean">
<parameter name="refreshLampState" type="boolean" groupName="refresh">
<default>false</default>
<label>Poll for Lamp State</label>
<description>Enable polling for the lamp state. Only considered if the refresh interval is greater than zero.</description>
Expand Down

0 comments on commit 9bf50ac

Please sign in to comment.