Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse SmartHome » Programmatic Access To Channel Enable/Disable Status
Programmatic Access To Channel Enable/Disable Status [message #1706554] Thu, 27 August 2015 16:05 Go to next message
Chris Graham is currently offline Chris GrahamFriend
Messages: 1
Registered: August 2015
Junior Member
I am trying to figure out if it is possible to programmatically enable or disable a channel and determine if a channel is enabled or disabled in the Thing handlers. Reading through documentation and looking at code in the SmartHome and OpenHAB2 hasn't brought out anything obvious.

Is programmatic access to enabling and disabling a channel easily accessible through Thing handlers?
Re: Programmatic Access To Channel Enable/Disable Status [message #1706568 is a reply to message #1706554] Thu, 27 August 2015 17:51 Go to previous message
Dennis Nobel is currently offline Dennis NobelFriend
Messages: 166
Registered: September 2014
Senior Member
Quote:
I am trying to figure out if it is possible to programmatically enable or disable a channel


It is not possible, as the user or the application should usually decide which functionality of the binding should be used. Enabling a channel is also a specific Term of the ThingSetupManager. A channel is usable if an item is linked to a channel.

Quote:
and determine if a channel is enabled or disabled


This is possible, you can call the method "isLinked" from the ThingHandler.

Regards

Dennis
Previous Topic:How to install PaperUI
Next Topic:System channel type flag
Goto Forum:
  


Current Time: Sat Apr 27 01:27:46 GMT 2024

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

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

Back to the top