Flowen:
{
"Id": "qR4mMlo7bPt9Afe",
"ClassId": "qR4mMlo7bPt9Afe",
"Author": "",
"Version": 0,
"CreatedAt": "2020-09-19T01:25:29.381138385+02:00",
"UpdatedAt": "2020-11-01T10:18:46.705109996+01:00",
"Name": "VVB Kontroll",
"Group": "Varsler",
"Description": "Slår av VVB ved høyt forbruk komfyr",
"Nodes": [
{
"Id": "3",
"Type": "action",
"Label": "Slå av VVB",
"SuccessTransition": "12",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:zw/ad:1/sv:out_bin_switch/ad:101_0",
"Service": "out_bin_switch",
"ServiceInterface": "cmd.binary.set",
"Config": {
"DefaultValue": {
"Value": false,
"ValueType": "bool"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"ResponseToTopic": "",
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 320,
"y": 793
}
},
{
"Id": "6",
"Type": "action",
"Label": "Slår på VVB",
"SuccessTransition": "13",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:zw/ad:1/sv:out_bin_switch/ad:101_0",
"Service": "out_bin_switch",
"ServiceInterface": "cmd.binary.set",
"Config": {
"DefaultValue": {
"Value": true,
"ValueType": "bool"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"ResponseToTopic": "",
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 531,
"y": 939
}
},
{
"Id": "7",
"Type": "action",
"Label": "Push notification",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:evt/rt:app/rn:kind_owl/ad:1",
"Service": "kind-owl",
"ServiceInterface": "evt.notification.report",
"Config": {
"DefaultValue": {
"Value": {
"EventName": "custom",
"MessageContent": "Slår av VVB. Høyt totalforbruk!",
"SiteId": "5b9a7d73-f5c8-4fc4-b8ef-8491be34bad2"
},
"ValueType": "object"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "notification_action",
"x": 275,
"y": 1260
}
},
{
"Id": "8",
"Type": "action",
"Label": "Push notification",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:evt/rt:app/rn:kind_owl/ad:1",
"Service": "kind-owl",
"ServiceInterface": "evt.notification.report",
"Config": {
"DefaultValue": {
"Value": {
"EventName": "custom",
"MessageContent": "Slår på VVB. Forbruk gått ned",
"SiteId": "5b9a7d73-f5c8-4fc4-b8ef-8491be34bad2"
},
"ValueType": "object"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "notification_action",
"x": 500,
"y": 1267
}
},
{
"Id": "9",
"Type": "trigger",
"Label": "Komfyr forbruk",
"SuccessTransition": "15",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:evt/rt:dev/rn:zw/ad:1/sv:meter_elec/ad:107_0",
"Service": "meter_elec",
"ServiceInterface": "evt.meter.report",
"Config": {
"IsValueFilterEnabled": false,
"LookupServiceNameAndLocation": false,
"PropFilterName": "unit",
"PropFilterValue": "W",
"RegisterAsVirtualService": false,
"Timeout": 0,
"ValueFilter": {
"Value": null,
"ValueType": ""
},
"VirtualServiceGroup": "ch_0",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 199,
"y": 199
}
},
{
"Id": "10",
"Type": "if",
"Label": "komf>3500 + vvb_on",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "and",
"LeftVariableIsGlobal": true,
"LeftVariableName": "forbruk_komfyr",
"Operand": "gt",
"RightVariable": {
"Value": 3500,
"ValueType": "float"
}
},
{
"BooleanOperator": "",
"LeftVariableIsGlobal": false,
"LeftVariableName": "vvb_state",
"Operand": "eq",
"RightVariable": {
"Value": true,
"ValueType": "bool"
}
}
],
"FalseTransition": "11",
"TrueTransition": "3"
},
"Ui": {
"nodeType": "",
"x": 185,
"y": 573
}
},
{
"Id": "11",
"Type": "if",
"Label": "komf<100W + vvb_off",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "and",
"LeftVariableIsGlobal": true,
"LeftVariableName": "forbruk_komfyr",
"Operand": "lt",
"RightVariable": {
"Value": 100,
"ValueType": "float"
}
},
{
"BooleanOperator": "",
"LeftVariableIsGlobal": false,
"LeftVariableName": "vvb_state",
"Operand": "eq",
"RightVariable": {
"Value": false,
"ValueType": "bool"
}
}
],
"FalseTransition": "",
"TrueTransition": "6"
},
"Ui": {
"nodeType": "",
"x": 542,
"y": 774
}
},
{
"Id": "12",
"Type": "set_variable",
"Label": "vvb_off",
"SuccessTransition": "7",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"DefaultValue": {
"Value": false,
"ValueType": "bool"
},
"Name": "vvb_state",
"UpdateGlobal": false,
"UpdateInputMsg": false
},
"Ui": {
"nodeType": "",
"x": 303,
"y": 960
}
},
{
"Id": "13",
"Type": "set_variable",
"Label": "vvb_on",
"SuccessTransition": "8",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"DefaultValue": {
"Value": true,
"ValueType": "bool"
},
"Name": "vvb_state",
"UpdateGlobal": false,
"UpdateInputMsg": false
},
"Ui": {
"nodeType": "",
"x": 513,
"y": 1097
}
},
{
"Id": "15",
"Type": "set_variable",
"Label": "forbruk_komfyr",
"SuccessTransition": "10",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"DefaultValue": {
"Value": 0,
"ValueType": ""
},
"Name": "forbruk_komfyr",
"UpdateGlobal": true,
"UpdateInputMsg": false
},
"Ui": {
"nodeType": "",
"x": 199,
"y": 381
}
},
{
"Id": "16",
"Type": "trigger",
"Label": "Vaskemaskin forbruk",
"SuccessTransition": "18",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:evt/rt:dev/rn:zw/ad:1/sv:meter_elec/ad:106_0",
"Service": "meter_elec",
"ServiceInterface": "evt.meter.report",
"Config": {
"IsValueFilterEnabled": false,
"LookupServiceNameAndLocation": false,
"PropFilterName": "unit",
"PropFilterValue": "W",
"RegisterAsVirtualService": false,
"Timeout": 0,
"ValueFilter": {
"Value": "",
"ValueType": ""
},
"VirtualServiceGroup": "ch_0",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 496,
"y": 196
}
},
{
"Id": "17",
"Type": "trigger",
"Label": "Oppvask forbruk",
"SuccessTransition": "19",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:evt/rt:dev/rn:zw/ad:1/sv:meter_elec/ad:105_0",
"Service": "meter_elec",
"ServiceInterface": "evt.meter.report",
"Config": {
"IsValueFilterEnabled": false,
"LookupServiceNameAndLocation": false,
"PropFilterName": "unit",
"PropFilterValue": "W",
"RegisterAsVirtualService": false,
"Timeout": 0,
"ValueFilter": {
"Value": "",
"ValueType": ""
},
"VirtualServiceGroup": "ch_0",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 722,
"y": 200
}
},
{
"Id": "18",
"Type": "set_variable",
"Label": "forbruk_vaskemaskin",
"SuccessTransition": "20",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"DefaultValue": {
"Value": 0,
"ValueType": ""
},
"Name": "forbruk_vaskemaskin",
"UpdateGlobal": true,
"UpdateInputMsg": false
},
"Ui": {
"nodeType": "",
"x": 469,
"y": 380
}
},
{
"Id": "19",
"Type": "set_variable",
"Label": "forbruk_oppvask",
"SuccessTransition": "21",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"DefaultValue": {
"Value": 0,
"ValueType": ""
},
"Name": "forbruk_oppvask",
"UpdateGlobal": true,
"UpdateInputMsg": false
},
"Ui": {
"nodeType": "",
"x": 723,
"y": 379
}
},
{
"Id": "20",
"Type": "if",
"Label": "vask>20w + komf>1400w + vvb_on",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "and",
"LeftVariableIsGlobal": true,
"LeftVariableName": "forbruk_vaskemaskin",
"Operand": "gt",
"RightVariable": {
"Value": 20,
"ValueType": "float"
}
},
{
"BooleanOperator": "and",
"LeftVariableIsGlobal": true,
"LeftVariableName": "forbruk_komfyr",
"Operand": "gt",
"RightVariable": {
"Value": 1400,
"ValueType": "float"
}
},
{
"BooleanOperator": "",
"LeftVariableIsGlobal": false,
"LeftVariableName": "vvb_state",
"Operand": "eq",
"RightVariable": {
"Value": true,
"ValueType": "bool"
}
}
],
"FalseTransition": "11",
"TrueTransition": "3"
},
"Ui": {
"nodeType": "",
"x": 453,
"y": 563
}
},
{
"Id": "21",
"Type": "if",
"Label": "oppv>20 + komf>1400 + vvb_on",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "and",
"LeftVariableIsGlobal": true,
"LeftVariableName": "forbruk_oppvask",
"Operand": "gt",
"RightVariable": {
"Value": 20,
"ValueType": "float"
}
},
{
"BooleanOperator": "and",
"LeftVariableIsGlobal": true,
"LeftVariableName": "forbruk_komfyr",
"Operand": "gt",
"RightVariable": {
"Value": 1400,
"ValueType": "float"
}
},
{
"BooleanOperator": "",
"LeftVariableIsGlobal": false,
"LeftVariableName": "vvb_state",
"Operand": "eq",
"RightVariable": {
"Value": true,
"ValueType": "bool"
}
}
],
"FalseTransition": "11",
"TrueTransition": "3"
},
"Ui": {
"nodeType": "",
"x": 718,
"y": 569
}
}
],
"Settings": null,
"IsDisabled": false,
"IsDefault": false,
"ParallelExecution": "parallel"
}