Skip to main content



      Home
Home » Archived » Eclipse SmartHome » Reuse channel-type
Reuse channel-type [message #1823043] Wed, 18 March 2020 12:36 Go to next message
Eclipse UserFriend
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 03:22 Go to previous messageGo to next message
Eclipse UserFriend
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 03:20 Go to previous message
Eclipse UserFriend
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: Sun Aug 31 11:14:37 EDT 2025

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

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

Back to the top