For å sette en statisk % ved første bevegelse etter modus er endet til home kan denne flowen brukes
{
"Id": "rkVqSnXehw2w52K",
"ClassId": "Nqo6aLFaaFoKgW7",
"Author": "espenh.no",
"Version": 0,
"CreatedAt": "2020-09-15T16:23:07.942061947+02:00",
"UpdatedAt": "2020-09-15T16:35:08.463045152+02:00",
"Name": "sensor_presence automations",
"Group": "sensor_presence",
"Description": "",
"Nodes": [
{
"Id": "1",
"Type": "trigger",
"Label": "sensor_presence",
"SuccessTransition": "8",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:evt/rt:dev/rn:zw/ad:1/sv:sensor_presence/ad:49_0",
"Service": "sensor_presence",
"ServiceInterface": "evt.presence.report",
"Config": {
"InputVariableType": "",
"IsValueFilterEnabled": false,
"LookupServiceNameAndLocation": false,
"PropFilterName": "",
"PropFilterValue": "",
"RegisterAsVirtualService": false,
"Timeout": 0,
"ValueFilter": {
"Value": true,
"ValueType": ""
},
"ValueJPath": "",
"ValueJPathResultType": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": null
},
"Ui": {
"nodeType": "",
"x": 702,
"y": 118
}
},
{
"Id": "2",
"Type": "action",
"Label": "out_lvl_switch ON (Last known value)",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:zw/ad:1/sv:out_lvl_switch/ad:32_1",
"Service": "out_lvl_switch",
"ServiceInterface": "cmd.binary.set",
"Config": {
"DefaultValue": {
"Value": true,
"ValueType": "bool"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"ResponseToTopic": "",
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 400,
"y": 878
}
},
{
"Id": "4",
"Type": "wait",
"Label": "wait 10 min",
"SuccessTransition": "5",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": 600000,
"Ui": {
"nodeType": "",
"x": 596,
"y": 876
}
},
{
"Id": "5",
"Type": "action",
"Label": "out_lvl_switch OFF",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:zw/ad:1/sv:out_lvl_switch/ad:32_1",
"Service": "out_lvl_switch",
"ServiceInterface": "cmd.binary.set",
"Config": {
"DefaultValue": {
"Value": false,
"ValueType": "bool"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"ResponseToTopic": "",
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 594,
"y": 1030
}
},
{
"Id": "6",
"Type": "if",
"Label": "if presence = true",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "",
"LeftVariableIsGlobal": false,
"LeftVariableName": "",
"Operand": "eq",
"RightVariable": {
"Value": true,
"ValueType": "bool"
}
}
],
"FalseTransition": "7",
"TrueTransition": "2"
},
"Ui": {
"nodeType": "",
"x": 409,
"y": 723
}
},
{
"Id": "7",
"Type": "if",
"Label": "if presence = false",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "",
"LeftVariableIsGlobal": false,
"LeftVariableName": "",
"Operand": "eq",
"RightVariable": {
"Value": false,
"ValueType": "bool"
}
}
],
"FalseTransition": "",
"TrueTransition": "4"
},
"Ui": {
"nodeType": "",
"x": 598,
"y": 730
}
},
{
"Id": "8",
"Type": "if",
"Label": "if home",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "",
"LeftVariableIsGlobal": true,
"LeftVariableName": "fh.home.mode",
"Operand": "eq",
"RightVariable": {
"Value": "home",
"ValueType": "string"
}
}
],
"FalseTransition": "9",
"TrueTransition": "16"
},
"Ui": {
"nodeType": "",
"x": 498,
"y": 343
}
},
{
"Id": "9",
"Type": "if",
"Label": "if sleep",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "",
"LeftVariableIsGlobal": true,
"LeftVariableName": "fh.home.mode",
"Operand": "eq",
"RightVariable": {
"Value": "sleep",
"ValueType": "string"
}
}
],
"FalseTransition": "",
"TrueTransition": "10"
},
"Ui": {
"nodeType": "",
"x": 941,
"y": 329
}
},
{
"Id": "10",
"Type": "if",
"Label": "if presence = true",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "",
"LeftVariableIsGlobal": false,
"LeftVariableName": "",
"Operand": "eq",
"RightVariable": {
"Value": true,
"ValueType": "bool"
}
}
],
"FalseTransition": "13",
"TrueTransition": "12"
},
"Ui": {
"nodeType": "",
"x": 857,
"y": 560
}
},
{
"Id": "12",
"Type": "action",
"Label": "out_lvl_switch cmd.lvl.set 10%",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:zw/ad:1/sv:out_lvl_switch/ad:32_1",
"Service": "out_lvl_switch",
"ServiceInterface": "cmd.lvl.set",
"Config": {
"DefaultValue": {
"Value": 10,
"ValueType": "int"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"ResponseToTopic": "",
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 865,
"y": 724
}
},
{
"Id": "13",
"Type": "if",
"Label": "if presence = false",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "",
"LeftVariableIsGlobal": false,
"LeftVariableName": "",
"Operand": "eq",
"RightVariable": {
"Value": false,
"ValueType": "bool"
}
}
],
"FalseTransition": "",
"TrueTransition": "14"
},
"Ui": {
"nodeType": "",
"x": 1069,
"y": 558
}
},
{
"Id": "14",
"Type": "wait",
"Label": "wait 2 min",
"SuccessTransition": "15",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": 120000,
"Ui": {
"nodeType": "",
"x": 1066,
"y": 720
}
},
{
"Id": "15",
"Type": "action",
"Label": "out_lvl_switch OFF",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:zw/ad:1/sv:out_lvl_switch/ad:32_1",
"Service": "out_lvl_switch",
"ServiceInterface": "cmd.binary.set",
"Config": {
"DefaultValue": {
"Value": false,
"ValueType": "bool"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"ResponseToTopic": "",
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 1066,
"y": 882
}
},
{
"Id": "16",
"Type": "if",
"Label": "if firstMovement",
"Address": "",
"Service": "",
"ServiceInterface": "",
"SuccessTransition": "",
"ErrorTransition": "",
"Config": {
"TrueTransition": "17",
"FalseTransition": "6",
"Expression": [
{
"Operand": "eq",
"LeftVariableName": "firstMovement",
"LeftVariableIsGlobal": true,
"RightVariable": {
"Value": true,
"ValueType": "bool"
},
"BooleanOperator": ""
}
]
},
"Ui": {
"x": 309,
"y": 531,
"nodeType": ""
}
},
{
"Id": "17",
"Type": "action",
"Label": "out_lvl_switch 40%",
"SuccessTransition": "18",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:zw/ad:1/sv:out_lvl_switch/ad:32_1",
"Service": "out_lvl_switch",
"ServiceInterface": "cmd.lvl.set",
"Config": {
"DefaultValue": {
"Value": 40,
"ValueType": "int"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"ResponseToTopic": "",
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 121,
"y": 706
}
},
{
"Id": "18",
"Type": "set_variable",
"Label": "set false firstMovement",
"Address": "",
"Service": "",
"ServiceInterface": "",
"SuccessTransition": "",
"ErrorTransition": "",
"Config": {
"Name": "firstMovement",
"UpdateGlobal": true,
"UpdateInputMsg": false,
"DefaultValue": {
"Value": 0,
"ValueType": "bool"
}
},
"Ui": {
"x": 116,
"y": 867,
"nodeType": ""
}
},
{
"Id": "20",
"Type": "set_variable",
"Label": "set true firstMovement",
"Address": "",
"Service": "",
"ServiceInterface": "",
"SuccessTransition": "",
"ErrorTransition": "",
"Config": {
"Name": "firstMovement",
"UpdateGlobal": true,
"UpdateInputMsg": false,
"DefaultValue": {
"Value": true,
"ValueType": "bool"
}
},
"Ui": {
"x": 155,
"y": 297,
"nodeType": ""
}
},
{
"Id": "21",
"Type": "vinc_trigger",
"Label": "Home event trigger",
"Address": "",
"Service": "",
"ServiceInterface": "",
"SuccessTransition": "20",
"ErrorTransition": "",
"Config": {
"Timeout": 0,
"ValueFilter": "home",
"IsValueFilterEnabled": true,
"EventType": "mode"
},
"Ui": {
"x": 157,
"y": 145,
"nodeType": ""
}
}
],
"Settings": null,
"IsDisabled": false,
"IsDefault": false,
"ParallelExecution": "keep_last"
}