Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse SmartHome » adding channels conditionally
adding channels conditionally [message #1774837] Fri, 20 October 2017 12:18 Go to next message
Nils Billing is currently offline Nils BillingFriend
Messages: 13
Registered: September 2017
Junior Member
Hi all,

I've the follwing question...

Is it possible to add channels conditionally to the device functions?

In my case I've two cameras one camera supports ptz ( ptz = zooming and moving) the second one does not.

Can I disable this channel for one camera or have I define to different cameratypes in my thing.xml? If so can one definition inherit from the other? Or is there another possibility to implement this?

Re: adding channels conditionally [message #1775929 is a reply to message #1774837] Wed, 08 November 2017 11:05 Go to previous messageGo to next message
Henning Treu is currently offline Henning TreuFriend
Messages: 44
Registered: April 2017
Member
Hi Nils,

you would have to define different thing types for different camera models. So every model then has exactly the channel it provides.

Cheers,
Henning
Re: adding channels conditionally [message #1776035 is a reply to message #1775929] Thu, 09 November 2017 14:05 Go to previous message
Markus Rathgeb is currently offline Markus RathgebFriend
Messages: 105
Registered: August 2014
Senior Member

Quote:
If so can one definition inherit from the other?


If you use the XML files there is no possibility for inheritance.
If you use Java code to add thing types, this is possible (at least I do it on some of my projects and it is working).
Previous Topic:Items REST API - Add formatting flag
Next Topic:Profiles
Goto Forum:
  


Current Time: Fri Apr 26 12:12:12 GMT 2024

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

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

Back to the top