Hei,
Hvorfor virker ikke push notification? Jeg antok at denne funksjonen skal sende et pling til telefonen min, men det kommer intet.
{
"Id": "eZ789LvD4fqIFZz",
"ClassId": "eZ789LvD4fqIFZz",
"Author": "",
"Version": 0,
"CreatedAt": "2023-11-24T10:15:03.856509276+01:00",
"UpdatedAt": "2023-11-24T10:35:03.975763875+01:00",
"Name": "Check water temp",
"Group": "",
"Description": "",
"Nodes": [
{
"Id": "1",
"Type": "trigger",
"Label": "Get water temp",
"SuccessTransition": "3",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:evt/rt:dev/rn:hoiax/ad:1/sv:sensor_wattemp/ad:1",
"Service": "sensor_wattemp",
"ServiceInterface": "evt.sensor.report",
"Config": {
"ConnectorID": "",
"InputVariableType": "",
"IsValueFilterEnabled": false,
"LookupServiceNameAndLocation": false,
"PropFilterName": "",
"PropFilterValue": "",
"RegisterAsVirtualService": false,
"Timeout": 0,
"ValueFilter": {
"Value": null,
"ValueType": "float"
},
"ValueJPath": "",
"ValueJPathResultType": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": null
},
"Ui": {
"nodeType": "",
"x": 427,
"y": 172
},
"TypeAlias": "Trigger",
"LastValue": "58.4 C"
},
{
"Id": "3",
"Type": "set_variable",
"Label": "Watertemp",
"SuccessTransition": "7",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"DefaultValue": {
"Value": 0,
"ValueType": ""
},
"Name": "water_temp",
"UpdateGlobal": false,
"UpdateInputMsg": false
},
"Ui": {
"nodeType": "",
"x": 390,
"y": 349
},
"TypeAlias": "Set variable"
},
{
"Id": "4",
"Type": "if",
"Label": "",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "",
"LeftVariableIsGlobal": false,
"LeftVariableName": "water_temp",
"Operand": "lt",
"RightVariable": {
"Value": 20,
"ValueType": "float"
}
}
],
"FalseTransition": "6",
"TrueTransition": "5"
},
"Ui": {
"nodeType": "",
"x": 362,
"y": 722
},
"TypeAlias": "If condition"
},
{
"Id": "5",
"Type": "action",
"Label": "Less then 20",
"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": "Less then 20 grader",
"SiteId": "35d458b9-eb7a-4774-a204-acf631e42d6c"
},
"ValueType": "object"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "notification_action",
"x": 237,
"y": 921
},
"TypeAlias": "Notification"
},
{
"Id": "6",
"Type": "action",
"Label": "More then 20",
"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": "More then 20 grader",
"SiteId": "35d458b9-eb7a-4774-a204-acf631e42d6c"
},
"ValueType": "object"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "notification_action",
"x": 503,
"y": 912
},
"TypeAlias": "Notification"
},
{
"Id": "7",
"Type": "rate_limit",
"Label": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"SuccessTransition": "4",
"ErrorTransition": "",
"Config": {
"TimeInterval": 240,
"Limit": 1,
"Action": "skip"
},
"Ui": {
"x": 360,
"y": 556,
"nodeType": ""
},
"TypeAlias": "Rate limit"
}
],
"Settings": null,
"IsDisabled": false,
"IsDefault": false,
"ParallelExecution": "parallel"
}