Home » Archived » Eclipse SmartHome » Channel Configuration through UI
Channel Configuration through UI [message #1719532] |
Fri, 08 January 2016 11:45  |
Eclipse User |
|
|
|
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 11:49] by Moderator
|
|
| | |
Re: Channel Configuration through UI [message #1733231 is a reply to message #1719532] |
Wed, 25 May 2016 11:01   |
Eclipse User |
|
|
|
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 ?
|
|
| | | | | |
Re: Channel Configuration through UI [message #1733362 is a reply to message #1733288] |
Thu, 26 May 2016 16:46  |
Eclipse User |
|
|
|
Kai Kreuzer wrote on Thu, 26 May 2016 10:23I am not aware of any existing binding that uses channel configuration yet, but I had seen the feature working. I'll ask Aoun for help on analyzing why it isn't working for you.
Think zwave uses this possibility in some cases
Thanks Aoun for fixing this so quick
|
|
|
Goto Forum:
Current Time: Wed Jul 23 04:53:51 EDT 2025
Powered by FUDForum. Page generated in 0.17385 seconds
|