Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse SmartHome » GroupItem question(How to send command via group item)
GroupItem question [message #1693270] Wed, 22 April 2015 18:40
Smart Home is currently offline Smart HomeFriend
Messages: 109
Registered: February 2015
Senior Member
Hi,

I plan to create a group which will include only switch items. From my point of view, the group itself is also a switch. I will set the base item of the group to be a switch item.

The issue is that the send command of the GroupItem accept Command while SwitchItem gets OnOffType.

Basically there is no problem, I can check if the item is a group, check if the base item is a switch and cast as needed, but it seems "complicated" to me and it might be that I a missing something here.

Is this the way to handle such case?

Thx
Previous Topic:Defining and handling alarms
Next Topic:Default implementation of thingHandler.thingUpdated()
Goto Forum:
  


Current Time: Fri Apr 26 13:22:06 GMT 2024

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

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

Back to the top