зеркало из https://github.com/mozilla/smarthome.git
added visibility flag to module types and script meta-data to script condition
PR: https://github.com/eclipse/smarthome/pull/1335 Signed-off-by: Kai Kreuzer <kai@openhab.org>
This commit is contained in:
Родитель
86f316b034
Коммит
90e1804a16
|
@ -4,6 +4,7 @@
|
|||
"uid":"EventCondition",
|
||||
"label":"Event Condition",
|
||||
"description":"Condition for events",
|
||||
"visibility":"HIDDEN",
|
||||
"configDescriptions":[
|
||||
{
|
||||
"name":"topic",
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
"uid":"GenericEventTrigger",
|
||||
"label":"Basic Event Trigger",
|
||||
"description":"Triggers Rules on Events",
|
||||
"visibility":"HIDDEN",
|
||||
"configDescriptions":[
|
||||
{
|
||||
"name":"eventTopic",
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
"uid":"GenericCompareCondition",
|
||||
"label":"CompareCondition",
|
||||
"description":"configurable compare condition",
|
||||
"visibility":"HIDDEN",
|
||||
"configDescriptions":[
|
||||
{
|
||||
"name":"inputproperty",
|
||||
|
@ -41,6 +42,7 @@
|
|||
"uid":"ItemStateEventCompareCondition",
|
||||
"label":"Item Event Condition",
|
||||
"description":"checks if the input event was thrown by a specific item and if the state of this item changed to a given state",
|
||||
"visibility":"HIDDEN",
|
||||
"configDescriptions":[
|
||||
{
|
||||
"name":"itemName",
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
"uid":"ItemStateEventCondition",
|
||||
"label":"ItemStateEvent Condition",
|
||||
"description":"checks if an item event was a state event and compares the new state",
|
||||
"visibility":"HIDDEN",
|
||||
"configDescriptions":[
|
||||
{
|
||||
"name":"itemName",
|
||||
|
@ -50,6 +51,7 @@
|
|||
"uid":"ItemStateEvent_ON_Condition",
|
||||
"label":"ItemStateEvent ON Condition",
|
||||
"description":"checks if an item event was a state event and checks if the new state is ON",
|
||||
"visibility":"HIDDEN",
|
||||
"configDescriptions":[
|
||||
{
|
||||
"name":"itemName",
|
||||
|
@ -87,6 +89,7 @@
|
|||
"uid":"ItemStateEvent_OFF_Condition",
|
||||
"label":"ItemStateEvent OFF Condition",
|
||||
"description":"checks if an item event was a state event and checks if the new state is OFF",
|
||||
"visibility":"HIDDEN",
|
||||
"configDescriptions":[
|
||||
{
|
||||
"name":"itemName",
|
||||
|
|
|
@ -9,13 +9,24 @@
|
|||
"name":"type",
|
||||
"type":"TEXT",
|
||||
"description":"the scripting language to use (like in a file extension, i.e. 'js')",
|
||||
"required":true
|
||||
"required":true,
|
||||
"options":[
|
||||
{
|
||||
"label": "Javascript",
|
||||
"value": "js"
|
||||
},
|
||||
{
|
||||
"label": "Jython",
|
||||
"value": "jy"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name":"script",
|
||||
"type":"TEXT",
|
||||
"description":"the script to execute",
|
||||
"required":true
|
||||
"required":true,
|
||||
"context":"script"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче