Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse SmartHome » Channel Configuration through UI
Channel Configuration through UI [message #1719532] Fri, 08 January 2016 16:45 Go to next message
Marcel Verpaalen is currently offline Marcel VerpaalenFriend
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 #1719563 is a reply to message #1719532] Fri, 08 January 2016 21:20 Go to previous messageGo to next message
Kai Kreuzer is currently offline Kai KreuzerFriend
Messages: 648
Registered: December 2011
Senior Member
Planned yes, but not yet in any concrete planning phase. Feel free to create an issue for it - and if you have good ideas how the UI should look like for this feature, it would be even better Smile
Re: Channel Configuration through UI [message #1719572 is a reply to message #1719563] Fri, 08 January 2016 23:28 Go to previous messageGo to next message
Marcel Verpaalen is currently offline Marcel VerpaalenFriend
Messages: 59
Registered: September 2014
Member
Okay, thanks made the issue for it.
Re: Channel Configuration through UI [message #1733231 is a reply to message #1719532] Wed, 25 May 2016 15:01 Go to previous messageGo to next message
Svilen Valkanov is currently offline Svilen ValkanovFriend
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. Smile

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 #1733257 is a reply to message #1733231] Wed, 25 May 2016 18:57 Go to previous messageGo to next message
Marcel Verpaalen is currently offline Marcel VerpaalenFriend
Messages: 59
Registered: September 2014
Member
I have not yet seen this working in paperUI.
If you have OH, you can edit channel config through Habmin2 inferface.
https://github.com/cdjackson/HABmin2
Re: Channel Configuration through UI [message #1733288 is a reply to message #1733257] Thu, 26 May 2016 08:23 Go to previous messageGo to next message
Kai Kreuzer is currently offline Kai KreuzerFriend
Messages: 648
Registered: December 2011
Senior Member
I 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.
Re: Channel Configuration through UI [message #1733311 is a reply to message #1733257] Thu, 26 May 2016 11:54 Go to previous messageGo to next message
Svilen Valkanov is currently offline Svilen ValkanovFriend
Messages: 6
Registered: May 2016
Junior Member
Marcel Verpaalen wrote on Wed, 25 May 2016 18:57
I have not yet seen this working in paperUI.
If you have OH, you can edit channel config through Habmin2 inferface.
https://github.com/cdjackson/HABmin2


thanks, it will be ok for now to use Habmin2 Smile
Re: Channel Configuration through UI [message #1733320 is a reply to message #1733311] Thu, 26 May 2016 13:18 Go to previous messageGo to next message
Syed Aoun Haider Bukhari is currently offline Syed Aoun Haider BukhariFriend
Messages: 2
Registered: March 2016
Junior Member
Yes, it seems to have been broken due to https://github.com/eclipse/smarthome/pull/1288. I just created a pull request that should fix this issue (https://github.com/eclipse/smarthome/pull/1570).
Re: Channel Configuration through UI [message #1733335 is a reply to message #1733320] Thu, 26 May 2016 07:07 Go to previous messageGo to next message
Svilen Valkanov is currently offline Svilen ValkanovFriend
Messages: 6
Registered: May 2016
Junior Member
Syed Aoun Haider Bukhari wrote on Thu, 26 May 2016 13:18
Yes, it seems to have been broken due to https://github.com/eclipse/smarthome/pull/1288. I just created a pull request that should fix this issue (https://github.com/eclipse/smarthome/pull/1570).


thank you
Re: Channel Configuration through UI [message #1733362 is a reply to message #1733288] Thu, 26 May 2016 20:46 Go to previous message
Marcel Verpaalen is currently offline Marcel VerpaalenFriend
Messages: 59
Registered: September 2014
Member
Kai Kreuzer wrote on Thu, 26 May 2016 10:23
I 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
Previous Topic:Allow channels without item type
Next Topic:Creating Things from a DiscoveryResult
Goto Forum:
  


Current Time: Wed Jun 20 21:14:18 GMT 2018

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

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

Back to the top