Her har jeg laget en flow som ved kjøring av hjemme modus på dagtid kjører en snarvei og på kveldstid kjører en annen snarvei
{
"Id": "X1YKV49PPV1j97V",
"ClassId": "X1YKV49PPV1j97V",
"Author": "",
"Version": 0,
"CreatedAt": "2020-11-03T19:44:49.769301801+01:00",
"UpdatedAt": "2020-11-03T19:44:49.769301801+01:00",
"Name": "Home belysning",
"Description": "Belysning basert på soloppgang/solnedgang",
"Nodes": [
{
"Id": "2",
"Type": "vinc_trigger",
"Label": "Hjemmemodus",
"Address": "",
"Service": "",
"ServiceInterface": "",
"SuccessTransition": "3",
"ErrorTransition": "",
"Config": {
"Timeout": 0,
"ValueFilter": "home",
"IsValueFilterEnabled": true,
"EventType": "mode"
},
"Ui": {
"x": 379,
"y": 186,
"nodeType": ""
}
},
{
"Id": "3",
"Type": "if",
"Label": "Dagtid",
"Address": "",
"Service": "",
"ServiceInterface": "",
"SuccessTransition": "",
"ErrorTransition": "",
"Config": {
"TrueTransition": "4",
"FalseTransition": "5",
"Expression": [
{
"Operand": "eq",
"LeftVariableName": "Astrour_variable",
"LeftVariableIsGlobal": true,
"RightVariable": {
"Value": "sunrise",
"ValueType": "string"
},
"BooleanOperator": ""
}
]
},
"Ui": {
"x": 265,
"y": 383,
"nodeType": ""
}
},
{
"Id": "4",
"Type": "action",
"Label": "kjør normalbelysning dag",
"Address": "pt:j1/mt:cmd/rt:app/rn:vinculum/ad:1",
"Service": "vinculum",
"ServiceInterface": "cmd.pd7.request",
"SuccessTransition": "",
"ErrorTransition": "",
"Config": {
"VariableName": "",
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"VirtualServiceGroup": "",
"VirtualServiceProps": {},
"ResponseToTopic": "pt:j1/mt:rsp/rt:app/rn:tpflow/ad:1",
"DefaultValue": {
"Value": {
"cmd": "set",
"component": "shortcut",
"id": 4,
"param": {},
"requestId": 1
},
"ValueType": "object"
}
},
"Ui": {
"x": 268,
"y": 565,
"nodeType": "vinc_action"
}
},
{
"Id": "5",
"Type": "if",
"Label": "Kveld",
"Address": "",
"Service": "",
"ServiceInterface": "",
"SuccessTransition": "",
"ErrorTransition": "",
"Config": {
"TrueTransition": "6",
"FalseTransition": "",
"Expression": [
{
"Operand": "eq",
"LeftVariableName": "Astrour_variable",
"LeftVariableIsGlobal": true,
"RightVariable": {
"Value": "sunset",
"ValueType": "string"
},
"BooleanOperator": ""
}
]
},
"Ui": {
"x": 488,
"y": 549,
"nodeType": ""
}
},
{
"Id": "6",
"Type": "action",
"Label": "kjør normalbelysning kveld",
"Address": "pt:j1/mt:cmd/rt:app/rn:vinculum/ad:1",
"Service": "vinculum",
"ServiceInterface": "cmd.pd7.request",
"SuccessTransition": "",
"ErrorTransition": "",
"Config": {
"VariableName": "",
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"VirtualServiceGroup": "",
"VirtualServiceProps": {},
"ResponseToTopic": "pt:j1/mt:rsp/rt:app/rn:tpflow/ad:1",
"DefaultValue": {
"Value": {
"cmd": "set",
"component": "shortcut",
"id": 4,
"param": {},
"requestId": 1
},
"ValueType": "object"
}
},
"Ui": {
"x": 489,
"y": 737,
"nodeType": "vinc_action"
}
}
],
"Settings": null,
"IsDisabled": false,
"IsDefault": false,
"ParallelExecution": ""
}