Hei alle glupe hoder.
Jeg har laget en flow som skrur på lyset på badet når man går inn. For at man skal kunne dimme lyset opp eller ned hvis man ønsker dette, har jeg lagt inn at lyset skal trigges på hvis taklyset melder at det er av og bevegelse er oppdaget. Bruker en Set variabel til dette. Det fungerer supert. Men jeg vil at lyset skal stå på f.eks i 15 minutter før det skrur seg av etter siste bevegelse er oppdaget. Flowen er satt opp til å droppe gammel kjøring når ny hendelse i trigger er oppdaget. Og det er her problemet oppstår: PIR’ene som er satt som triggere melder inn hvert 5 min at det ikke er bevegelse oppdaget, uansett. Dermed nullstilles floden og den starter på nytt og vil aldri nå en wait på over 5 min og ergo aldri skru av lyset. Noen som vet om og hvordan man kan justere PIR’ene slik at de ikke rapporterer inn på denne måten?
Kilde:
{
"Id": "6dok8foxLjIn1tH",
"ClassId": "6dok8foxLjIn1tH",
"Author": "",
"Version": 0,
"CreatedAt": "2022-01-22T13:23:19.565989828+01:00",
"UpdatedAt": "2022-01-23T09:10:51.198578495+01:00",
"Name": "Lysstyring på badet",
"Group": "Badet",
"Description": "",
"Nodes": [
{
"Id": "2",
"Type": "if",
"Label": "Hvis bevegelse oppdaget",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "and",
"LeftVariableIsGlobal": false,
"LeftVariableName": "",
"Operand": "eq",
"RightVariable": {
"Value": true,
"ValueType": "bool"
}
},
{
"BooleanOperator": "",
"LeftVariableIsGlobal": true,
"LeftVariableName": "Taklyset på badet er skrudd på",
"Operand": "eq",
"RightVariable": {
"Value": false,
"ValueType": "bool"
}
}
],
"FalseTransition": "14",
"TrueTransition": "3"
},
"Ui": {
"nodeType": "",
"x": 51,
"y": 511
},
"TypeAlias": "If condition"
},
{
"Id": "3",
"Type": "action",
"Label": "Taklyset på",
"SuccessTransition": "5",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:zw/ad:1/sv:out_lvl_switch/ad:137_1",
"Service": "out_lvl_switch",
"ServiceInterface": "cmd.lvl.set",
"Config": {
"DefaultValue": {
"Value": 60,
"ValueType": "int"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"ResponseToTopic": "",
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 17,
"y": 676
},
"TypeAlias": "Action",
"LastValue": 60
},
{
"Id": "4",
"Type": "action",
"Label": "Lys over vasken på",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:zw/ad:1/sv:out_bin_switch/ad:70_1",
"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": 8,
"y": 970
},
"TypeAlias": "Action",
"LastValue": true
},
{
"Id": "5",
"Type": "wait",
"Label": "Vent 1 sek",
"SuccessTransition": "4",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": 1000,
"Ui": {
"nodeType": "",
"x": 14,
"y": 832
},
"TypeAlias": "Delay"
},
{
"Id": "6",
"Type": "trigger",
"Label": "Bevegelse ved do",
"SuccessTransition": "11",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:evt/rt:dev/rn:zigbee/ad:1/sv:sensor_presence/ad:3_35",
"Service": "sensor_presence",
"ServiceInterface": "evt.presence.report",
"Config": {
"IsValueFilterEnabled": true,
"LookupServiceNameAndLocation": false,
"RegisterAsVirtualService": false,
"Timeout": 0,
"ValueFilter": {
"Value": true,
"ValueType": "bool"
},
"VirtualServiceGroup": "ch_0",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 488,
"y": 187
},
"TypeAlias": "Trigger",
"LastValue": false
},
{
"Id": "7",
"Type": "trigger",
"Label": "Bevegelse ved vasken/dusjen",
"SuccessTransition": "11",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:evt/rt:dev/rn:zigbee/ad:1/sv:sensor_presence/ad:4_35",
"Service": "sensor_presence",
"ServiceInterface": "evt.presence.report",
"Config": {
"IsValueFilterEnabled": true,
"LookupServiceNameAndLocation": false,
"RegisterAsVirtualService": false,
"Timeout": 0,
"ValueFilter": {
"Value": true,
"ValueType": "bool"
},
"VirtualServiceGroup": "ch_0",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 274,
"y": 183
},
"TypeAlias": "Trigger",
"LastValue": false
},
{
"Id": "9",
"Type": "action",
"Label": "Skru av lyset over vasken",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:zw/ad:1/sv:out_bin_switch/ad:70_1",
"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": 265,
"y": 1010
},
"TypeAlias": "Action",
"LastValue": true
},
{
"Id": "10",
"Type": "action",
"Label": "Skru av taklyset",
"SuccessTransition": "9",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:zw/ad:1/sv:out_lvl_switch/ad:137_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": 264,
"y": 852
},
"TypeAlias": "Action"
},
{
"Id": "11",
"Type": "iftime",
"Label": "",
"SuccessTransition": "2",
"TimeoutTransition": "",
"ErrorTransition": "12",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"Action": "a",
"From": "05:00",
"To": "22:30",
"Weekday": "1"
},
{
"Action": "a",
"From": "05:00",
"To": "22:30",
"Weekday": "2"
},
{
"Action": "a",
"From": "05:00",
"To": "22:30",
"Weekday": "3"
},
{
"Action": "a",
"From": "05:00",
"To": "22:30",
"Weekday": "4"
},
{
"Action": "a",
"From": "05:00",
"To": "23:00",
"Weekday": "5"
},
{
"Action": "a",
"From": "07:30",
"To": "23:30",
"Weekday": "6"
},
{
"Action": "a",
"From": "08:00",
"To": "22:30",
"Weekday": "0"
}
]
},
"Ui": {
"nodeType": "",
"x": 318,
"y": 382
},
"TypeAlias": "Time filter"
},
{
"Id": "12",
"Type": "if",
"Label": "Hvis bevegelse oppdaget",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "and",
"LeftVariableIsGlobal": false,
"LeftVariableName": "",
"Operand": "eq",
"RightVariable": {
"Value": true,
"ValueType": "bool"
}
},
{
"BooleanOperator": "",
"LeftVariableIsGlobal": true,
"LeftVariableName": "Taklyset på badet er skrudd på",
"Operand": "eq",
"RightVariable": {
"Value": false,
"ValueType": "bool"
}
}
],
"FalseTransition": "14",
"TrueTransition": "13"
},
"Ui": {
"nodeType": "",
"x": 566,
"y": 515
},
"TypeAlias": "If condition"
},
{
"Id": "13",
"Type": "action",
"Label": "Taklys på nattmodus",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:zw/ad:1/sv:out_lvl_switch/ad:137_1",
"Service": "out_lvl_switch",
"ServiceInterface": "cmd.lvl.set",
"Config": {
"DefaultValue": {
"Value": 20,
"ValueType": "int"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"ResponseToTopic": "",
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 525,
"y": 691
},
"TypeAlias": "Action",
"LastValue": 60
},
{
"Id": "14",
"Type": "wait",
"Label": "Vent 5 min.",
"Address": "",
"Service": "",
"ServiceInterface": "",
"SuccessTransition": "10",
"ErrorTransition": "",
"Config": 300000,
"Ui": {
"x": 284,
"y": 651,
"nodeType": ""
},
"TypeAlias": "Delay"
}
],
"Settings": null,
"IsDisabled": false,
"IsDefault": false,
"ParallelExecution": "keep_last"
}