Har prøvd å lage en flow her -Det som skal skje er at ved trigging av modus AWAY, skal dør låses etter 30 sekunder, HVIS dørkontakten er lukket. Er den åpen, skal døren ikke låses. årsaken til denne flow er at ved trigging av away modus, så låses dør med en gang. dette er noe upraktisk hvis en trykker på modusbryter i gangen, og skal ut døren etter å ha trykket
Dette er sikkert helt på jordet, men påpek gjerne alle mine feil, og hva rettelsene betyr i praksis:
{
“Id”: “nQaOPVjdSvxfN75”,
“ClassId”: “nQaOPVjdSvxfN75”,
“Author”: “”,
“Version”: 0,
“CreatedAt”: “2020-08-25T23:57:13.412175269+02:00”,
“UpdatedAt”: “2020-08-25T23:57:13.412175269+02:00”,
“Name”: “testflow”,
“Nodes”: [
{
“Id”: “1”,
“Type”: “vinc_trigger”,
“Label”: “Home event trigger”,
“Address”: “”,
“Service”: “”,
“ServiceInterface”: “”,
“SuccessTransition”: “2”,
“ErrorTransition”: “”,
“Config”: {
“Timeout”: 0,
“ValueFilter”: “away”,
“IsValueFilterEnabled”: false,
“EventType”: “mode”
},
“Ui”: {
“x”: 777,
“y”: 66,
“nodeType”: “”
}
},
{
“Id”: “2”,
“Type”: “wait”,
“Label”: “30 sec”,
“Address”: “”,
“Service”: “”,
“ServiceInterface”: “”,
“SuccessTransition”: “6”,
“ErrorTransition”: “”,
“Config”: 3000,
“Ui”: {
“x”: 775,
“y”: 236,
“nodeType”: “”
}
},
{
“Id”: “6”,
“Type”: “if”,
“Label”: “”,
“Address”: “”,
“Service”: “”,
“ServiceInterface”: “”,
“SuccessTransition”: “”,
“ErrorTransition”: “”,
“Config”: {
“TrueTransition”: “7”,
“FalseTransition”: “9”,
“Expression”: [
{
“Operand”: “eq”,
“LeftVariableName”: “”,
“LeftVariableIsGlobal”: false,
“RightVariable”: {
“Value”: 100,
“ValueType”: “int”
},
“BooleanOperator”: “”
}
]
},
“Ui”: {
“x”: 773,
“y”: 390,
“nodeType”: “”
}
},
{
“Id”: “7”,
“Type”: “action”,
“Label”: “Door_sensor_open_false”,
“Address”: “pt:j1/mt:evt/rt:dev/rn:zw/ad:1/sv:sensor_contact/ad:120_0”,
“Service”: “sensor_contact”,
“ServiceInterface”: “evt.open.report”,
“SuccessTransition”: “8”,
“ErrorTransition”: “”,
“Config”: {
“VariableName”: “”,
“IsVariableGlobal”: false,
“Props”: {},
“RegisterAsVirtualService”: false,
“VirtualServiceGroup”: “”,
“VirtualServiceProps”: {},
“ResponseToTopic”: “”,
“DefaultValue”: {
“Value”: false,
“ValueType”: “bool”
}
},
“Ui”: {
“x”: 597,
“y”: 538,
“nodeType”: “”
}
},
{
“Id”: “8”,
“Type”: “action”,
“Label”: “door lock_true”,
“Address”: “pt:j1/mt:cmd/rt:dev/rn:zw/ad:1/sv:door_lock/ad:122_0”,
“Service”: “door_lock”,
“ServiceInterface”: “cmd.lock.set”,
“SuccessTransition”: “”,
“ErrorTransition”: “”,
“Config”: {
“VariableName”: “”,
“IsVariableGlobal”: false,
“Props”: {},
“RegisterAsVirtualService”: false,
“VirtualServiceGroup”: “”,
“VirtualServiceProps”: {},
“ResponseToTopic”: “”,
“DefaultValue”: {
“Value”: true,
“ValueType”: “bool”
}
},
“Ui”: {
“x”: 365,
“y”: 539,
“nodeType”: “”
}
},
{
“Id”: “9”,
“Type”: “action”,
“Label”: “Door_sensor_open_true”,
“Address”: “pt:j1/mt:evt/rt:dev/rn:zw/ad:1/sv:sensor_contact/ad:120_0”,
“Service”: “sensor_contact”,
“ServiceInterface”: “evt.open.report”,
“SuccessTransition”: “10”,
“ErrorTransition”: “”,
“Config”: {
“VariableName”: “”,
“IsVariableGlobal”: false,
“Props”: {},
“RegisterAsVirtualService”: false,
“VirtualServiceGroup”: “”,
“VirtualServiceProps”: {},
“ResponseToTopic”: “”,
“DefaultValue”: {
“Value”: true,
“ValueType”: “bool”
}
},
“Ui”: {
“x”: 916,
“y”: 546,
“nodeType”: “”
}
},
{
“Id”: “10”,
“Type”: “action”,
“Label”: “door lock_false”,
“Address”: “pt:j1/mt:cmd/rt:dev/rn:zw/ad:1/sv:door_lock/ad:122_0”,
“Service”: “door_lock”,
“ServiceInterface”: “cmd.lock.set”,
“SuccessTransition”: “”,
“ErrorTransition”: “”,
“Config”: {
“VariableName”: “”,
“IsVariableGlobal”: false,
“Props”: {},
“RegisterAsVirtualService”: false,
“VirtualServiceGroup”: “”,
“VirtualServiceProps”: {},
“ResponseToTopic”: “”,
“DefaultValue”: {
“Value”: false,
“ValueType”: “bool”
}
},
“Ui”: {
“x”: 1168,
“y”: 546,
“nodeType”: “”
}
}
],
“Settings”: null,
“IsDisabled”: false,
“IsDefault”: false,
“ParallelExecution”: “”
}