Hvorfor virker ikke denne? Når man oppretter ny flow så får man valg om instance, paralell, keep osv… Når skal man bruke hva?
{
"Id": "XHcQAz8xGHLib1z",
"ClassId": "XHcQAz8xGHLib1z",
"Author": "",
"Version": 0,
"CreatedAt": "2021-03-27T14:01:58.797857556+01:00",
"UpdatedAt": "2021-03-28T21:52:39.529342914+02:00",
"Name": "Lys gang/2 etg dagtid helg",
"Group": "",
"Description": "Lys gang/2 etg dagtid helg",
"Nodes": [
{
"Id": "1",
"Type": "trigger",
"Label": "no label",
"SuccessTransition": "7",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:evt/rt:dev/rn:zw/ad:1/sv:sensor_lumin/ad:20_0",
"Service": "sensor_lumin",
"ServiceInterface": "evt.sensor.report",
"Config": {
"ConnectorID": "",
"InputVariableType": "",
"IsValueFilterEnabled": false,
"LookupServiceNameAndLocation": false,
"PropFilterName": "",
"PropFilterValue": "",
"RegisterAsVirtualService": false,
"Timeout": 0,
"ValueFilter": {
"Value": true,
"ValueType": "float"
},
"ValueJPath": "",
"ValueJPathResultType": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": null
},
"Ui": {
"nodeType": "",
"x": 242,
"y": 151
},
"TypeAlias": "Trigger",
"LastValue": "3 Lux"
},
{
"Id": "3",
"Type": "action",
"Label": "Lys 2 etg",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:hue/ad:1/sv:out_lvl_switch/ad:l24_0",
"Service": "out_lvl_switch",
"ServiceInterface": "cmd.lvl.set",
"Config": {
"DefaultValue": {
"Value": 15,
"ValueType": "int"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"ResponseToTopic": "",
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 570,
"y": 346
},
"TypeAlias": "Action"
},
{
"Id": "4",
"Type": "action",
"Label": "Lys gang 25",
"SuccessTransition": "3",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:hue/ad:1/sv:out_lvl_switch/ad:l23_0",
"Service": "out_lvl_switch",
"ServiceInterface": "cmd.lvl.set",
"Config": {
"DefaultValue": {
"Value": 25,
"ValueType": "int"
},
"IsVariableGlobal": true,
"Props": {},
"RegisterAsVirtualService": false,
"ResponseToTopic": "",
"VariableName": "Lys gang opp 10% kl 18:30",
"VariableType": "int",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 581,
"y": 153
},
"TypeAlias": "Action"
},
{
"Id": "7",
"Type": "if",
"Label": "Lux under 20",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "and",
"LeftVariableIsGlobal": false,
"LeftVariableName": "",
"Operand": "lt",
"RightVariable": {
"Value": 20,
"ValueType": "int"
}
},
{
"BooleanOperator": "not",
"LeftVariableIsGlobal": true,
"LeftVariableName": "Lux aktiv helg",
"Operand": "eq",
"RightVariable": {
"Value": true,
"ValueType": "bool"
}
},
{
"BooleanOperator": "and",
"LeftVariableIsGlobal": true,
"LeftVariableName": "Global variabel lux inaktiv etter 22:30 helg",
"Operand": "eq",
"RightVariable": {
"Value": true,
"ValueType": "bool"
}
},
{
"BooleanOperator": "",
"LeftVariableIsGlobal": true,
"LeftVariableName": "Lys dimmet_av",
"Operand": "eq",
"RightVariable": {
"Value": true,
"ValueType": "bool"
}
}
],
"FalseTransition": "",
"TrueTransition": "4"
},
"Ui": {
"nodeType": "",
"x": 204,
"y": 432
},
"TypeAlias": "If condition"
},
{
"Id": "8",
"Type": "action",
"Label": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"SuccessTransition": "",
"ErrorTransition": "",
"Config": null,
"Ui": {
"x": 822,
"y": 270,
"nodeType": ""
},
"TypeAlias": "Action"
}
],
"Settings": null,
"IsDisabled": false,
"IsDefault": false,
"ParallelExecution": "parallel"
}