Prøver å hente ut lystettheten ved bevegelse. Hva er det jeg misser her?
{
"Id": "NFb0w3XMhcxrr21",
"ClassId": "NFb0w3XMhcxrr21",
"Author": "",
"Version": 0,
"CreatedAt": "2021-05-26T11:58:47.438811868+02:00",
"UpdatedAt": "2021-10-12T21:54:09.102013363+02:00",
"Name": "Motion stue",
"Group": "Motion",
"Description": "",
"Nodes": [
{
"Id": "1",
"Type": "trigger",
"Label": "Bevegelse stue",
"SuccessTransition": "3",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:evt/rt:dev/rn:zw/ad:1/sv:sensor_presence/ad:30_0",
"Service": "sensor_presence",
"ServiceInterface": "evt.presence.report",
"Config": {
"ConnectorID": "",
"InputVariableType": "",
"IsValueFilterEnabled": false,
"LookupServiceNameAndLocation": false,
"PropFilterName": "",
"PropFilterValue": "",
"RegisterAsVirtualService": false,
"Timeout": 0,
"ValueFilter": {
"Value": null,
"ValueType": "bool"
},
"ValueJPath": "",
"ValueJPathResultType": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": null
},
"Ui": {
"nodeType": "",
"x": 367,
"y": 104
},
"TypeAlias": "Trigger",
"LastValue": true
},
{
"Id": "3",
"Type": "action",
"Label": "Sjekk lysforhold",
"SuccessTransition": "6",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:zw/ad:1/sv:sensor_lumin/ad:30_0",
"Service": "sensor_lumin",
"ServiceInterface": "cmd.sensor.get_report",
"Config": {
"DefaultValue": {
"Value": true,
"ValueType": "bool"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"ResponseToTopic": "",
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 179,
"y": 280
},
"TypeAlias": "Action",
"LastValue": true
},
{
"Id": "6",
"Type": "receive",
"Label": "evt.sensor.report",
"SuccessTransition": "7",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:evt/rt:dev/rn:zw/ad:1/sv:sensor_lumin/ad:30_0",
"Service": "sensor_lumin",
"ServiceInterface": "evt.sensor.report",
"Config": {
"IsValueFilterEnabled": false,
"LookupServiceNameAndLocation": false,
"RegisterAsVirtualService": false,
"Timeout": 60,
"ValueFilter": {
"Value": "",
"ValueType": "float"
},
"VirtualServiceGroup": "ch_0",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 345,
"y": 480
},
"TypeAlias": "Wait event",
"LastValue": 8
},
{
"Id": "7",
"Type": "if",
"Label": "Lux = 8",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "",
"LeftVariableIsGlobal": false,
"LeftVariableName": "",
"Operand": "eq",
"RightVariable": {
"Value": 8,
"ValueType": "float"
}
}
],
"FalseTransition": "",
"TrueTransition": "8"
},
"Ui": {
"nodeType": "",
"x": 144,
"y": 656
},
"TypeAlias": "If condition"
},
{
"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": "Yes",
"SiteId": "0ABE786F-A0EA-4254-9340-E532FD89AE4B"
},
"ValueType": "object"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "notification_action",
"x": 344,
"y": 825
},
"TypeAlias": "Notification"
}
],
"Settings": null,
"IsDisabled": false,
"IsDefault": false,
"ParallelExecution": "keep_last"
}