Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse SmartHome » Reuse channel-type
Reuse channel-type [message #1823043] Wed, 18 March 2020 16:36 Go to next message
Nils Billing is currently offline Nils BillingFriend
Messages: 13
Registered: September 2017
Junior Member
hi,

is it not possible to use a channel-type twice?

I want to use the type for two channels:

channel-grou
		<channel-groups>
			<channel-group id="datScSunday" typeId="datScSunday-type" />
			<channel-group id="datScMonday" typeId="datScSMonday-type" />
		</channel-groups>

'datScSunday-type' with channel 'scheduleSundayStartHour'
	<channel-group-type id="datScSunday-type">
		<channels>
			<channel id="scheduleSundayStartHour" typeId="chScheduleStartHour" />
		</channels>
	</channel-group-type>

-> I think the channel is datScSunday#scheduleSundayStartHour

and

'datScMonday-type' with channel 'scheduleMondayStartHour'

	<channel-group-type id="datScMonday-type">
		<channels>
			<channel id="scheduleMondayStartHour" typeId="chScheduleStartHour" />
		</channels>
	</channel-group-type>

-> I think the channel is datScMonday#scheduleMondayStartHour

channel-type
	<channel-type id="chScheduleStartHour">
		<item-type>Number</item-type>
		<label>Schedule Start Hour</label>
		<category>Info</category>
		<state readOnly="false" min="0" max="23" step="1" pattern="%d h" />
	</channel-type>


But when I add my thing via PapaerUI I get a http 500 error and the thing don't have any channels. When I copy the channel-type with another id it works.
Re: Reuse channel-type [message #1823073 is a reply to message #1823043] Thu, 19 March 2020 07:22 Go to previous messageGo to next message
Nils Billing is currently offline Nils BillingFriend
Messages: 13
Registered: September 2017
Junior Member
sorry, I found the problem.
It was a typo in channel-group:
<channel-group id="datScMonday" typeId="datScSMonday-type" />


-> datScSMonday-type
Re: Reuse channel-type [message #1823139 is a reply to message #1823073] Fri, 20 March 2020 07:20 Go to previous message
Andre Fuechsel is currently offline Andre FuechselFriend
Messages: 1
Registered: January 2014
Junior Member
As you might have noticed, this project is stalled and discontinued. It has been integrated back to openHAB.
Previous Topic:mvn build error
Goto Forum:
  


Current Time: Wed May 22 06:26:24 GMT 2024

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

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

Back to the top