Home » Archived » Eclipse SmartHome » Channel Configuration through UI
Channel Configuration through UI [message #1719532] |
Fri, 08 January 2016 16:45 |
Marcel Verpaalen Messages: 59 Registered: September 2014 |
Member |
|
|
Is it planned that PaperUI will support the configuration of Channels as well.
Meaning that besides enabling/disabling a channel it can also edit the Channel configurable options?
Or alternatively will habmin allowing this in the near term?
Or alternatively, is there a way that via commandline this is supported?
[Updated on: Fri, 08 January 2016 16:49] Report message to a moderator
|
|
| | |
Re: Channel Configuration through UI [message #1733231 is a reply to message #1719532] |
Wed, 25 May 2016 15:01 |
Svilen Valkanov Messages: 6 Registered: May 2016 |
Junior Member |
|
|
I need a bit of help with this feature.
I see that it is implemented already - https://github.com/eclipse/smarthome/pull/1404, but can not see it working.
It can help, If you tell me, in which binding the channel configuration from the Paper UI is working.
In my case, all bundles are up to date with the latest updates.
I have a channel:
<channel-type id="networkName">
<item-type>String</item-type>
<label>Network name</label>
<description>The name of the network.</description>
<state readOnly="true" pattern="%s " />
<config-description-ref uri="systeminfo:channels:lowpriority" />
</channel-type>
and configuration file
<config-description uri="systeminfo:channels:lowpriority">
<parameter name="priority" type="text">
<label>Interval</label>
<description>Refresh interval in seconds.</description>
<options>
<option value="High">High</option>
<option value="Medium">Medium</option>
<option value="Low">Low</option>
</options>
<default>Low</default>
</parameter>
<parameter name="pid" type="integer" min="-1" step="1">
<label>PID</label>
<description>The PID of the process. It is only used for channels from group 'process'.</description>
<default>-1</default>
<advanced>true</advanced>
</parameter>
</config-description>
and a call to http://localhost:8080/rest/channel-types returns
....{"parameters":[{"defaultValue":"Low","description":"Refresh interval in seconds.","label":"Interval","name":"priority","required":false,"type":"TEXT","readOnly":false,"multiple":false,"advanced":false,"limitToOptions":true,"options":[{"label":"High","value":"High"},{"label":"Medium","value":"Medium"},{"label":"Low","value":"Low"}],"filterCriteria":[]},{"defaultValue":"-1","description":"The PID of the process. It is only used for channels from group \u0027process\u0027.","label":"PID","name":"pid","required":false,"type":"INTEGER","min":-1,"stepsize":1,"readOnly":false,"multiple":false,"advanced":true,"limitToOptions":false,"options":[],"filterCriteria":[]}],"parameterGroups":[],"description":"The name of the network.","label":"Network name","stateDescription":{"pattern":"%s ","readOnly":true,"options":[]},"tags":[],"UID":"systeminfo:networkName"}
but in the Paper UI the button is missing
<div class="actions">
<!-- ngIf: getChannelFromChannelTypes(channel.channelTypeUID).parameters && getChannelFromChannelTypes(channel.channelTypeUID).parameters.length > 0 -->
</div>
Any hints, ideas ?
|
|
| | | | | | |
Goto Forum:
Current Time: Thu Apr 25 17:25:10 GMT 2024
Powered by FUDForum. Page generated in 0.04198 seconds
|