Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse SmartHome » Automation : allowed input types for Modules(documentation limits types, but current json definitions say othwerise)
Automation : allowed input types for Modules [message #1720714] Wed, 20 January 2016 13:57 Go to next message
Karel Goderis is currently offline Karel GoderisFriend
Messages: 198
Registered: March 2014
Senior Member
The current documentation states that the types of the Inputs are limited to certain Java types, including arrays and lists of those types.

However, I observe in the source tree in a automation/moduletypes/ definition:

{  
   "conditions":[  
      {  
         "uid":"ItemStateEventCondition",
         "label":"ItemStateEvent Condition",
         "description":"checks if an item event was a state event and compares the new state",
         "configDescriptions":[  
            {  
               "name":"itemName",
               "type":"TEXT",
               "context":"item",
               "label":"Item Name",
               "description":"The itemName which should match",
               "required":true
            },
            {  
               "name":"state",
               "type":"TEXT",
               "label":"State",
               "description":"The state which should match",
               "required":true
            }
         ],
         "inputs":[  
            {  
               "name":"event",
             "type":"org.eclipse.smarthome.core.events.Event",
               "description":"the event of the item state change",
               "label":"event",
               "required":true
            }
         ],

...

with:

"type":"org.eclipse.smarthome.core.events.Event",

Does that effectively mean that any type of input can be provided to Modules?

Tx
Karel
Re: Automation : allowed input types for Modules [message #1720729 is a reply to message #1720714] Wed, 20 January 2016 14:50 Go to previous message
Marin Mitev is currently offline Marin MitevFriend
Messages: 22
Registered: December 2014
Junior Member
these were limitations in the very begining, now the documentation should be updated. So yes, any type should be supported for inputs and outputs
Previous Topic:Rule to follow item state
Next Topic:Commercial gateway compatible with ESH project
Goto Forum:
  


Current Time: Fri Apr 19 10:46:42 GMT 2024

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

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

Back to the top