Hei!
Her er et eksempel!
{
"Id": "xdw68yxG5t0iNdN",
"ClassId": "xdw68yxG5t0iNdN",
"Author": "espenh.no",
"Version": 0,
"CreatedAt": "2021-10-19T11:41:44.003669729+02:00",
"UpdatedAt": "2021-10-19T11:46:29.625672404+02:00",
"Name": "pushvarsel ved åpen dør i nattmodus",
"Group": "eksempler",
"Description": "",
"Nodes": [
{
"Id": "1",
"Type": "trigger",
"Label": "dørsensor",
"SuccessTransition": "3",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:evt/rt:dev/rn:zw/ad:1/sv:sensor_contact/ad:39_0",
"Service": "sensor_contact",
"ServiceInterface": "evt.open.report",
"Config": {
"ConnectorID": "",
"InputVariableType": "",
"IsValueFilterEnabled": false,
"LookupServiceNameAndLocation": false,
"PropFilterName": "",
"PropFilterValue": "",
"RegisterAsVirtualService": false,
"Timeout": 0,
"ValueFilter": {
"Value": null,
"ValueType": ""
},
"ValueJPath": "",
"ValueJPathResultType": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": null
},
"Ui": {
"nodeType": "",
"x": 377,
"y": 244
},
"TypeAlias": "Trigger",
"LastValue": true
},
{
"Id": "2",
"Type": "trigger",
"Label": "dørsensor 2",
"SuccessTransition": "3",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:evt/rt:dev/rn:zw/ad:1/sv:sensor_contact/ad:40_0",
"Service": "sensor_contact",
"ServiceInterface": "evt.open.report",
"Config": {
"ConnectorID": "",
"InputVariableType": "",
"IsValueFilterEnabled": false,
"LookupServiceNameAndLocation": false,
"PropFilterName": "",
"PropFilterValue": "",
"RegisterAsVirtualService": false,
"Timeout": 0,
"ValueFilter": {
"Value": null,
"ValueType": ""
},
"ValueJPath": "",
"ValueJPathResultType": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": null
},
"Ui": {
"nodeType": "",
"x": 638,
"y": 246
},
"TypeAlias": "Trigger"
},
{
"Id": "3",
"Type": "if",
"Label": "if open & nightmode",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "and",
"LeftVariableIsGlobal": false,
"LeftVariableName": "",
"Operand": "eq",
"RightVariable": {
"Value": true,
"ValueType": "bool"
}
},
{
"BooleanOperator": "",
"LeftVariableIsGlobal": true,
"LeftVariableName": "fh.home.mode",
"Operand": "eq",
"RightVariable": {
"Value": "home",
"ValueType": "string"
}
}
],
"FalseTransition": "",
"TrueTransition": "4"
},
"Ui": {
"nodeType": "",
"x": 490,
"y": 456
},
"TypeAlias": "If condition"
},
{
"Id": "4",
"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": "Door opened",
"SiteId": "AEAC54F4-0269-485D-BD5A-B0AEBDD18A89"
},
"ValueType": "object"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "notification_action",
"x": 482,
"y": 645
},
"TypeAlias": "Notification"
}
],
"Settings": null,
"IsDisabled": false,
"IsDefault": false,
"ParallelExecution": "parallel"
}
importer den å se om du ser logikken i den 